JSON to YAML Converter
Paste JSON and get tidy, readable YAML for config files.
- Free & unlimited
- No sign-up
- Instant results
How to use JSON to YAML Converter
- Paste your JSON or open a file.
- The YAML appears as you type; errors show the line and column.
- Copy the result or download it.
YAML and JSON
YAML and JSON hold the same kinds of data: objects (key: value), lists, strings, numbers, true/false and null. YAML is easier for people to read and write and allows comments; JSON is stricter and is what most APIs and programs expect. This converter uses js-yaml with the YAML 1.2 core schema.
Things to know
- Comments in YAML are dropped when converting to JSON (JSON has no comments).
- Anchors and aliases (&name / *name) are expanded.
- Several YAML documents separated by --- become a JSON array.
- Values like
yesandnostay as text under YAML 1.2, and dates become ISO strings.
Frequently asked questions
Is my data uploaded?
No, conversion runs in your browser.
Why is my YAML invalid?
Usually a tab instead of spaces, uneven indentation, or a colon in an unquoted value. The error shows the exact line.
Does key order stay the same?
Yes, unless you choose Sort A–Z.
Is there a size limit?
No fixed limit.
Related tools
YAML to JSON Converter
Convert YAML files to JSON.
JSON Formatter & Validator
Format, validate and minify JSON with clear error messages.
Code Beautifier
Format HTML, CSS, JavaScript, JSON, YAML and Markdown.
JSON to CSV Converter
Convert a JSON array to CSV for Excel or Google Sheets.
More Developer Tools
CSV to JSON Converter
Convert CSV or Excel data into a JSON array.
Base64 Encode & Decode
Encode text to Base64 or decode Base64, UTF-8 safe.
URL Encode & Decode
Percent-encode or decode URLs and split them into parts.
UUID Generator
Generate random v4 or time-ordered v7 UUIDs in bulk.
JWT Decoder
Decode a JSON Web Token and check when it expires.
Hash Generator
MD5, SHA-1, SHA-256 and SHA-512 hashes for text or files.
HTML Entity Encoder & Decoder
Escape < > & " for HTML, or decode & style entities.
Unix Timestamp Converter
Convert Unix epoch time to a date and back.