JSON to YAML

Paste JSON and it converts to YAML automatically — nothing leaves your browser.

JSON Input 0 lines
1
YAML Output 0 lines
1
UTF-8 · 0 B JSON → YAML
Waiting for input

How It Maps

  • JSON objects become YAML mappings
  • JSON arrays become YAML sequences
  • Clean, minimal quoting — only where YAML requires it
  • Instant conversion as you paste
  • Copy or download the result

Features & Supported Capabilities

  • 2-space indentation, applied consistently
  • Long lines are never force-wrapped mid-value
  • Detects and reports invalid JSON before converting
  • Handles files up to 10 MB
  • Runs entirely in your browser — nothing uploaded

About this JSON to YAML converter

YAML is easier to read and edit by hand than JSON, which is why it is the format of choice for many configuration files. This free online JSON to YAML converter turns any JSON document into clean, readable YAML with sensible indentation, so you can move an API response or config into a YAML-based tool.

Conversion happens in your browser and nothing is uploaded. To convert back use YAML to JSON, and to check your JSON first use the JSON formatter.

Frequently Asked Questions

Everything you might want to know about the online JSON to YAML converter.

The JSON is parsed into its underlying data, then written back out using YAML's indented block style — objects as mappings, arrays as - sequences.
A string is only quoted when YAML would otherwise misread it — for example a value that looks like a number, a boolean, or starts with a character that has special meaning in YAML.
No. The conversion runs entirely in your browser. Your JSON is never uploaded, stored, or logged.
Yes, use the YAML to JSON tool for the reverse conversion.
Two spaces per nesting level, the most common YAML convention, applied consistently throughout the document.
Yes. Object keys appear in the YAML output in the same order they appear in the source JSON.
You can paste text or upload a file up to 10 MB.
Yes. The JSON is parsed first, so a syntax error is reported with a line and column instead of producing incorrect YAML.
Yes. Use the Copy button to copy it to your clipboard, or Download to save it as a .yaml file.