YAML → JSON Converter

Convert YAML to JSON. Paste YAML or import a file; preview, copy, and download.

YAML
Paste YAML directly or import a .yaml or .txt file from this device.
JSON
JSON output updates as soon as the input contains valid YAML.
{
  "title": "YAML Example",
  "owner": {
    "name": "Tom Preston-Werner"
  },
  "database": {
    "ports": [
      8001,
      8001,
      8002
    ],
    "enabled": true
  }
}

What this tool is for

Use this tool when you need to turn valid YAML into JSON that is easier to scan, share, or commit. Everything runs locally in the browser.

Where it helps

  • Converting API examples into JSON for docs or config files.
  • Rewriting copied YAML payloads into a format that is easier to diff by eye.
  • Preparing structured content for tools and workflows that expect JSON.

What to watch for

  • Input must be valid YAML in this tool.
  • The converter preserves data structure, but JSON presentation can still differ from hand-written style.
  • If you need to go the other direction, use the JSON to YAML converter instead.