How it works
How to use the JSON to YAML
Paste JSON or YAML
Pick the direction with the mode switch, or press Swap to reverse the last conversion.
Adjust indentation
Choose 2 or 4 spaces for YAML, or the indentation for JSON output.
Copy the result
Invalid input is highlighted with the exact line and column.
JSON vs. YAML
YAML is a superset of JSON designed for humans: it uses indentation instead of braces, supports comments, and needs fewer quotes. That makes it popular for configuration files. JSON is stricter and faster to parse, which makes it the standard for APIs. This converter follows the YAML 1.2 specification, handles multiple documents separated by --- (converted to a JSON array), and resolves anchors and aliases.
Built for developers
Why developers use it
Private by design
Runs 100% in your browser. Nothing you paste is uploaded, logged or stored on a server.
Instant results
Output updates as you type, with precise error locations when something is wrong.
Works offline
Once loaded, the tool keeps working without a connection. Install it as an app if you like.
Free, no sign-up
No accounts, no limits, no watermarks.
FAQ
Frequently asked questions
Are YAML comments preserved when converting to JSON?
No — JSON has no comments, so they are dropped. To reformat YAML while keeping comments, use the YAML Formatter.
What happens with multiple YAML documents?
A YAML stream with several documents (separated by ---) is converted into a JSON array with one element per document.
Is my data uploaded anywhere?
No. This tool runs entirely in your browser. Your input never leaves your device, is not logged, and works offline once the page has loaded.
Keep going
Related tools
- YAML to JSONConvert YAML to JSON and back
- JSON to CSVConvert JSON arrays to CSV and CSV back to JSON
- JSON to XMLConvert JSON to XML and XML to JSON
- XML to JSONConvert XML to JSON and back
- TOML to JSON ConverterConvert TOML to JSON and back
- JSON to StringConvert JSON into a string literal
- JSON FormatterFormat, validate and explore JSON
- JSON ValidatorFind and fix JSON syntax errors