Converters

YAML to JSON Converter

Convert YAML into formatted JSON.

YAML input
JSON output

This free YAML to JSON converter parses YAML — nested maps, lists, scalars, quoted strings, numbers, booleans, null and inline flow collections ([..] / {..}) — and returns clean, formatted JSON. Conversion is live as you type, both panes are syntax-highlighted, and syntax problems are flagged with the exact line number so you can fix them fast. It handles the common subset of YAML used in config files rather than every edge of the specification.

Pretty-print the JSON at 2 spaces, 4 spaces or a tab, or tickMinify for a single compact line. Sort keysalphabetizes every object for stable diffs. Paste, drag-and-drop or upload a.yaml/.yml file, then copy the result or download it as a .json file. A live line and byte count sits in the status bar.

Related tools