TOML Formatter

Format and beautify TOML configuration files with aligned keys

Processed on your device β€” never uploaded
TOML Input
Formatted Output

Frequently Asked Questions

What is TOML?
TOML (Tom's Obvious Minimal Language) is a configuration file format that is easy to read, with clear semantics for key-value pairs, tables, and arrays commonly used in Rust (Cargo.toml) and Python (pyproject.toml) projects.
How does this TOML formatter work?
Paste your TOML content and click Format to get a beautified version with aligned key-value pairs, consistent spacing around equals signs, and proper section separation.
Does the formatter validate TOML syntax?
The formatter parses section headers and key-value pairs, so malformed TOML will produce an error. It handles strings, numbers, booleans, arrays, and dates.
Can I format Cargo.toml or pyproject.toml files?
Yes, paste any TOML configuration file and the formatter will align keys and clean up spacing while preserving all your values and section structure.