YAML to JSON Converter
Paste YAML (Docker Compose, Kubernetes, GitHub Actions, OpenAPI…) and get the same data as JSON.
- Free & unlimited
- No sign-up
- Instant results
How to use YAML to JSON Converter
- Paste your YAML or open a file.
- The JSON 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.
Is there a size limit?
No fixed limit.
Related tools
JSON to YAML Converter
Convert JSON to clean YAML.
JSON Formatter & Validator
Format, validate and minify JSON with clear error messages.
XML Formatter
Beautify, validate and minify XML.
CSV to JSON Converter
Convert CSV or Excel data into a JSON array.
More Developer Tools
JSON to CSV Converter
Convert a JSON array to CSV for Excel or Google Sheets.
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.