YAML to JSON and JSON to YAML converter
Paste YAML or JSON — it's detected and converted to the other format, with the error line if something's wrong.
About YAML ↔ JSON
Paste YAML or JSON; the format is detected and converted. Syntax errors show the line and column. It uses js-yaml with full YAML 1.2 support (anchors, multi-line strings, multiple documents).
YAML uses indentation instead of brackets — spaces only, never tabs.
FAQ
Why is my YAML invalid?
Usually tabs or uneven indentation — YAML needs spaces.
More tools here
JSON formatter Base64 encode / decode Image ↔ Base64 URL encode / decode HTML entities Hash generator UUID generator JWT decoder Regex tester Cron generator Unix timestamp converter Code formatter Markdown preview Text ↔ binary Color converter Contrast checker CSS gradient JSON to CSV CSV to JSON JSON to TypeScript AES encryption TOTP generator Password strength checker CSS box shadow CSS border radius Tailwind colors Color palette generator Aspect ratio calculator Chmod calculator