TOML Formatter

Tidy TOML tables and align keys and values.

TOML Formatter

.toml

Paste text or open a file to see the result.

What it does

Tidies TOML files: tables, spacing and the alignment of keys and values. Handy for config files such as Cargo.toml or pyproject.toml that have been edited by hand many times. You get the same settings in a clean layout.

About the .toml format

.TOML file extension
File Type
TOML Source Code Format

TOML Formatter questions

How do I use the TOML Formatter?

Paste the text into the Input box or open a file, set the options, then copy or download the result.

Does renaming a file to .toml change its format?

No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .toml page lists programs and converters for it.