TOML Formatter
Prettify and validate TOML config files in the browser — syntax-highlighted output with line numbers and precise error locations.
FAQ
What does the TOML Formatter do?
It parses your TOML using the smol-toml library, re-serialises it with consistent formatting, and applies syntax highlighting for section headers, keys, strings, numbers, booleans, dates, and comments. If the TOML is invalid it reports the error with a line number.
What is TOML?
TOML (Tom's Obvious, Minimal Language) is a configuration file format designed to be easy to read due to obvious semantics. It is used by Cargo (Rust), pyproject.toml (Python), and many other tools. It maps unambiguously to a hash table.
What TOML features are supported?
All TOML v1.0 features: standard tables, array of tables, inline tables, inline arrays, dotted keys, quoted keys, multi-line strings, all number types (integer, float, hex, octal, binary), booleans, and all date/time types.
Is my data sent to a server?
No. All parsing and formatting happens in your browser using the smol-toml library. Nothing is transmitted.