Formatter
TOML Formatter
Format and beautify TOML configuration files online with consistent tables, arrays, spacing, and syntax validation. Process TOML locally.
Tool
Format and beautify TOML configuration files online with consistent tables, arrays, spacing, and syntax validation. Process TOML locally.
This tool runs in your browser. Your input is processed locally and is not uploaded.
About this Tool
Use this free TOML Formatter to clean up application configuration, package metadata, build settings, and other TOML documents. Paste TOML content, validate its syntax, normalize spacing and table layout, and generate a readable and consistent result. Strings, numbers, booleans, dates, arrays, inline tables, and nested tables are processed directly in your browser.
Examples
- title="Alinra" version="1.0.0" active=true
- [server] host="localhost" port=3000 [server.logging] level="info"
- products=[{name="Jeans",price=89.95},{name="Shirt",price=49.95}]
Frequently Asked Questions
Does the TOML Formatter validate syntax?
Yes. Invalid tables, duplicate keys, malformed strings, unsupported values, and other syntax errors should be reported before formatting.
Are TOML comments preserved?
Comment preservation depends on the parser. A syntax-tree-based formatter can retain comments, while basic parsing and serialization may remove them.
Are dates and times preserved as TOML values?
Yes. Local dates, local times, local date-times, and offset date-times should remain distinct TOML value types.
Is my TOML configuration uploaded?
No. TOML parsing and formatting run locally in your browser.