- +100 Tools
- 100% Free
- 0 Pop-up Ads
- No Sign-up
- Runs locally
Related Tools
YAML ↔ JSON Converter
YAML ↔ JSON Converter
What is this tool?
A two-way YAML/JSON converter built on the js-yaml library. It parses the input, then serializes it in the other format with consistent indentation, all in your browser.
When to use it
- Turning a JSON config into the YAML a tool expects (or vice versa)
- Reading a dense YAML file as JSON to understand its structure
- Copying a value out of a Kubernetes manifest as JSON
- Converting an API example between the two formats
- Checking that a YAML file is syntactically valid
How to use it
- 1Pick the direction: YAML → JSON or JSON → YAML
- 2Paste your content into the input box
- 3Read the converted output
- 4Copy it with the Copy button
- 5If the input is malformed, the error message points at the problem
Frequently asked questions
Which YAML version is supported?
YAML 1.2 core schema via js-yaml's safe loader — anchors and aliases work, but custom tags are not resolved.
Are comments preserved?
No — YAML comments are dropped, because JSON has no equivalent and the conversion goes through a parsed data structure.
Does it handle multi-document YAML?
It converts the first document. Split multi-document files (--- separators) and convert each part separately.
Is my data uploaded?
No — the conversion runs entirely in your browser.