YAML Formatter, Validator & Converter
Paste any YAML and format it cleanly — pick indent width and line wrap, optionally sort keys. Also validates YAML syntax and converts between YAML and JSON.
How to use YAML Formatter
- Paste YAML (or JSON if converting).
- Pick indent width, line wrap, and sort-keys option.
- Click Format, Validate, or one of the conversion buttons.
What is YAML Formatter?
Uses the yaml npm library for parsing and stringifying. The Validate button parses your input and shows the resulting JavaScript structure. The Convert buttons round-trip your data between YAML and JSON, useful when working across tools that prefer one format.
FAQ
- Does it support anchors and references?
- Yes — the underlying yaml library resolves anchors when parsing.