.tomlapplication/tomlStructured Data & Configuration

Tom's Obvious Minimal Language (TOML)

Rust Cargo.toml, Python pyproject.toml, Hugo/Netlify configs, and typed application settings files.

Quick Answer

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.

TOML · Format specs
PropertyTOML
File extension.toml
MIME typeapplication/toml
Structure typeHierarchical
EncodingUTF-8 Text
Nesting supportYes
LLM token efficiencyMedium
Schema / typedYes
Best forRust 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 null values in standard TOML 1.0
  • Not designed for streaming records or large array datasets

Convert & inspect TOML locally

Related engineering guides

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.

Authoritative References

Explore other formats

All 14 formats →