JSON to YAML Converter
Convert JSON to YAML for config files that humans read and review in diffs. Free, in your browser, with no upload.
Output format
YAML
Overview
Why convert JSON to YAML
YAML is the more practical choice here. CI pipeline and deployment configuration
Need a different output format or per-file settings? The data converter handles every format in one place. Going the other way? Use YAML to JSON.
Comparison
JSON vs YAML: how they differ
| Attribute | JSON | YAML |
|---|---|---|
| Full name | JavaScript Object Notation | YAML Ain't Markup Language |
| Encoding | Text (editor-readable) | Text (editor-readable) |
| What it preserves | Preserves nesting and value types exactly | Same data model as JSON, plus comments and anchors |
| Typical size | Verbose: keys repeat on every record | Compact: no braces, and no quotes on most scalars |
| Support | Native in every programming language and every browser. | Ubiquitous in DevOps tooling; libraries exist for every language. |
How to
How to convert JSON to YAML
- 01
Drop your JSON file
Drag one or more JSON files onto the drop zone above, or click to browse. Files stay on your device and there is no upload step. data formats can't be reliably identified from their bytes alone, so the extension is used to work out the source format.
- 02
Convert to YAML
convert.now parses the JSON and writes it out as YAML in a Web Worker, so the page stays responsive even on large files. Nothing is sent anywhere.
- 03
Download the result
Download the YAML file, or a zip of all of them for a batch. Filenames are preserved, with the extension changed to .yaml.
Why here
Why convert.now
- Private
Files stay in your browser. There is no upload step, so nobody else can see them.
- Fast
There is no queue and no upload to wait for. Conversion starts when you drop a file.
- Free
There are no ads, no limit on the number of files and no sign-up.
FAQ
JSON to YAML: common questions
No. The JSON to YAML conversion runs entirely in your browser. Files never leave your device, and there is no server involved in the conversion. To confirm it, open the Network tab in your browser's developer tools and run a conversion: you will see the page and its code load, and no request carrying your file.
JSON is a plain-text data format that stores nested objects and arrays. It is the standard payload format for web APIs, readable in any text editor, and parsed natively by every major programming language. YAML is an indentation-based data format that expresses the same structures as JSON but reads more like prose. It supports comments, which JSON does not, and is the usual choice for CI configuration and Kubernetes manifests.
No. Both formats represent the same data model, so the values and their structure come across intact. Comments do not survive a round-trip through JSON. Converting YAML to JSON and back loses them permanently.
Comments do not survive a round-trip through JSON. Converting YAML to JSON and back loses them permanently. In YAML 1.1 parsers, unquoted `no`, `off` and `yes` become booleans. This is the 'Norway problem', where the country code NO turns into false.
YAML represents nesting directly, so the structure of your JSON is preserved as it is.
JSON has no comment syntax. Anything stripped from a JSONC or JSON5 source is gone. More broadly: JSON is the default interchange format for web APIs and configuration. It represents nested objects and arrays as plain text, with six value types: string, number, boolean, null, object and array.
YAML suits: cI pipeline and deployment configuration; files humans edit by hand and review in diffs; config that benefits from inline comments. It is the wrong choice when machine-to-machine payloads, where JSON's smaller spec means fewer surprises.
There is no hard limit. The constraint is your browser's memory. Larger files take longer, and a browser tab typically has 250-500MB to work with, so very large batches are better split into smaller groups.
Yes. The drop zone falls back to your phone's file picker, and the conversion runs on the device exactly as it does on desktop. Large files are slower on a phone because there is less CPU and memory available, but nothing about the workflow changes.
More
Other conversions from JSON
More
Other conversions to YAML
Last updated