Sample TOML file
A TOML config file with plain keys, a table, a nested table, an array, an array of tables, a date, a float and a boolean. Free, no sign-up. Updated 19 November 2026.
What these files are
A TOML config file with plain keys, a table, a nested table, an array, an array of tables, a date, a float and a boolean.
Every file was generated by our own code, so nothing in them is copied from anyone, and we release them under CC0: use them for anything. The facts in the table were read back from each file after it was written, not typed in by hand.
About the format
TOML (Tom's Obvious Minimal Language) reached version 1.0.0 in 2021. Unlike YAML it has explicit types: strings are always quoted, dates are written without quotes as in released = 2026-11-19, a [table] header starts a section and [[double brackets]] add one more item to an array of tables. Python 3.11 and later read it with the built-in tomllib module.
These files open in text editors and any TOML library. A web server should send them with the header Content-Type: application/toml.
1 file to download
| File | Size | What it is |
|---|---|---|
| sample-config.toml | 447 B | tables, a nested table, an array, an array of tables, a date, a float and a boolean top level keys: 6; admins: 2 |
MIME type: application/toml. Total 447 B.
Good for testing
- Config parsers (tomllib in Python 3.11+)
- Checking date and array-of-tables handling
- Converting TOML to JSON
Check a file
python3.11 -c "import tomllib; print(tomllib.load(open('sample-config.toml','rb'))['admins'])"Compare the SHA-256 checksum to make sure the download is complete and unchanged (sha256sum file on Linux, shasum -a 256 file on macOS, certutil -hashfile file SHA256 on Windows):
| File | SHA-256 |
|---|---|
| sample-config.toml | dc5d043add0be0b907d634ceb7775d203f7867a17b391bb566697ea94f51c6a5 |