historia.vg / Tools / TOML
Paste TOML, pick your options, and copy the result. Handles common TOML files, not the full spec.
Not valid TOML.
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