JSON to YAML.

Convert JSON into clean, human-readable YAML in your browser. Deterministic ordering, sensible quoting, full client-side processing.

Processed in your browserNo upload, no signup

JSON input

0 lines · 0 chars

YAML output

0 lines · 0 bytes
Your input is processed locally and isn't uploaded for processing. Verify by opening DevTools → Network — there are no requests carrying your data.

JSON to YAML examples.

// Simple object

name: John
age: 25
active: true
{
  "name": "John",
  "age": 25,
  "active": true
}

// Nested object

user:
  name: John
  address:
    city: New York
    country: USA
{
  "user": {
    "name": "John",
    "address": {
      "city": "New York",
      "country": "USA"
    }
  }
}

// Array of items

languages:
  - JavaScript
  - Python
  - Go
{
  "languages": [
    "JavaScript",
    "Python",
    "Go"
  ]
}

Frequently asked questions.

Is my JSON sent to a server?

No. Conversion runs entirely in your browser. Open the network tab and you will see no request carrying your JSON.

Does the converter preserve key order?

Yes. We use js-yaml which preserves the iteration order of the parsed JSON object.

What if my JSON is invalid?

You will see an error message with the exact line and column where the parse failed. Your input is preserved.

How are numbers and booleans emitted?

Numbers, booleans, and null values are emitted as native YAML scalars (not quoted strings).

Related tools.