TOML Formatter
Format TOML configuration files with proper indentation. Also validate syntax against the TOML 1.0 spec.
How to use the TOML Formatter
-
Paste your TOML configuration.
-
Click Format or Validate.
-
Copy the formatted TOML or fix errors.
What is TOML?
TOML is a configuration file format designed to be more human-readable than JSON or YAML. Used by Cargo (Rust), Poetry (Python), and many other tools. This formatter standardizes indentation and validates against the TOML 1.0 specification.
Key features
- Format TOML with consistent indentation
- Validate syntax against TOML 1.0
- Error messages with exact line numbers
- All processing is local
Frequently asked questions
Does it support all TOML 1.0 features?
Yes — dotted keys, inline tables, arrays of tables, all date/time formats, and literal strings.
Where is TOML used?
Rust's Cargo.toml, Python's pyproject.toml, Go modules, and many CI/CD tools.
Is my config uploaded?
No. Everything runs in your browser.