⚑ 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 useK8s, Docker, CI/CDAPIs, configs, webRust, Hugo, Cargo
SpecYAML 1.2RFC 8259TOML 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.