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.
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
Other data formats
Related reading
·8 min
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.
·7 min
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.
·7 min
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.