YAML ↔ JSON converter
JSON ↔ indentation YAML for common maps, lists, and scalars. No anchors/tags. Nothing is uploaded.
Ready
How it works
JSON → YAML uses 2-space indent, plain scalars when safe, JSON-style quotes when needed.
YAML → JSON parses a practical subset: indented maps/lists, quoted strings, numbers, booleans, null. No anchors, tags, merge keys, or multi-document streams.
Tabs are rejected. For full YAML 1.2 edge cases, use offline tooling with a complete parser.
Examples
server:
host: localhost
port: 8080
features:
- auth
- cache
{
"server": { "host": "localhost", "port": 8080 },
"features": ["auth", "cache"]
}
FAQ
Parse error? Often tabs, anchors, or complex multiline (| >). Simplify structure.
Types? Unquoted true/false/null/numbers are typed; quoted values stay strings.
Duplicate keys? Later keys win in this subset parser.
Is this js-yaml? No CDN. A small subset ships in the page.
Uploaded? Never.