Dad’s Data formats tools

JSON ↔ YAML Converter

Convert between JSON and strict YAML 1.2 — locally, instantly.

JSON Input
YAML Output

YAML output will appear here.

Paste, upload, or drop a file in the input panel to get started.

JSON vs YAML: What Changes

YAML is a superset of JSON. Every valid JSON document is valid YAML, but not vice versa. When converting JSON to YAML, the output is strict YAML 1.2 — a cleaner format for config files because you don't need to quote most strings and objects don't need curly braces.

JSONYAML equivalentNotes
"hello"helloStrings without special chars don't need quotes
{"key": "val"}key: valObjects become indented key-value pairs
[1, 2, 3]- 1 - 2 - 3Arrays become dash-prefixed lists
true / falsetrue / falseBooleans are identical in YAML 1.2
nullnullNull is identical
4242Numbers are identical
Input
{"user":{"id":1,"name":"Alice","active":true,"tags":["admin","editor"]}}
Output
user:
  id: 1
  name: Alice
  active: true
  tags:
    - admin
    - editor

YAML Gotchas When Converting Back

Warning: In YAML 1.1 (used by older parsers like PyYAML by default), bare words like yes, no, on, off are parsed as booleans — not strings. This tool outputs YAML 1.2 which does NOT have this problem, but if you paste the output into a YAML 1.1 parser, a key named yes will become true.
YAML valueYAML 1.1 resultYAML 1.2 result
yes / notrue / false"yes" / "no" (string)
on / offtrue / false"on" / "off" (string)
1.0floatfloat
0755integer (493)string "0755"

Try It

Interactive — edit the input to see the output update
JSON Input
YAML Output

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools