Format TOML

Reformat a TOML file (Cargo.toml, pyproject.toml, application configuration) with clean and consistent formatting.

Example:

How it works

TOML is the configuration format used by many tools (Cargo, Poetry, Hugo...). The tool parses your document to check its validity and then rewrites it with standardized formatting, which makes it easier to review and compare between versions in version control.

Is the order of tables and keys preserved?

The tool rewrites the document based on its parsed structure; the order may differ slightly from the original depending on the file's structure, but all data (keys, values, tables, arrays) is preserved identically.

Can I format a snippet of Cargo.toml or pyproject.toml?

Yes, as long as the pasted snippet forms a valid and complete TOML document (not a section cut off in the middle), the tool will reformat it correctly.

100% local processing: formatting runs entirely in your browser via WebAssembly — your file is never sent to a server.