Convertools Dev
All tools

Convert JSON to YAML

Turn JSON into readable YAML with 2-space indentation.

JSON input

Paste text or drop a file here (up to 50 MB).

YAML result

Free to use. Your input stays in this browser.

How to use it

  1. Paste JSON or drop a .json file.
  2. The YAML appears as you type.
  3. Copy it or download it as a .yaml file.

Strings that YAML would read as another type are quoted. "true", "no", "null", "1.0", and "2024-01-05" keep their quotes, so YAML 1.1 and 1.2 parsers both read them as strings.

Text with line breaks uses a literal block (|), and numbers keep their exact digits.

Example

JSON input
{"name":"web","version":"1.0","replicas":3,"ports":[80,443],"env":{"NODE_ENV":"production","DEBUG":"false"},"script":"npm ci\nnpm run build\n"}
YAML result
name: web
version: "1.0"
replicas: 3
ports:
  - 80
  - 443
env:
  NODE_ENV: production
  DEBUG: "false"
script: |
  npm ci
  npm run build