JSON to YAML
Converts JSON to YAML: field order and long numbers are preserved, strings like "no" and "0755" get quoted.
YAML
The result is longer than a million characters: it is not shown in the field, copy it or download it as a file.
Paste JSON or open a file. Field order is preserved, long numbers are not rounded off, and multi-line text is written as a "|" block, line by line.
Which strings get quoted
Those that YAML would read as something other than a string: "no", "on", "true", "null", "0755", "1.10", "8080:80", and dates. The rules come from both YAML 1.1 and 1.2, so the file reads the same in PyYAML and Ansible as in newer parsers.
Multiple objects
If your JSON has one object per line, each line becomes a separate YAML document joined by "---".
Rate this tool
Help us get better
Tell us what was missing.
Other tools
JSON Formatter
Format and repair JSON in the browser, flagging duplicate keys and long numbers
Regex Tester
Regex testing with a plain-language breakdown and hang protection
JWT Decoder
JWT parsing with fields explained and signature verification
CSV to JSON
A table to JSON with honest types and a reverse check
JSON to CSV
JSON to a table for Excel, with verification and formula protection
SQL Formatter
A readable query layout, verified against the source, with risky spots flagged
XML Formatter
Readable XML, errors explained with a hint, verified against the source
XML Validator
Markup, XSD schema, sitemap, YML and RSS rules, with the path to each error