TOML Formatter
NewFormat, validate, and minify TOML configuration files.
Frequently Asked Questions
Will formatting keep my comments and original layout?
No. The parser strips comments and rebuilds the document from parsed data, so the output is normalized TOML, not your original formatting with comments preserved.
Why does valid TOML sometimes fail with “Unsupported TOML value” here?
This is a custom parser, not a full TOML library. It handles common strings, arrays, inline tables, tables, arrays of tables, booleans, integers, floats, and its datetime pattern, but more advanced TOML features can fail.
What does the Minify button do?
It removes the extra blank lines the formatter normally inserts between sections. It still outputs readable TOML key/value lines and headers rather than collapsing everything into one line.
Can it handle multiline strings and arrays of tables?
Yes. The parser explicitly supports triple-quoted multiline strings and [[table]] arrays of tables, then serializes them back out.
Why did my dotted keys turn into normal table sections?
The tool parses dotted keys into nested objects, then serializes nested objects as section headers like [site] or [site.author]. It does not try to preserve your original dotted-key style.