All tools · 🔄 Convert

🔄 YAML ↔ JSON Converter

Paste YAML or JSON — we auto-detect and convert to the other format. Handles nested structures, arrays, strings with special characters, and multiline YAML.

Loading tool…

Examples

JSON → YAML
Input{ "name": "Alice", "tags": ["admin", "beta"] }
Outputname: Alice tags: - admin - beta
YAML → JSON
Inputname: Bob age: 30
Output{ "name": "Bob", "age": 30 }

Frequently asked questions

YAML vs JSON — which to use?

YAML for human-edited config (Docker Compose, GitHub Actions, K8s) — supports comments and is more readable. JSON for APIs, data exchange, and JS interop — stricter and faster to parse.

Why does YAML sometimes silently misparse?

YAML is famously ambiguous — "yes", "no", "on", "off" all parse as booleans. Country code "NO" becomes false. Quote string values to be safe.

Does this support anchors and aliases (&, *)?

Basic parsing only. For complex YAML with anchors, use a library like js-yaml in code.

About this tool

YAML ↔ JSON Converter runs entirely in your browser using standard Web APIs. No data is sent to any server. The source for this tool is in our public GitHub repository.

Related tools

← All 96 tools

Why this tool

vs typical free web-tool sites

1vwTypical free site
PriceFreeFree
Signup requiredNoOften (for premium features)
Ads inside the toolNoYes (banner + video)
Data sent to serverNo (browser-only)Yes (inputs analyzed for ads)
Total tools96Often <20 or scattered across sites
Bookmarkable URL per toolYesMixed
Loads in under 1sYes (static)Often slow (ad tracking)
MultilingualEN / ES / PT / FR / DEUsually EN only
Open sourceYesNo