YAML to JSON
Converts YAML to JSON: anchors and references are expanded, long numbers and 1.10 keep their exact form, a duplicate key is reported as an error.
JSON
The result is longer than a million characters: it is not shown in the field, copy it or download it as a file.
Paste YAML or open a file: docker-compose settings, Kubernetes, GitHub Actions. Anchors and aliases are resolved, the merge key "<<" is expanded, and multiple documents separated by "---" are combined into an array.
Which YAML version
Values are read according to YAML 1.2: yes, no, on, and off stay strings, and 0755 is the decimal number 755. PyYAML and Ansible follow YAML 1.1 and will read the same values differently, so the result notes where this happens.
Numbers are not rounded
A number goes into JSON exactly as written in YAML: 1.10 does not turn into 1.1, and a 20-digit identifier keeps every digit.
Errors
A duplicate key in the same object, a tab in indentation, and an unclosed bracket are reported with a line number. A duplicate key is an error under the YAML standard, so the last value is not silently taken.
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