Data tools

JSON to YAML

Convert JSON to YAML. Tool input is processed locally, without uploading it.

Runs locally

Drop a JSON file here, or choose Open file. Up to 1 MB. Files stay in your browser.

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.

  1. 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.

  2. Read the conversion

    Output updates automatically. Convert runs it again. The result uses two-space indentation.

  3. Fix any errors

    Go to error points to syntax problems. Other messages explain unsupported values or limits.

  4. 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.