Input / output
JSON panel
YAML result
Two-way JSON and YAML conversion with indentation controls, file upload, copy, and download — all processed locally in your browser.
Workspace
Paste config data or upload files, then convert between JSON and YAML with spacing controls and instant output.
Input / output
YAML result
Input / output
JSON result
About this tool
JSON (JavaScript Object Notation) and YAML (YAML Ain't Markup Language) are two popular ways to store structured configuration and API data. JSON is compact and widely used in web APIs; YAML is often preferred for config files because it is easier to read and edit by hand.
This tool converts between the two formats instantly in your browser — useful when moving Kubernetes manifests, Docker Compose files, CI configs, or API payloads between JSON and YAML workflows.
Quick guide
Paste JSON into the left panel or YAML into the right panel, or upload a matching file.
Pick JSON spacing (none, 2 spaces, or 4 spaces) and YAML indent depth if needed.
Click JSON → YAML or YAML → JSON to generate output in the opposite panel.
Use Copy or Download to grab the converted result, or Load sample to try the demo data.
Use Reset samples to restore the starter JSON and YAML examples.
Add JSON or YAML in either panel, or upload a .json, .yaml, or .yml file to load it into the workspace.
Set JSON indentation or YAML spacing before converting so the result matches your config style.
Run JSON → YAML or YAML → JSON, then copy the output or download it as a ready-to-use file.
No. Conversion runs entirely in your browser. Your JSON and YAML never leave your device unless you choose to download or copy the result.
Yes. Use the YAML panel and click Convert to JSON for a round-trip workflow between config formats.
The converter handles common YAML structures such as mappings, sequences, strings, numbers, booleans, and null values. Complex anchors and custom tags may not round-trip perfectly.