Indent
Sequences
Keys
Runs entirely in your browser, nothing is uploaded.
How it works
JSON to YAML Converter : Block Scalars and Safe Quoting
Convert JSON to YAML with real indentation. A value YAML would misread as a boolean or a date gets quoted, so nothing changes type on the way through.
What this does
- Two-space or four-space nesting, with sequences indented under their key or flush against it
- A multi-line string becomes a literal block scalar, so its line breaks survive exactly
- Quotes are added only where a bare value would come back as the wrong type
- Empty objects and arrays are written inline as {} and [], never as a key with nothing under it
- Optional A–Z key sort; JSON order is kept otherwise
- Line count, key count, max depth and encoded size reported with the output
FAQ
Keep going