Skip to content
>_ TrueFileSize.com

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.

sample-1kb.toml

1 KB

30 lines

sample-10kb.toml

10 KB

300 lines

sample-50kb.toml

50 KB

1,500 lines

sample-100kb.toml

100 KB

3,000 lines

sample-500kb.toml

500 KB

15,000 lines

sample-cargo.toml

2 KB

60 lines

sample-pyproject.toml

1.5 KB

45 lines

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

FeatureTOMLYAMLJSON
SimplicitySimple (no gotchas)Complex (many edge cases)Simple
Native typesDates, times, integersImplicit (error-prone)Strings, numbers, bools
CommentsYes (#)Yes (#)No
Deeply nestedVerbose (dotted keys)Natural (indentation)Natural (braces)
Used byRust (Cargo), Python, HugoK8s, Docker, Ansiblenpm, 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 nameTom's Obvious Minimal Language
Extension.toml
MIME typeapplication/toml
Current versionTOML v1.0.0 (2021)
Native typesString, Integer, Float, Boolean, DateTime, Array, Table
Created byTom Preston-Werner (2013)

Frequently Asked Questions

Other data formats

Related reading