YAML to JSON Converter
Turn configuration files between YAML and JSON without a command line. Nested maps, lists and multiline strings are preserved, and mistakes are reported with a line.
Free Runs locally No signup
Input
Output
The converted output will appear here.
Conversion runs locally in your browser.
How to use it
1
Pick a direction
Switch between YAML to JSON and JSON to YAML.
2
Paste the document
Drop a YAML config or a JSON document into the input panel.
3
Copy or download
Choose an indent size, then copy or save the converted file.
Why use this tool
Nested data preserved
Maps, lists and multiline strings keep their structure through the conversion.
Useful YAML errors
Invalid YAML reports the reason plus the line and column where parsing failed.
Runs locally
Documents are parsed in your browser and never uploaded.
Frequently asked questions
Is YAML a superset of JSON?
YAML 1.2 supports JSON syntax, so many JSON documents are valid YAML. The two formats still differ in indentation rules and advanced features.
Are anchors and aliases supported?
Yes. Standard YAML anchors and aliases are resolved when converting to JSON, and duplicate references are expanded.
Why does my YAML fail to parse?
Common causes are tabs used for indentation, inconsistent indentation and unquoted special characters. The error message points to the line and column.
Which indent size should I use?
Two spaces is the most common YAML convention. Four spaces is also valid; pick whatever matches the rest of your project.
Is my config uploaded?
No. Parsing and serialization happen locally in your browser.
Related tools
Developer Tools JSON Formatter & Validator Format, validate and minify JSON in your browser. Choose 2 or 4-space indentation, sort keys, and copy the result instantly. Free, private, no signup. Developer Tools JSON to CSV Converter Convert JSON arrays to CSV and CSV back to JSON in your browser. Handle quotes, delimiters and nested values, then copy or download the result. Developer Tools URL Encoder & Decoder Encode or decode URLs and query strings with correct UTF-8 percent encoding. Switch between component and full-URL modes, all in your browser. Developer Tools Base64 Encoder & Decoder Encode text to Base64 or decode Base64 back to text, with full UTF-8 and URL-safe support. Runs locally in your browser — no upload, no signup. Developer Tools Hash Generator Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes from text in your browser. Compare digests and copy them instantly. Developer Tools JWT Decoder Decode a JSON Web Token to inspect its header, payload, signature and expiry claims. Nothing is uploaded and no signature is trusted.
Last updated: