historia.vg / Tools / TOML

TOML Formatter

Paste TOML, pick your options, and copy the result. Handles common TOML files, not the full spec.

CLI alternative

Reformat TOML with Python's toml library. This prints the result without changing the file, but drops comments.

python3 -c 'import toml; print(toml.dumps(toml.load("input.toml")), end="")'

Install:

sudo pacman -S python-toml
sudo apt install python3-toml