dev

JSON ↔ YAML

Convert between JSON and YAML formats. Auto-detects direction from input.

Loading…

About JSON ↔ YAML

JSON to YAML converts in both directions and auto-detects which way you're going from the input you give it — paste JSON and get YAML, paste YAML and get JSON. It's the everyday tool for moving config between a YAML-based deployment file and a JSON API payload. Conversion runs entirely in your browser, so config that may contain hostnames or secrets never leaves your machine.

Category
dev
Input
Accepts: text/plain, application/json, application/x-yaml or text/yaml.
Output
Outputs: text/plain.
Cost
Free, runs in your browser
Memory
low
Privacy: JSON ↔ YAML runs entirely on your device. Files you provide never leave your browser — no uploads, no server, no tracking. The page works offline once loaded.

Common uses

  • Turn a JSON API response into readable YAML for a Kubernetes or CI config
  • Convert a docker-compose YAML snippet into JSON to embed in a script
  • Rewrite a package config from JSON to YAML to match a tool that prefers YAML
  • Flip a YAML settings file into JSON for a system that only accepts JSON
  • Compare two formats by converting one config to the other side by side
  • Clean up hand-written YAML by round-tripping it through JSON and back

Frequently asked questions

How does it know which direction to convert?

It auto-detects from the input: valid JSON is converted to YAML, and YAML is converted to JSON. No need to pick a direction.

What inputs are accepted?

Plain text plus JSON and YAML MIME types (application/json, application/x-yaml, text/yaml).

Is my config uploaded?

No. The conversion runs locally in your browser, so config values — including any secrets — stay on your device.

Are comments preserved?

YAML comments are not part of the JSON data model, so converting to JSON drops them. The structural data is preserved.

Does it handle nested structures and arrays?

Yes. Nested objects, arrays, and scalar types map between the two formats.

What if my input is invalid?

If the text isn't valid JSON or YAML, the converter reports a parse error rather than producing malformed output.

Keywords

  • json
  • yaml
  • convert
  • transform
  • config
  • format

Try next