YAML ↔ JSON Converter
Paste YAML or JSON and convert it to the other format in one click — with clear error messages when the input isn't valid.
Try next
Your files are processed locally in your browser. They are not uploaded to our servers.
How to use
- Pick the direction: YAML → JSON or JSON → YAML.
- Paste your input and click Convert.
- Copy the result or download it as a file.
What is this tool?
YAML ↔ JSON Converter translates between the two most common configuration formats. YAML → JSON parses the full YAML feature set (nested maps, lists, multi-line strings) and outputs pretty-printed JSON; JSON → YAML produces clean, readable YAML with sensible line widths. Invalid input produces a clear error instead of silent failure. Conversion runs entirely in your browser — config files often contain secrets, and none of it is ever uploaded.
Common uses
- Converting a docker-compose or CI config to JSON for tooling that needs it
- Turning a JSON API response into YAML for a Kubernetes manifest
- Checking whether a YAML file is syntactically valid
- Comparing configs by normalizing both to the same format
FAQ
Are comments preserved?
No — JSON has no comment syntax, so YAML comments are dropped during conversion. Structure and values are fully preserved.
Which YAML features are supported?
The full YAML 1.2 core: nested mappings, sequences, multi-line strings, anchors and references are resolved into plain values.
Is it safe to paste configs with secrets?
The conversion runs entirely in your browser and nothing is uploaded. Still, treat secrets carefully as with any tool.
Why does my YAML fail to parse?
The most common cause is inconsistent indentation — YAML requires spaces (not tabs) and consistent nesting depth.