Normalize TOML files for configs, CLIs, and tooling manifests.

Formatted TOML

Run the tool to see the result here

Overview

TOML Formatter makes pyproject, Cargo, and tool manifest files easier to scan by enforcing consistent spacing, table alignment, and quoting.

Use Cases

Rust & Cargo Projects

Keep Cargo.toml files review-friendly when editing dependencies, features, or workspace members.

Python Tooling

Format pyproject.toml before committing updates to build-system, lint, or type-checker settings.

CLI Configuration

Ensure developer tooling such as Taplo, Biome, or Rome config stays readable between teammates.

How to Use

  1. Paste TOML text

    The parser handles multi-line strings, inline tables, and arrays-of-tables without manual tweaks.

  2. Run the formatter

    Whitespace and ordering are normalized while keeping comments and structure intact.

  3. Copy updated TOML

    Replace the original file or share snippets with teammates once formatting succeeds.

Frequently Asked Questions

Are comments preserved?

Yes. Comments remain with their respective sections so context is not lost during formatting.

Will numeric literals change?

Numeric values are parsed and reprinted without altering precision—underscores and base prefixes are respected.

Related Tools

External Resources