Advertisement
Advertisement

Free online JSON ↔ YAML converter — turn JSON into readable YAML, or parse YAML back into JSON, in your browser.

Advertisement
Advertisement

About JSON ↔ YAML conversion

Paste JSON and click To YAML to get clean, readable YAML with 2-space indentation, or paste YAML and click To JSON to parse it into formatted JSON. The editor auto-detects which language you pasted, validates it as you type, and points at the exact line when something is wrong. Everything runs locally in your browser.

Is my data uploaded anywhere?

No. Conversion happens entirely in your browser with JavaScript — your configs, manifests, and pipelines are never sent to a server, so the tool works offline and is safe for sensitive files.

Which YAML features are supported?

Mappings and sequences (block and flow style), comments, quoted and plain scalars with YAML 1.2 typing, a leading document marker, and | / > block scalars for multiline text. Anchors, aliases, custom tags, merge keys, and multi-document streams are not supported — the parser reports a clear error instead of silently guessing.

Does "yes" become true? What about version numbers like 1.0?

No — the parser follows modern YAML 1.2 typing, so only true/false are booleans and yes/no/on/off stay strings. Unquoted numbers like 1.0 become JSON numbers; quote them ("1.0") to keep them as strings — exactly as YAML defines it.

How are multiline strings converted?

A JSON string containing line breaks becomes a YAML literal block scalar (|), which keeps every line break exactly and stays human-readable. Going the other way, both literal (|) and folded (>) blocks parse back into ordinary JSON strings.

Will my data survive a round trip?

Yes — that is the design goal. The generated YAML quotes anything ambiguous (like "true", "1.0", or text with a #), so converting JSON to YAML and back returns exactly the same JSON, keys, types, and all.

Collapse the page

Both options play the collapse and reload this site fresh from the network. They differ in what they take with them.

Refresh files
Drops the offline cache and service worker. Your saved inputs and settings are kept — use this if the site is serving something stale.
Erase everything
All of the above, plus every tool's saved input — including your JWT and HMAC keys — and your settings. Deleted from your device, not sent anywhere. This cannot be undone.