Skip to content
Input
TOML
Limit
1 MiB
Runtime
Browser

Format TOML through its typed data model

Parse valid TOML and write a normalized representation while keeping the complete operation inside the active browser tab.

Local processingNo sign-upNo content logging

Format TOML

Inputs are limited to 1 MiB and stay in this browser tab.

Paste or edit the source. Tool Swim does not upload or save it.

Formatted TOML

Nothing is placed in a URL, account, or remote log.

What this tool does

Strict, bounded, local processing

Formatting first validates the complete document, then normalizes assignment spacing, line endings, and trailing non-string whitespace while preserving comments and TOML presentation choices.

Validation protects value boundaries

Whitespace replacement cannot distinguish layout from text inside strings. The formatter validates keys, tables, arrays, numbers, booleans, and date-time values before applying conservative source edits.

Invalid source remains editable and receives a bounded diagnostic rather than a guessed repair.

Conservative formatting preserves context

Comments, quote forms, dotted keys, inline tables, and table order remain source-owned. The formatter limits itself to deterministic spacing and line-ending cleanup.

Primary references

Questions and answers

Related TOML tools