Convert YAML to JSON in your browser
YAML is a superset of JSON in practice, not in syntax: tabs, anchors, merge keys and implicit types all need real parsing. This tool uses a full YAML parser rather than a regex, which is why nested structures survive.
- Files never leave your device
- No account, no queue
- Works offline
- No upload step
How it works
- 1
Paste the YAML
A single document. Kubernetes, GitHub Actions, docker-compose and plain config files all work.
- 2
Read the JSON
Anchors and aliases are expanded into their values, so you get self-contained JSON.
- 3
Copy or download
Indented output, ready to paste into a request body or a .json file.
Frequently asked questions
Are comments preserved?
No. JSON has no comment syntax, so there is nowhere to put them. If comments matter, keep the YAML as the source of truth.
What happens to YAML anchors and merge keys?
They are resolved. An entity that inherits defaults through a merge key comes out as a fully expanded object, which is usually what you want when converting to JSON.
Why did my number become a string?
YAML parses the value, then the JSON writer decides how to print it. Quoted YAML values (like "500m") stay strings, which is correct — unquoting them would change the meaning.
Can it handle multiple documents separated by ---?
Only the first document is converted. Split the file at the --- markers to convert each separately.
Is the config uploaded?
No. Parsing happens locally, which matters for manifests that carry secret references and internal hostnames.
Other tools
JSON formatter
Format, minify and validate JSON as you type, with the exact error position when it is malformed.
Base64 encoder
Encode and decode Base64 with correct UTF-8 handling, plus the URL-safe alphabet for tokens and filenames.
CSV to JSON
Turn a CSV export into a JSON array of objects — quoted fields, embedded commas and CRLF included.