Does the TOML Formatter validate syntax?
Yes. Invalid tables, duplicate keys, malformed strings, unsupported values, and other syntax errors should be reported before formatting.
Formatter
Format and beautify TOML configuration files online with consistent tables, arrays, spacing, and syntax validation. Process TOML locally.
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.
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.
Yes. Invalid tables, duplicate keys, malformed strings, unsupported values, and other syntax errors should be reported before formatting.
Comment preservation depends on the parser. A syntax-tree-based formatter can retain comments, while basic parsing and serialization may remove them.
Yes. Local dates, local times, local date-times, and offset date-times should remain distinct TOML value types.
No. TOML parsing and formatting run locally in your browser.