.tomlapplication/tomlStructured Data & ConfigurationTom's Obvious Minimal Language (TOML)
Rust Cargo.toml, Python pyproject.toml, Hugo/Netlify configs, and typed application settings files.
TOML 1.0 is an explicit key-value and [table] configuration language designed to map unambiguously to a hash table while supporting comments and native RFC 3339 datetimes.
| Property | TOML |
|---|---|
| File extension | .toml |
| MIME type | application/toml |
| Structure type | Hierarchical |
| Encoding | UTF-8 Text |
| Nesting support | Yes |
| LLM token efficiency | Medium |
| Schema / typed | Yes |
| Best for | Rust Cargo.toml, Python pyproject.toml, Hugo/Netlify configs, and typed application settings files. |
Strengths
- No indentation sensitivity — immune to tab/space formatting bugs during manual edits
- Native RFC 3339 date/time types, integers, floats, arrays, and
#comments built into the spec - Standard configuration format across Rust (
Cargo.toml) and modern Python (pyproject.toml)
Trade-offs
- Deeply nested object hierarchies become verbose compared to YAML or JSON
- Cannot natively represent
nullvalues in standard TOML 1.0 - Not designed for streaming records or large array datasets
Convert & inspect TOML locally
Related engineering guides
Compare TOML 1.0, YAML 1.2, and JSON for Kubernetes, CI pipelines, Rust Cargo.toml, Python pyproject.toml, and API configs—and convert locally.
XML Attributes to JSON: Lossless @_ Prefix & Round-Trip GuideConvert XML, SVG, RSS, SOAP, and Maven pom.xml to typed JSON with @_ attribute preservation, XXE-safe pure-JS Web Worker parsing, and clean JSON to XML.
Related Comparisons
TOML frequently asked questions
Why does TOML have no null type?
TOML omits null by design; missing keys represent absence. When converting JSON to TOML, null fields are omitted or flagged.
Can DataTo convert both TOML -> JSON and JSON -> TOML?
Yes. DataTo's TOML tool supports bidirectional conversion via smol-toml strictly in browser RAM.
When is TOML better than YAML?
TOML shines for flat-to-medium app config files like Cargo.toml or pyproject.toml where indentation errors are unacceptable.