YAML Formatter
Format and validate YAML with consistent indentation and optional key sorting.
Format and validate TOML with consistent structure and optional key sorting.
TOML Formatter reformats TOML into a clean, consistently structured output. It can also sort keys alphabetically and validates syntax in the process. Useful for tidying up Cargo.toml, pyproject.toml, Hugo configuration files, and other TOML-based project configs.
Yes. If you enter invalid TOML, a parse error message is displayed with the line number.
No. Comments are removed during the parse and re-serialization process.
No. TOML does not have anchor or alias features.
No. All processing happens entirely in your browser.
The formatter supports the main TOML v1.0 syntax including tables, array of tables, inline tables, multiline strings, and datetime literals.