$yaml-json-converter
Converters
Convert between YAML and JSON formats. Supports multi-document YAML. Everything runs in your browser — nothing is sent to a server.
Direction:
Output will appear here
// how-to
How to convert between YAML and JSON
Round-trip between YAML and JSON in the browser with syntax-highlighted output.
Pick the direction
YAML → JSON or JSON → YAML. The converter auto-detects common mistakes in either direction.
Paste the source
Drop your YAML or JSON into the input panel.
Read the result
The converted output appears syntax-highlighted on the right.
Copy or download
Copy the result or save it as .yaml or .json for use in your project.
// faq
- ? Do I keep comments during conversion?
- No. JSON has no comment syntax. Round-tripping YAML → JSON → YAML strips comments irreversibly.
- ? What about the Norway problem?
- YAML 1.1 parses "no" as false. Quote ambiguous scalars ("no", "yes", "on") or use YAML 1.2 to avoid surprises.
- ? Which YAML version does this use?
- The underlying library follows YAML 1.2, which avoids most of the implicit-type pitfalls in YAML 1.1.