YAML Validator

Validate and format YAML, or convert to and from JSON

Runs on this device
Input YAML
Formatted YAML

Formatting changes

  • Formatting does not keep comments, and merge keys are expanded.
  • Anchors and aliases stay in formatted YAML, and dates stay as written.

Converting to JSON

  • A file with several documents becomes a JSON array.
  • Values JSON cannot hold, such as infinity, NaN or circular aliases, are reported as errors.
  • Integers beyond 9007199254740991 lose precision unless quoted.