$devtoolkit.sh/tools/toml-formatter

TOML Formatter

Format TOML files with consistent whitespace around keys, values, and section headers.

$toml input
0 chars1 lines
$formatted toml[READY]
0 chars1 lines

Related Tools

FAQ

What TOML features are supported?
Basic key-value pairs, [section] headers, [[array of tables]], inline arrays, and single/double quoted strings are all handled. Complex multi-line literals and dotted keys have basic support.
Are comments preserved?
Yes — comments on their own line or inline after a value are detected and preserved in the formatted output.
What is the standard TOML formatting style?
The formatter adds a single space on each side of the = sign (key = value), inserts a blank line between sections, and normalizes indentation inside arrays.

Paste TOML content and get it back cleanly formatted: consistent spacing around = signs, a blank line between sections, and normalized string quoting. Handles [sections], key=value pairs, arrays, inline tables, and multi-line strings.

/tools/toml-formatterv1.0.0