JSON to YAML

Convert JSON documents to clean YAML in your browser. No upload, no signup, no tracking.

Runs in your browser Instant No signup, no tracking

About this tool

Convert JSON — the lingua franca of web APIs — into YAML, which is easier to skim, comment, and hand-edit. Typical uses: bootstrapping a Kubernetes manifest from an API response, moving a JSON config into a CI file, or exporting saved settings into a documented Docker Compose stack. The output uses 2-space indentation and preserves key order. All processing is client-side; nothing you paste is transmitted anywhere.

Example

Paste the input on the left and you will get output like this:

Sample JSON

{
  "server": {
    "host": "localhost",
    "port": 8080,
    "ssl": true,
    "admins": ["alice", "bob"]
  }
}

Resulting YAML

server:
  host: localhost
  port: 8080
  ssl: true
  admins:
    - alice
    - bob

How to use JSON to YAML

  1. Paste or type your JSON into the left pane.
  2. The YAML appears instantly in the right pane. Conversion runs in your browser — nothing is uploaded.
  3. Copy the result to your clipboard or download it as a file.

FAQ

Are comments preserved?
JSON has no concept of comments, so there is nothing to preserve. The generated YAML is comment-free.
Can I customize indentation?
The output uses 2 spaces, which matches the conventions of Kubernetes, GitHub Actions, and most YAML linters.
How are null values written?
As bare `null`, which is compatible with YAML 1.2 and every mainstream parser.