Free TOML sample, test and dummy files

A configuration format with explicit types and sections, used by Rust, Python and many tools. Download valid TOML test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.toml
MIME type
application/toml
Kind
Text
Category
Configuration

Create a TOML file of any size

Choose any size from 200 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

TOML files by size

Every file below is a valid Tom's Obvious Minimal Language file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.

TOML sample files by size
FileSizeContentsDownload
1 KB TOML samplesample-toml-1kb.toml 1 KB1,024 bytes Records: 4 Download TOML
5 KB TOML samplesample-toml-5kb.toml 5 KB5,120 bytes Records: 30 Download TOML
10 KB TOML samplesample-toml-10kb.toml 10 KB10,240 bytes Records: 62 Download TOML
25 KB TOML samplesample-toml-25kb.toml 25 KB25,600 bytes Records: 158 Download TOML
50 KB TOML samplesample-toml-50kb.toml 50 KB51,200 bytes Records: 317 Download TOML
100 KB TOML samplesample-toml-100kb.toml 100 KB102,400 bytes Records: 634 Download TOML
200 KB TOML samplesample-toml-200kb.toml 200 KB204,800 bytes Records: 1,265 Download TOML
500 KB TOML samplesample-toml-500kb.toml 500 KB512,000 bytes Records: 3,144 Download TOML
1 MB TOML samplesample-toml-1mb.toml 1 MB1,048,576 bytes Records: 6,429 Download TOML
2 MB TOML samplesample-toml-2mb.toml 2 MB2,097,152 bytes Records: 12,814 Download TOML
3 MB TOML samplesample-toml-3mb.toml 3 MB3,145,728 bytes Records: 19,159 Download TOML
5 MB TOML samplesample-toml-5mb.toml 5 MB5,242,880 bytes Records: 31,844 Download TOML
10 MB TOML samplesample-toml-10mb.toml 10 MB10,485,760 bytes Records: 63,551 Download TOML
15 MB TOML samplesample-toml-15mb.toml 15 MB15,728,640 bytes Records: 95,263 Download TOML
20 MB TOML samplesample-toml-20mb.toml 20 MB20,971,520 bytes Records: 126,653 Download TOML
25 MB TOML samplesample-toml-25mb.toml 25 MB26,214,400 bytes Records: 157,984 Download TOML
30 MB TOML samplesample-toml-30mb.toml 30 MB31,457,280 bytes Records: 189,317 Download TOML
50 MB TOML samplesample-toml-50mb.toml 50 MB52,428,800 bytes Records: 314,655 Download TOML
100 MB TOML samplesample-toml-100mb.toml 100 MB104,857,600 bytes Records: 627,991 Download TOML

What is a TOML file?

TOML was designed for configuration files that map unambiguously to a hash table. Values have explicit types, strings are always quoted and sections are introduced by headers in square brackets.

It is the format of Cargo.toml in Rust and pyproject.toml in Python.

How to recognise a TOML file

TOML files have no file signature, the magic bytes that most binary formats begin with.

No signature bytes. TOML files are identified by parsing their content.

Extension.toml
MIME typeapplication/toml
SpecificationTOML 1.0.0
TypesString, integer, float, boolean, date-time, array, table
CommentsStart with #
EncodingUTF-8

What to test for

These are the behaviours that most often go wrong when software handles TOML files.

Strengths of TOML

  • Unambiguous: every value has an explicit type.
  • Comfortable to edit by hand, with comments and clear sections.

Limitations of TOML

  • Deeply nested data becomes awkward to express.
  • Less widely supported than JSON or YAML.

Typical uses of TOML test files

  • Testing configuration parsers
  • Checking project tooling
  • Testing format converters

Software that opens TOML

  • Cargo, pip, Poetry and uv
  • Hugo and Netlify configuration
  • tomllib (Python), toml-rs and @iarna/toml

Specifications

Related

TOML sample files: questions

Which TOML features do the samples use?
A standard table, an array of tables, strings, integers, floats, booleans, dates and arrays.
What is the MIME type of a TOML file?
The MIME type is application/toml. The file extension is .toml.
Is a sample TOML file the same as a dummy or example TOML file?
Yes. Sample, test, dummy and example TOML files are different names for the same thing: a TOML file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy TOML file.