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
Convert the other way: YAML to JSON
Free to use. Your input stays in this browser.
How to use it
- Paste JSON or drop a .json file.
- The YAML appears as you type.
- 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
{"name":"web","version":"1.0","replicas":3,"ports":[80,443],"env":{"NODE_ENV":"production","DEBUG":"false"},"script":"npm ci\nnpm run build\n"}name: web
version: "1.0"
replicas: 3
ports:
- 80
- 443
env:
NODE_ENV: production
DEBUG: "false"
script: |
npm ci
npm run build