YAML ⇄ JSON Converter
Developer utilities · Done in 3 steps
- 1Pick a direction
- 2
- 3
About
Convert YAML to JSON or JSON to YAML instantly, with multi-document support, sorted keys and errors shown by line and column.
How to use it
- 1Pick a direction: YAML → JSON or JSON → YAML.
- 2Paste your data or open a .yaml/.json file.
- 3Adjust the indent and key sorting.
- 4Copy or download the result, or swap direction to convert back.
- You give
- YAML (including multi-document files separated by ---) or JSON
- You get
- The equivalent JSON or YAML
- Good to know
- Comments and anchors in YAML are not carried over to JSON (JSON has neither). YAML is parsed with the core schema, so values like 2026-10-28 stay strings rather than becoming dates. Multiple YAML documents become a JSON array.
- Privacy
- Processed on your device. Nothing is uploaded, stored or logged.
- Last tested
- 2026-10-28
FAQ
Why did my YAML comments disappear?
JSON has no comment syntax, so comments can't survive the conversion. Converting back to YAML won't restore them.
Why is “yes” or “on” still a string?
This converter uses YAML 1.2's core schema, where only true/false are booleans. That avoids the classic “Norway problem” where the country code NO turns into false.
Go further with AI
Code review checklist
A severity-ranked review checklist for humans and AI reviewers covering correctness, security, data, performance, tests and maintainability.
Claude Code · Cursor · Claude
Bug reproduction template
Turn a vague bug report into minimal reproduction steps, ranked hypotheses and a failing test you can hand to a developer or coding agent.
Claude Code · Cursor · Claude
UI implementation brief
Write a precise brief for building a UI component with a coding agent: states, behaviour, accessibility, responsive rules and acceptance criteria.
Claude Code · Cursor · Claude
Accessibility review workflow
Review a component or page against WCAG 2.2 AA with automated checks, an AI code review and a short manual keyboard and screen-reader pass.
Claude Code · Cursor · Claude