Private by design
Conversion happens in your browser with JavaScript. Your JSON is never uploaded, logged or stored on a server.
Paste JSON, get clean YAML. Instant, private and free.
Each line of the output, in default formatting, next to the path of the value it holds. Click a row to copy the path.
Runs entirely in your browser, so nothing is uploaded. Fair-use limits apply (5 MB per input, rate-limited conversions) to prevent spam and bots.
Three steps, no sign-up, and your data never leaves your device.
Paste it, drop a file, upload, or load it from a URL. Try a sample to see how it works.
Pick indentation, quotes and sorting. The YAML preview updates live as you change options.
Copy the YAML, download a .yaml file, or share a link to the exact conversion.
Conversion happens in your browser with JavaScript. Your JSON is never uploaded, logged or stored on a server.
YAML updates as you type, with syntax highlighting, line numbers and conversion stats. Large files switch to on-demand mode.
Choose indentation, quote style, line width, inline (flow) depth, array indentation, key sorting and a leading --- marker.
Invalid JSON is explained in plain language with the exact line and column, and one click jumps to the problem.
Comments, trailing commas, single quotes and unquoted keys are accepted, so config files and JSON5 snippets just work.
Split a top-level array into separate YAML documents. NDJSON / JSON Lines logs are detected automatically.
Strings like "yes", "007" or "null" are quoted so they stay strings, and 64-bit integers keep every digit.
Flip the direction with one click. Anchors, merge keys and multi-document YAML are resolved into plain JSON.
Upload or drop a file, fetch from a URL, download the result, or copy a share link that stores the data in the link itself.
The same data, line by line. Point at or tap any line to see where it ends up on the other side.
{ "name": "web-api", "version": "1.10", "replicas": 3, "debug": false, "owner": null, "tags": [ "api", "internal" ], "ports": [ { "name": "http", "port": 80, "expose": true } ], "env": { "LOG_LEVEL": "info", "COUNTRY": "NO" }} name: web-apiversion: '1.10'replicas: 3debug: falseowner: nulltags: - api - internalports: - name: http port: 80 expose: trueenv: LOG_LEVEL: info COUNTRY: 'NO' Point at or tap a line, or focus a pane and use the arrow keys.
Every JSON value has a direct YAML equivalent, so converting JSON to YAML never loses data.
| JSON type | JSON | YAML | What happens |
|---|---|---|---|
| Object | {"port": 80} | port: 80 | One key per line; nesting is shown by indentation |
| Array | ["a", "b"] | - a / - b | Each item on its own line, starting with a dash |
| String | "web" | web | Written without quotes when that is safe |
| Look-alike string | "yes", "007" | 'yes', '007' | Quoted, so it stays a string in every parser |
| Number | 3.5, 9007199254740993 | 3.5, 9007199254740993 | Written as is; big integers keep every digit |
| Boolean | true | true | Only true and false are written, never yes or on |
| Null | null | null | Kept as null (YAML also reads ~ as null) |
| Multi-line string | "a\nb\n" | | then one line each | Becomes a literal block that keeps the line breaks |
| Empty object / array | {}, [] | {}, [] | Written inline |
YAML guesses the type of unquoted text, and YAML 1.1 parsers guess differently from YAML 1.2. Pick a value or type your own to see how each one reads it.
PyYAML, Go yaml.v2 and the tools built on them
The current YAML specification
For the JSON string, with YAML 1.1 safe on
Block scalars are how YAML writes long text. Edit the lines and switch the style to see exactly what a parser reads.
Both describe the same data. JSON is strict and ideal for machines and APIs; YAML is easier for people to read and edit, which is why Kubernetes, Docker Compose, GitHub Actions, Ansible and OpenAPI use it for configuration.
| Feature | JSON | YAML |
|---|---|---|
| Structure | Braces, brackets and commas | Indentation and dashes |
| Comments | Not supported | Supported with # |
| Strings | Always double-quoted | Quotes usually optional |
| Multi-line text | Escaped \n | Block scalars | and > |
| Reuse | None | Anchors and aliases |
| Multiple documents | No (JSON Lines is a workaround) | Yes, separated by --- |
| Best for | APIs, data exchange, storage | Configuration, CI/CD, infrastructure |
{
"service": "api",
"replicas": 3,
"ports": [80, 443],
"env": { "DEBUG": false }
} service: api
replicas: 3
ports:
- 80
- 443
env:
DEBUG: false Converters, validators and step-by-step guides for every place JSON and YAML meet.
Paste your JSON into the left editor, upload a .json file or load it from a URL. The YAML appears on the right instantly. Adjust indentation or quoting if needed, then copy or download the result.
No. The converter runs entirely in your browser, so your JSON never leaves your device. Share links also keep the data inside the link itself (after the # symbol), which browsers do not send to servers.
Values such as yes, no, on, off, null, 007 or 1.10 would be read as booleans, nulls or numbers by many YAML parsers. The converter quotes them so they stay strings. Turn off "YAML 1.1 safe" if you only target YAML 1.2 parsers and prefer fewer quotes.
Yes. With "Lenient JSON" enabled the tool accepts JSONC and JSON5-style input: // and /* */ comments, trailing commas, single-quoted strings and unquoted keys. Disable it to validate against strict JSON.
Most converters silently round integers above 9,007,199,254,740,991 because of JavaScript number limits. This tool preserves big integers such as 64-bit IDs digit for digit in modern browsers.
Enable "Multi-document" and every item of a top-level JSON array becomes its own YAML document separated by ---. JSON Lines (one JSON object per line) is detected and converted the same way, which is handy for Kubernetes manifests.
The tool is free. To keep it fast and discourage bots, fair-use limits apply: inputs up to 5 MB, a generous number of conversions per minute and hour, and a limited number of URL fetches. Normal use never reaches them.
Yes. Switch the direction to YAML → JSON or press the swap button to send the current output back as input. You can pretty-print or minify the JSON and sort its keys.