YAML ↔ JSON Converter
Indent:
Live conversion - results update as you type
YAMLInput
JSONOutput
Syntax Comparison
| Data Type | YAML | JSON |
|---|---|---|
| String | name: John | "name": "John" |
| Number | age: 30 | "age": 30 |
| Boolean | active: true | "active": true |
| Null | value: null | "value": null |
| Array | - item1 - item2 | ["item1", "item2"] |
| Object | person: name: John | {"person": {"name": "John"}} |
YAML
About YAML
YAML (YAML Ain't Markup Language) is a human-friendly data serialization format. It uses indentation for structure and is commonly used for configuration files (Docker, Kubernetes, CI/CD).
JSON
About JSON
JSON (JavaScript Object Notation) is a lightweight data interchange format. It's easy for machines to parse and is the standard for APIs and web data exchange.