TOML Formatter
Format and validate TOML with consistent structure and optional key sorting.
Validate TOML syntax and pinpoint errors with clear line references.
TOML Validator checks whether your TOML text is syntactically correct. When there is an error, it shows the error message and highlights the approximate line number. When the TOML is valid, it displays structural information such as the number of keys, tables, arrays, and maximum nesting depth. Useful for debugging Cargo.toml, pyproject.toml, Hugo configuration files, and other TOML-based project configs.
TOML Formatter focuses on pretty-printing. TOML Validator focuses on syntax checking, error location, and structural statistics.
The tool extracts the line where the parse error occurred along with the surrounding lines as a code snippet.
The validator supports the main TOML v1.0 syntax including tables, array of tables, inline tables, multiline strings, and datetime literals.
No. All processing happens entirely in your browser.