YAML Formatter

Format, validate, and convert YAML to/from JSON.

Loading tool…

About this tool

Paste YAML to format it consistently, validate its syntax, and convert between YAML and JSON.

How to use

  1. Paste your YAML or JSON into the input panel.
  2. Choose to format YAML or convert to/from JSON.
  3. Copy the resulting output.

FAQ

What YAML features are supported?

Standard YAML 1.1/1.2 syntax including nested maps, lists, anchors, and scalars via the js-yaml parser.

Can I convert JSON to YAML?

Yes, paste JSON and select 'JSON to YAML' to convert.