Data tools
YAML to JSON
Convert YAML to JSON. 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 a YAML (human-readable data format) document into JSON (JavaScript Object Notation). Choose this when you need the data from a configuration file in a program that reads JSON. Comments and the original layout are left out.
- Add your YAML
Paste into Input, choose Example object or Example array, or use Open file. 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. Unsupported values produce an error rather than running code.
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.