Indent
Runs entirely in your browser, nothing is uploaded.
How it works
YAML to JSON Converter with Line-Numbered Errors
Converts YAML to JSON, nested maps, block scalars, flow collections and multi-document files. A parse failure names the line that broke and why.
What this does
- Nested mappings by indentation, including sequences of mappings and nested sequences
- Block scalars | and > with strip, clip and keep chomping, plus an explicit indentation digit
- Multi-document files split on --- and returned as a JSON array, with ... and %YAML directives handled
- A leading zero keeps its value a string, so 01234 does not silently become 1234
- Unsupported YAML raises a named error rather than a guess, anchors, merge keys and “? key” syntax all say what they are
FAQ
Keep going