Sample TOML File Download — Free Config File Examples
Download free sample TOML config file examples from 1KB to 500KB — Cargo.toml (Rust), pyproject.toml (Python), and nested structures. Use these TOML test files for parser validation, Rust/Python tooling testing, and config management workflows.
Generate custom TOML fileCreate up to 1GB locally in your browsersample-1kb.toml
30 lines
Verified file details
- Filename
- sample-1kb.toml
- Exact size
- 1,024 bytes
- Displayed size
- 1 KB
- MIME type
- application/octet-stream
- Lines
- 30
- Note
- simple-config
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/toml/sample-1kb.toml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-10kb.toml
300 lines
Verified file details
- Filename
- sample-10kb.toml
- Exact size
- 10,240 bytes
- Displayed size
- 10 KB
- MIME type
- application/octet-stream
- Lines
- 300
- Note
- cargo-toml-style
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/toml/sample-10kb.toml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-50kb.toml
1,500 lines
Verified file details
- Filename
- sample-50kb.toml
- Exact size
- 51,200 bytes
- Displayed size
- 50 KB
- MIME type
- application/octet-stream
- Lines
- 1,500
- Note
- config-style
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/toml/sample-50kb.toml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-100kb.toml
3,000 lines
Verified file details
- Filename
- sample-100kb.toml
- Exact size
- 102,400 bytes
- Displayed size
- 100 KB
- MIME type
- application/octet-stream
- Lines
- 3,000
- Note
- nested
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/toml/sample-100kb.toml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-500kb.toml
15,000 lines
Verified file details
- Filename
- sample-500kb.toml
- Exact size
- 512,000 bytes
- Displayed size
- 500 KB
- MIME type
- application/octet-stream
- Lines
- 15,000
- Note
- large-dataset
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/toml/sample-500kb.toml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-cargo.toml
60 lines
Verified file details
- Filename
- sample-cargo.toml
- Exact size
- 2,048 bytes
- Displayed size
- 2 KB
- MIME type
- application/octet-stream
- Lines
- 60
- Note
- cargo-manifest
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/toml/sample-cargo.toml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
sample-pyproject.toml
45 lines
Verified file details
- Filename
- sample-pyproject.toml
- Exact size
- 1,536 bytes
- Displayed size
- 1.5 KB
- MIME type
- application/octet-stream
- Lines
- 45
- Note
- python-project
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/toml/sample-pyproject.toml
See how TrueFileSize generates and measures sample files, or review the editorial policy.
Use cases for sample TOML files
- Testing TOML parsers (@iarna/toml, toml-js, Python tomllib)
- Validating Cargo.toml manifests for Rust projects
- Testing pyproject.toml parsing for Python build tools
- Benchmarking TOML vs YAML vs JSON parsing performance
- Testing config file loading in application frameworks
- Validating TOML schema and type checking tools
TOML vs YAML vs JSON
| Feature | TOML | YAML | JSON |
|---|---|---|---|
| Simplicity | Simple (no gotchas) | Complex (many edge cases) | Simple |
| Native types | Dates, times, integers | Implicit (error-prone) | Strings, numbers, bools |
| Comments | Yes (#) | Yes (#) | No |
| Deeply nested | Verbose (dotted keys) | Natural (indentation) | Natural (braces) |
| Used by | Rust (Cargo), Python, Hugo | K8s, Docker, Ansible | npm, APIs, TypeScript |
TOML syntax overview
# Strings, numbers, booleans
title = "My Application"
port = 8080
debug = false
# Dates (native type — no quotes needed)
created = 2024-01-15T10:30:00Z
# Arrays
tags = ["web", "api", "production"]
# Tables (like objects/sections)
[database]
host = "localhost"
port = 5432
name = "myapp"
# Nested tables (dotted keys)
[database.pool]
min = 5
max = 20
# Array of tables
[[servers]]
name = "alpha"
ip = "10.0.0.1"
[[servers]]
name = "beta"
ip = "10.0.0.2"Technical specifications
| Full name | Tom's Obvious Minimal Language |
| Extension | .toml |
| MIME type | application/toml |
| Current version | TOML v1.0.0 (2021) |
| Native types | String, Integer, Float, Boolean, DateTime, Array, Table |
| Created by | Tom Preston-Werner (2013) |
Frequently Asked Questions
What is TOML?
TOML vs YAML — Which is better for configuration?
TOML in Rust/Cargo — How does Cargo.toml work?
How do I parse TOML in Python?
What is pyproject.toml?
Other data formats
Related reading
Mocking REST APIs with JSON Fixtures
Fast frontend iteration without a backend. MSW, json-server, and sample fixtures for users, products, and nested objects. Copy-paste examples.
Sample JSON Data for API Testing and Mocking
Free sample JSON files for testing REST APIs. Users, products, nested objects, GeoJSON, and API response wrappers with code examples.
Seeding Test Databases with Sample Data — SQL, JSON, CSV
How to seed development and staging databases using sample SQL dumps, JSON files, and CSV imports from TrueFileSize. Covers PostgreSQL, MySQL, SQLite, MongoDB, and Prisma.