TOML (Tom’s Obvious Minimal Language) is a minimal configuration file format that uses the .toml extension. TOML aims to be easy to read, to map unambiguously to dictionaries, and to be easy to parse to different data structures. TOML has an open-source specification that received community contributions. TOML is supported by many programming languages like C, C#, Dart, Elixir, Erlang, Go, Java, PHP, Python, Ruby, Swift, etc. The MIME type for TOML files is application/toml.
TOML File Format
TOML files mainly consist of key/value Pairs, sections/tables, comments and must be a valid UTF-8 encoded Unicode document. TOML supports String, Integer, Float, Boolean, Datetime, Array, and Table(hash table/dictionary) data types. TOML is a case-sensitive language.
Key-Value Pairs: Key-value pairs are separated by equals sign (=). Each pair must be on a new line.
Comments: Comments begin with the hash (#) symbol.
# This is a TOML document.
Strings: Strings are surrounded by quotation (") marks.
Multi-line Strings: Multi-line Strings are surrounded by three quotation (""") marks.
[homeaddress]street="""123 Tornado Alley
Suite 16"""city="East Centerville"state="KS"
Booleans: Booleans are always lowercase.
Date-Time: For DateTime, you may use an RFC 3339 formatted date-time as shown in the example below.