JSON ↔ YAML.
Toggle the direction. Sort keys if you want a canonical form. Runs entirely in your browser.
JSON ↔ YAML
Ready
JSON input
Loading editor…
YAML output
Loading editor…
Frequently asked questions.
- Which YAML version is this?
- YAML 1.2 via the `yaml` npm package — strict, round-trip-safe, no `Norway problem` (bare `no` stays a string).
- Does my data leave my browser?
- No. Parsing and serialization run in your browser. There is no server.
- Can I round-trip safely?
- Most documents survive a JSON → YAML → JSON round-trip. Anchors and tags in handwritten YAML are simplified.
- Does it preserve comments?
- No. JSON has no concept of comments, so comments in handwritten YAML are dropped when going YAML → JSON.
More JSON tools.
- FormatPretty-print JSON with line-accurate errors. Sort keys on demand.
- ValidateCheck a JSON document against a JSON Schema. Per-path error messages.
- MinifyStrip whitespace and shrink your JSON payload. Reports bytes saved.
- Tree ViewBrowse JSON as a collapsible tree. Drill into nested data without scrolling.
- Semantic DiffCompare two JSON files by structure. Per-path adds, removes, modifications.
- JSONPath / JMESPathRun live JSONPath and JMESPath queries against your JSON.