JSON ↔ YAML ↔ TOML Converter
Convert between JSON, YAML, and TOML formats.
Convert between JSON, YAML, and TOML instantly
Modern software projects use a mix of data formats: JSON for APIs, YAML for CI/CD pipelines and Kubernetes configs, TOML for Rust and Python project files. This converter lets you transform data between all three formats without any server round-trips.
Swap formats in one click
Use the ⇄ Swap button to reverse the conversion direction. Converting JSON to YAML to check how a config will look? Swap back to JSON to verify the round-trip is lossless. All conversions run instantly in your browser.
Frequently asked questions
- What is the difference between JSON, YAML, and TOML?
- JSON (JavaScript Object Notation) is a compact, strictly structured format widely used in APIs and web apps. YAML (YAML Ain't Markup Language) is a human-readable superset of JSON used in config files (Docker, Kubernetes, GitHub Actions). TOML (Tom's Obvious, Minimal Language) is an INI-like config format used in Rust (Cargo.toml), Python (pyproject.toml), and Hugo.
- Does my data get sent to a server?
- No. All conversion happens 100% in your browser using JavaScript. Your configuration data, API keys, and secrets never leave your device.
- What YAML features are supported?
- The converter supports nested maps, sequences (lists), scalar types (string, number, boolean, null), and quoted strings. Advanced YAML features like anchors, aliases, multi-document streams, and block scalars are not supported.
- What TOML features are supported?
- Supported: key-value pairs, nested tables ([section]), arrays of tables ([[array]]), inline arrays, and all scalar types. Not supported: datetime types, multi-line strings, dotted inline tables, and comments (lost on round-trip).
- Can I convert YAML back to JSON?
- Yes. Select YAML as the input format and JSON as the output format, paste your YAML, and click Convert. Use the ⇄ Swap button to quickly reverse the direction.
Related tools
- JSON Formatter
Format, beautify, minify, and validate JSON in your browser
- QR Code Generator
Generate QR codes for URLs, text, Wi-Fi, and more. Download as PNG.
- Password Generator
Generate strong, random passwords with custom length and character sets.
- Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to plain text.
- URL Encoder / Decoder
Encode or decode URLs and query strings with percent-encoding.