YAML to JSON converter
Converts YAML to JSON using a safe parser, with duplicate-key and multi-document behavior explained.
1 · YAML input
Multiple `---`-separated YAML documents convert to a JSON array, one entry per document. Duplicate keys within one mapping are flagged - the safe parser keeps the last value, per the YAML spec. Nothing is sent to a server.
What this does
Parses YAML safely and converts it to pretty-printed or minified JSON. Multiple ----separated YAML documents in one input become a JSON array, one entry per document. A duplicate key within one mapping is flagged rather than silently resolved - the safe parser keeps the last value, per the YAML spec, and this tool says so explicitly instead of leaving it implicit.
No misleading silent conversions
YAML timestamps become JavaScript Date objects internally and are serialized to explicit ISO 8601 strings in the JSON output - never left ambiguous.
Privacy
Converted entirely in your browser - nothing is sent to a server.