β‘ Data Formats
YAML / JSON / TOML Converter
Convert between YAML, JSON and TOML in any direction β instantly, in your browser. Paste your config, pick input and output formats, and get clean converted output. Great for Kubernetes, Terraform, Docker Compose and CI/CD config migrations.
Input Format
Output Format
π How to Use This Tool
βΌ
1
Select input format (YAML, JSON or TOML) and output format
2
Paste your config into the input panel
3
Output updates instantly β toggle Pretty print and Sort keys
4
Click Swap β to reverse input/output or Download to save
π Examples
YAML β JSON
Input: apiVersion: apps/v1
kind: Deployment
Output: {"apiVersion": "apps/v1", "kind": "Deployment"}
JSON β TOML
Input: {"name": "my-app", "port": 3000}
Output: name = "my-app"
port = 3000
π Input
YAML
β¨ Output
JSON
β‘ Quick Conversions
YAML β JSON
JSON β YAML
TOML β YAML
YAML β TOML
JSON β TOML
TOML β JSON
π Format Comparison
| Feature | YAML | JSON | TOML |
|---|---|---|---|
| Comments | β # hash | β | β # hash |
| Human readable | ββ Very | β Moderate | ββ Very |
| Common use | K8s, Docker, CI/CD | APIs, configs, web | Rust, Hugo, Cargo |
| Spec | YAML 1.2 | RFC 8259 | TOML v1.0 |
Note on TOML: TOML supports some data types that don't map cleanly to JSON/YAML (e.g. datetime, integers vs floats). Complex nested TOML with array-of-tables may require manual review after conversion.