- Home
- Developer
- YAML Formatter
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
Please enter some input.
How to use
- Paste YAML or JSON into the input field.
- Choose Format, JSON or JSON to YAML.
- 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.
Related tools
JSON Formatter
Format, validate and minify JSON in one place.
XML Formatter
Pretty-print and indent XML documents.
CSV to JSON
Convert CSV tables into JSON data.
JWT Decoder
Decode JWT header, payload and expiration.
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes.
Number Base Converter
Convert numbers between binary, octal, decimal, hex and more.