JSON YAML Converter

Paste JSON or YAML and convert instantly in either direction — type-safe, lossless, and formatted the way config files expect. One-click copy on the result.

100% client-side — data never leaves your browser Both directions Free · no signup

JSON input

Paste any valid JSON — objects, arrays, strings, numbers, booleans and null are all supported.

YAML output

Config sprawl eating your day?

QADIR OS agents read, rewrite and keep your JSON, YAML and env files in sync across every repo and environment — automatically, on your own machine.

Join Early Access

JSON to YAML, and back again

JSON and YAML are two ways of writing the same thing: nested data made of maps, lists and scalar values. JSON wins for APIs and data interchange because it is strict and unambiguous. YAML wins for configuration because it is easier for humans to read and edit — it uses indentation instead of braces, allows comments, and drops the quote-and-comma noise. This converter moves your data between the two without you retyping a single line, and because YAML is a superset of JSON, a round trip is lossless.

JSON
{
  "service": "api",
  "replicas": 3,
  "ports": [80, 443],
  "tls": true,
  "owner": null
}
YAML
service: api
replicas: 3
ports:
  - 80
  - 443
tls: true
owner: null

What gets converted

Both directions preserve your data types, so a number stays a number and a boolean stays a boolean — they are never silently turned into strings.

JSONYAMLNotes
{ } objectindented key: value blockTwo-space indent by default
[ ] arraydash-prefixed list- item per element
"text"quoted only when neededBare words stay unquoted for readability
42 / 3.1442 / 3.14Numbers kept as numbers
true / falsetrue / falseBooleans preserved
nullnullEmpty values kept explicit

When should I use YAML instead of JSON?

Reach for YAML whenever a human has to read or edit the file by hand: Kubernetes manifests, Docker Compose files, GitHub Actions and other CI workflows, Ansible playbooks and most application config all use it. Reach for JSON when a machine is the audience — API request and response bodies, package.json, and data you store or transmit. A common workflow is to author config in YAML for readability, then convert to JSON when a tool only accepts JSON. This tool does both.

Does the conversion change my data?

No. JSON and YAML share one data model, so structure and values survive a round trip intact. The only differences you will see are cosmetic — indentation instead of braces, fewer quotes, and no trailing commas. If you convert JSON to YAML and back to JSON, you get equivalent JSON.

Privacy

Everything runs in your browser as plain JavaScript. Your JSON or YAML is never uploaded, logged or stored on any server — refresh the page and it is gone. That makes it safe to paste API keys, environment files, and confidential configuration.

More developer tools