Skip to content

YAML ↔ JSON Converter

Convert YAML to JSON and JSON to YAML in your browser. Choose readable (pretty) or one-line JSON output when converting from YAML.

How to Use

  1. Select direction: Choose YAML → JSON or JSON → YAML
  2. Paste input: Enter your content in the text area
  3. JSON format (YAML → JSON only): Pick pretty-printed or one-liner output
  4. Convert: Click Convert or press the button after editing

Ready

Features

  • Bidirectional: Convert YAML to JSON or JSON to YAML
  • JSON formats: Pretty-printed (readable) or compact one-liner
  • Swap & reverse: Move output to input and flip direction in one click
  • Copy output: One-click copy to clipboard
  • Responsive design: Works on desktop and mobile

Privacy & Security

🔒 100% Client-side: All processing happens in your browser. No data is sent to any server or saved anywhere.

Examples

YAML → JSON (pretty)

host: switch01
interfaces:
  - name: GigabitEthernet0/1
    enabled: true
{
  "host": "switch01",
  "interfaces": [
    {
      "name": "GigabitEthernet0/1",
      "enabled": true
    }
  ]
}

YAML → JSON (one-liner)

Same input produces:

{"host":"switch01","interfaces":[{"name":"GigabitEthernet0/1","enabled":true}]}

JSON → YAML

{"vlan": 100, "name": "management", "active": true}
vlan: 100
name: management
active: true