TOML Formatter, Syntax Validator & JSON / YAML Converter

Built for Cargo.toml, pyproject.toml & cloud configs · Losslessly preserves comments, 64-bit integers & decimal precision

Raw Input & Diagnostics.toml
0 lines · UTF-8
Paste or type configuration on the left to see live formatted output, converted syntax, or path tree.

TOML Syntax Rules & Configuration Troubleshooting Guide

What are the most common TOML syntax pitfalls compared to YAML or JSON?

TOML 1.0 strictly requires "=" instead of ":" for assignments, forbids redefining keys or tables at the same level, and disallows trailing commas inside inline tables ({ a = 1 }). Our diagnostic engine pinpoints the exact line and column.

Does formatting TOML strip comments or alter 64-bit integers and decimals?

No. Our default TOML formatter uses a token-preserving lexical pass that keeps all # comments, quote styles, large integers, and trailing-zero decimals (e.g. 199.50) intact while normalizing spacing and array indentation.