Convert TOML to JSON or YAML online. Parse and validate TOML configuration files with support for tables, arrays, inline tables, multiline strings, and all TOML data types.
Convert TOML to JSON, TOML to YAML, or JSON back to TOML. Full support for nested structures and all TOML data types.
Validate TOML syntax with detailed error messages. Catch formatting issues, invalid keys, and type errors before deployment.
Handle tables, arrays of tables, inline tables, multiline strings, integers, floats, booleans, dates, and all TOML v1.0 features.
All parsing and conversion happens in your browser. No server uploads. Works offline. Your configuration files stay private.
TOML (Tom's Obvious, Minimal Language) is a popular configuration file format that balances human readability with machine parseability. It's widely used in modern development tools like Rust's Cargo, Python's Poetry, Hugo static site generator, and many DevOps applications. This converter helps you parse TOML files, validate their syntax, and convert them to JSON or YAML for use with tools that don't natively support TOML.
TOML uses a simple key-value syntax similar to INI files but with richer data types and nested structures. Basic key-value pairs use the format `key = "value"`. Tables (objects) are defined using `[table.name]` syntax, and array-of-tables use `[[array.name]]` for repeated sections. TOML supports strings (basic, literal, and multiline), integers (decimal, hex, octal, binary), floats (including infinity and NaN), booleans, dates and times with timezone support, arrays, and nested tables. Comments start with `#` and continue to the end of the line.
TOML is designed to be more readable than JSON while being more structured and unambiguous than YAML. Unlike JSON, TOML doesn't require quotes around keys, supports comments, and uses a flatter table syntax that's easier to navigate in large configuration files. Compared to YAML, TOML has fewer syntactic surprises -- no significant whitespace, no confusing yes/no/on/off boolean interpretations, and clearer nesting rules. The trade-off is that TOML can be more verbose for deeply nested structures, where JSON's bracket syntax or YAML's indentation might be more compact.
Check out our other configuration and data format tools.
JSON/YAML Converter →