TOML Converter
Convert between TOML, JSON, and YAML formats instantly in your browser.
TOML Input
JSON Output
Output will appear here after conversion.
TOML Converter — TOML ↔ JSON ↔ YAML
TOML (Tom's Obvious Minimal Language) is a configuration file format designed to be easy to read due to its obvious semantics. It is used by tools like Cargo (Rust), Poetry (Python), Hugo, and many others.
Supported Conversions
- TOML → JSON: Parse TOML and output pretty-printed JSON
- TOML → YAML: Parse TOML and output YAML with 2-space indentation
- JSON → TOML: Convert JSON objects to TOML tables and key-value pairs
- YAML → TOML: Convert YAML to TOML format
TOML vs JSON vs YAML
- TOML — Best for configuration files; human-friendly, explicit types
- JSON — Best for APIs and data interchange; strict, widely supported
- YAML — Best for complex configs; supports comments and anchors
TOML Data Types
- Strings:
"hello"or multi-line"""...""" - Integers:
42, Floats:3.14 - Booleans:
true/false - Arrays:
["a", "b", "c"] - Tables:
[section]with nested[section.subsection] - Inline tables:
point = { x = 1, y = 2 }