Nifty / Tools / TOML

TOML Formatter

Tidy TOML files like Cargo.toml and pyproject.toml without losing comments. Syntax errors are shown with their line.

toml-formatter
TOMLDrop a file here
Formatted
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the TOML Formatter

  1. Paste TOML on the left.
  2. Choose the indentation, how arrays are laid out and whether = signs line up.
  3. Copy the result. If the TOML has an error, the status line shows where.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

Can formatting change my data?

No. The formatted file is parsed again and compared with the original. If the data or comments would differ, nothing is changed.

Can I format TOML in VS Code?

Yes. Nifty TOML formats on save, validates against schemas for Cargo, pyproject and other files, and sorts keys.

Related tools