Toolora

YAML Formatter

Format YAML and convert between YAML and JSON in both directions.

The YAML Formatter normalizes YAML indentation and converts between YAML and JSON in both directions. It is useful for cleaning up configuration files and preparing data for other tools.
Mode

How to use

  1. Paste YAML or JSON into the input field.
  2. Choose Format, JSON or JSON to YAML.
  3. Copy the normalized output.

Frequently asked questions

Why convert between YAML and JSON?

JSON output feeds JSON-only tools, while YAML output is easier to read and edit in configuration files.

Are comments preserved?

Comments are kept when formatting, but they are dropped when converting to JSON.