Sample TOML File — Download a Config Test File (.toml)
Tom's Obvious Minimal Language · .toml · MIME type application/toml
Download a sample TOML file — the config format of Rust's Cargo, Python's pyproject.toml and Hugo — with top-level keys, [server] and [database] tables, an inline table, and an [[regions]] array of tables. It is valid TOML 1.0.
TOML was designed to be unambiguous where YAML is not, so a fixture is mostly useful for confirming that your parser is TOML 1.0-compliant (arrays of tables and inline tables are where older parsers fail).
Download sample TOML files
| File | Details | Size | Download |
|---|---|---|---|
sample-config.toml | — | 378 B |
Need one of every data format? Download the data sample pack (202 KB, one small file of every data format (17 files)).
Use these files from the command line or CI
Every URL is stable and CORS-open. Pin the SHA-256 in your test and you will know the moment a fixture changes.
# Download one file curl -O https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/data/toml/sample-config.toml # Verify it (SHA-256 is listed for every file above) shasum -a 256 sample-config.toml # Machine-readable index of every sample file curl https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/index.json | jq '.files[] | select(.format=="toml")'
TOML format at a glance
| Full name | Tom's Obvious Minimal Language |
|---|---|
| Extensions | .toml |
| MIME type | application/toml |
| Standard | TOML v1.0.0 (2021) |
| Contents | Tables, inline table, array of tables, strings, ints, booleans |
| Encoding | UTF-8 |
What people test with sample TOML files
- Parser compliance (arrays of tables)
- Config editors and validators
Frequently asked questions
TOML vs YAML — when should I use which?
TOML for flat-to-moderately-nested application config where clarity matters (it is what Python and Rust chose); YAML when the ecosystem demands it (Kubernetes, CI) or the data is deeply nested. Neither is a good data-interchange format — that is JSON's job.
Are these TOML files safe to download?
Yes. Every file is generated by our own open script from scratch — nothing is scraped or user-uploaded — and contains no scripts, macros or executables. The SHA-256 of each file is published on this page so you can verify what you received.
Can I use the sample TOML files commercially?
Yes. They are free for any purpose, including commercial products, test suites, demos and redistribution, with no attribution required. There is nothing to license and no one to ask.
Can I hotlink these files or use them in CI?
Yes. Every link is a stable direct URL over HTTPS with Access-Control-Allow-Origin: * and long cache headers, so curl, wget, fetch() and test runners can pull them directly. A JSON index of every file is linked from each page (see the command-line section).
Related sample files
Testing a file pipeline? We build them.
Uploads, conversions, previews, document processing and media workflows are the kind of production systems Pine & Birch designs and runs for clients — which is why we needed these files in the first place.
See how we can help