Skip to main content
T

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.

Advertisement

How to use YAML Formatter

  1. Paste YAML (or JSON if converting).
  2. Pick indent width, line wrap, and sort-keys option.
  3. 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.

Advertisement

FAQ

Does it support anchors and references?
Yes — the underlying yaml library resolves anchors when parsing.

Related tools