Skip to content

TOML Formatter

Embed

Paste this where you want TOML Formatter on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/toml-formatter/" width="100%" height="500" frameborder="0" loading="lazy" title="TOML Formatter"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/toml-formatter/">TOML Formatter</a> by BrowserUtils</p>

Beautify and format TOML configuration files.Runs in this tab.

Next step

About TOML Formatter

Free online TOML formatter and beautifier. Format TOML configuration files with proper indentation and clean structure. It runs in your browser. Nothing is sent to a server.

Questions

How do I beautify a TOML config file?
Paste your TOML content into the input and the formatter will normalize spacing around equals signs, group sections clearly, and ensure consistent indentation for a clean, readable configuration file.
What TOML features does the formatter support?
The formatter handles standard TOML features including tables, inline tables, arrays, multi-line arrays, string values, numbers, booleans, and comments. Comments are preserved during formatting.
Can I format Cargo.toml or pyproject.toml with this tool?
Yes, the formatter works with any valid TOML file including Cargo.toml for Rust projects, pyproject.toml for Python, and Hugo or other static site generator config files.
What is the difference between TOML and YAML?
TOML uses explicit key = value pairs and [section] headers, making it less ambiguous than YAML. YAML relies on indentation for structure and supports more complex data types, but is more prone to subtle formatting errors.

More in Formatters & Beautifiers

All 26 formatters & beautifiers