Development tools
YAML ↔ JSON Converter
Convert YAML to JSON or JSON to YAML — bidirectional, validates syntax, handles multi-document YAML and anchors/aliases.
Bidirectional
Multi-doc YAML
Anchors & aliases
Inline validate
Pretty-print
Copy output
Free · No credit card · 50 credits/day
YAML gotchas — values that surprise developers
| YAML value | Parsed as | Fix (force string) |
|---|---|---|
| yes / no | Boolean true / false (YAML 1.1) | "yes" / "no" |
| on / off | Boolean true / false (YAML 1.1) | "on" / "off" |
| null / ~ | null | "null" / "~" |
| 1.0 | Float | "1.0" |
| 0x1F | Integer (hex) | "0x1F" |
| 2024-01-01 | Date object (some parsers) | "2024-01-01" |
| Tabs (indentation) | Parse error — tabs not allowed | Use spaces only |
YAML 1.2 removed the yes/no/on/off booleans — but many parsers still use YAML 1.1 rules. Quote these values to be safe.
Frequently asked questions
Related dev tools
More format converters and parsers.
Convert YAML and JSON instantly
Free account. 50 credits per day. Access to 75+ tools instantly.
Create free account →