Developer
JSON to YAML
Turn JSON into readable YAML without leaving your machine.
This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.
Empty. Paste text, drop a file, or load the example.
What this tool does
The converter parses JSON, then dumps YAML with a conservative schema. Anchors and custom tags are not generated. That keeps the YAML boring and reversible.
How to use it
- Paste JSON.
- Copy the YAML or download converted.yaml.
- If you need the original JSON later, use YAML to JSON on the output.
Supported input
- JSON text, UTF-8, up to 2 MB
Output
- YAML 1.1-compatible text using a JSON schema subset
Privacy
This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.
ConvertPass does not include your input in analytics, URLs, or error reports. Encoding: UTF-8. Limit: 2 MB (2.00 MB).
Limitations
- YAML features such as merge keys, custom tags, and binary type tags are not emitted.
- Very wide lines wrap at about 100 characters, which can change visual layout but not the parsed value.
Example
{"image":{"format":"png","local":true}}image: format: png local: true
Troubleshooting
- A string became an unquoted word
- That is valid YAML. If a downstream tool is picky, quote the value in the YAML after conversion.
FAQ
Is every JSON document valid YAML?
JSON is a subset of YAML 1.2. This tool still re-serialises through a parser, so formatting changes. The data should round-trip for ordinary objects, arrays, strings, numbers, booleans, and null.
Will yes or no become booleans?
On the way from JSON, those values are already booleans or strings. On the way back, ConvertPass uses a JSON-compatible YAML loader so the classic YAML 1.1 yes/no country-code surprises are avoided.
Can I convert JSON Lines?
Convert one JSON value at a time, or wrap the lines in an array first.
Does this use a server?
No. js-yaml runs in the browser page.
Related tools
- YAML to JSON
Parse YAML into JSON without custom tags or server-side processing.
- JSON formatter
Pretty-print JSON locally with clear parse errors and a one-click copy.
- TOML to JSON
Turn TOML config into JSON without uploading your secrets file.
Related guides
Related formats
Last reviewed 16 August 2026. Report a problem. Reports do not include your input.