JSON ↔ YAML
Convert between JSON and YAML in either direction, instantly.
How to use
Paste JSON to convert it to YAML, or paste YAML to convert it back to JSON — the conversion runs both ways and updates as you type. YAML is easier for humans to read and write (great for config files), while JSON is ubiquitous in APIs and code.
Invalid input is flagged so you can fix it, and you can copy the converted result with one click. It's ideal when you need to move config between tools that expect different formats.
Everything is processed in your browser, so even sensitive config never leaves your device and it works offline.
Examples
Turn a JSON settings blob into tidy YAML for a CI or Docker config file.
Convert a YAML file into JSON for an API request or a tool that needs JSON.
Switch a snippet between formats to match whatever a service expects.
Frequently asked questions
Does it convert both directions?
Yes. JSON to YAML and YAML to JSON, with live updates as you edit.
Why use YAML instead of JSON?
YAML is more readable and supports comments, which makes it popular for configuration. JSON is stricter and more common in APIs.
What happens with invalid input?
The tool reports the error so you can correct the syntax before converting.
Is my data uploaded?
No. Conversion happens in your browser, so your config stays private.
Related tools
Format, validate and minify JSON with precise error locations and key sorting.
Generate TypeScript interfaces from a JSON sample, with nested types inferred.
Encode text to Base64 or decode Base64 back to text, with URL-safe support.
Beautify JavaScript, TypeScript, JSON, CSS, HTML, Markdown, YAML and GraphQL with Prettier.
Convert Markdown (GitHub-flavored) into clean HTML source.