Data tools
JSON to YAML
Convert JSON to YAML. Tool input is processed locally, without uploading it.
Runs locallyPreparing local converter…
Local history
Send to
Preview limit: 1 MB (1,000,000 UTF-8 bytes). Output is limited to 2 MB. Large text scrolls horizontally.
Guide
Turn JSON (JavaScript Object Notation) data into YAML (a human-readable data format). The result expresses the same supported values with indentation, so you can use it in a configuration file.
- Add your JSON
Paste into Input, choose Example object or Example array, or use Open file. You can also use Send to in JSON Formatter & Validator to bring a result here. Input is limited to 1 megabyte. Drag-and-drop works too.
- Read the conversion
Output updates automatically. Convert runs it again. The result uses two-space indentation.
- Fix any errors
Go to error points to syntax problems. Other messages explain unsupported values or limits.
- Keep or share the result
Use Copy output or Download. Share input creates a link; the recipient chooses Load shared input.
On mobile, choose Output to read the result. Clear removes both fields.
Conversion
- The result uses fixed two-space indentation. Original layout and comments are not preserved.
Shortcuts
- Ctrl / Cmd + Enter — Run selected action
- Ctrl / Cmd + Shift + C — Copy output
- Ctrl / Cmd + S — Download output
- ? — Show shortcuts outside text fields
Shortcuts work while focus is in the workspace. Copy and download need valid output.
Common questions
- Is my file uploaded?
- No. Open file and drag-and-drop read the file in this browser. Conversion happens in a local worker.
- Are comments and formatting preserved?
- No. The result contains supported data values with new formatting. Comments and the original YAML layout are not retained.
- Which YAML is supported?
- One YAML 1.2 document with string object keys and JSON-compatible values. Unsupported tags, duplicate keys, cycles and excessive expansion produce an error.
- Why did a large number change?
- JavaScript number precision applies. Keep identifiers and exact large integers in quoted strings.
- What does Share input include?
- The link contains your input. Nothing is uploaded by this tool, but anyone you give the link to can read it. Do not share secrets.
Was this tool helpful?
Only your rating and optional feedback are sent. Your tool input and output are never included.