TOML Format Guide

Tom's Obvious Minimal Language — the modern, typed configuration format

About TOML Format

TOML (Tom's Obvious Minimal Language) is a configuration file format created by Tom Preston-Werner, co-founder of GitHub, in 2013. It was designed to be a minimal, unambiguous configuration format that maps clearly to a hash table. Unlike INI, TOML has a formal specification and supports native data types including strings, integers, floats, booleans, dates/times, arrays, and nested tables.

TOML has been widely adopted in the Rust ecosystem (Cargo.toml), Python packaging (pyproject.toml, Poetry, pip), static site generators (Hugo, Netlify), and many other tools. Its key advantage over YAML is unambiguous parsing — there's only one way to represent each value. Compared to JSON, TOML supports comments and is more human-friendly for configuration. Python 3.11+ includes the tomllib module in the standard library, cementing TOML's status as a first-class configuration format.

Available Conversions

TOML to ADOC

Convert TOML config to AsciiDoc tables for documentation

TOML to AsciiDoc

Convert TOML to AsciiDoc markup for technical docs

TOML to AZW3

Convert TOML config to Amazon Kindle e-book

TOML to Base64

Encode TOML content to Base64 for safe transfer

TOML to BBCode

Convert TOML settings to BBCode for forum posting

TOML to CSV

Flatten TOML config to CSV tabular data

TOML to DOC

Convert TOML to Word 97-2003 document

TOML to DocBook

Convert TOML to DocBook XML for publishing

TOML to DOCX

Convert TOML to Word document with sections

TOML to EPUB

Convert TOML config to EPUB e-book

TOML to EPUB3

Convert TOML to modern EPUB3 format

TOML to FB2

Convert TOML to FictionBook 2.0

TOML to HEX

Encode TOML to hexadecimal representation

TOML to HTML

Convert TOML to styled HTML tables for web

TOML to INI

Convert TOML to INI configuration format

TOML to JSON

Convert TOML to JSON with preserved types

TOML to LaTeX

Convert TOML to LaTeX document with tables

TOML to LOG

Convert TOML to plain text log format

TOML to Markdown

Convert TOML to Markdown tables for README

TOML to MD

Convert TOML to MD Markdown format

TOML to MediaWiki

Convert TOML to MediaWiki tables

TOML to MOBI

Convert TOML to Kindle MOBI e-book

TOML to ODT

Convert TOML to OpenDocument Text

TOML to ORG

Convert TOML to Emacs Org-mode format

TOML to PDF

Convert TOML config to PDF document

TOML to PPTX

Convert TOML to PowerPoint presentation

TOML to Properties

Convert TOML to Java Properties format

TOML to RST

Convert TOML to reStructuredText tables

TOML to RTF

Convert TOML to Rich Text Format

TOML to SQL

Convert TOML to SQL INSERT statements

TOML to SVG

Convert TOML to SVG vector graphic

TOML to SXW

Convert TOML to StarOffice Writer

TOML to TEX

Convert TOML to LaTeX document

TOML to TEXT

Convert TOML to plain text

TOML to Textile

Convert TOML to Textile markup

TOML to TSV

Flatten TOML to tab-separated values

TOML to TXT

Convert TOML to plain text

TOML to Wiki

Convert TOML to Wiki markup tables

TOML to XLSX

Convert TOML to Excel spreadsheet

TOML to XML

Convert TOML to XML configuration

TOML to YAML

Convert TOML to YAML configuration

TOML to YML

Convert TOML to YML configuration

TOML Format Features

  • Native Data Types: Strings, integers, floats, booleans, dates/times, arrays, tables
  • Formal Specification: Unambiguous grammar with clear parsing rules
  • Human-Readable: Minimal syntax designed for easy reading and editing
  • Comment Support: Full-line and end-of-line comments with #
  • Nesting: Sections via [table], sub-tables via [table.subtable], array of tables via [[array]]
  • Inline Tables: Compact notation for small tables: {key = "value"}
  • Multiline Strings: Triple-quoted strings for long values

Common Uses

  • Rust Ecosystem: Cargo.toml for package management and build configuration
  • Python Packaging: pyproject.toml (PEP 518/621), Poetry, pip, setuptools
  • Static Site Generators: Hugo front matter, Netlify configuration
  • CI/CD: GitHub Actions (partial), various build tool configs
  • Application Config: Database settings, server configuration, feature flags
  • Development Tools: Black, isort, mypy, ruff, taplo formatter configs
  • Infrastructure: Terraform configurations, container settings