Tested tool guide
Tested browser tools
Checked August 16, 2026
What TOML Formatter & Validator does, with a checked example
Paste any TOML document and get a normalized, section-sorted copy plus a spec check. The tool parses the text against the TOML grammar, and only a valid document is re-emitted, with canonical spacing and the top-level tables in alphabetical order; a parse failure is reported at the exact line and column where it occurred and highlighted in the source. The usual surprise is how strict TOML is: strings must be quoted, booleans are only true or false, numbers and dates are typed values, and duplicate keys are rejected - so a config file another tool tolerated can fail here.
Worked example
A concrete input and expected output from the current implementation.
Input
[package]
name="demo"
version="0.1.0"
[build]
optimize=true
->
Expected output
[build]
optimize = true
[package]
name = "demo"
version = "0.1.0"
The tables are reordered alphabetically - [build] comes before [package] - and the spacing around the equals signs is normalized to one space. Key order inside each table is unchanged: sorting applies to sections, not keys.