What is TOML 1.0?
TOML 1.0.0 is the stable specification of Tom’s Obvious Minimal Language released in January 2021. It defines an unambiguous mapping from configuration text to a hash table, with explicit types for strings, integers, floats, booleans, datetimes, arrays, and tables. Cargo, Poetry, Hugo, and many other tools target TOML 1.0.
What does the validator check?
It checks well-formedness: each line is either blank, a comment, a [table] or [[array of tables]] header, or a key = value pair. Strings must be terminated, arrays must close, inline tables must balance braces, and values must match a recognised TOML type (string, number, datetime, boolean, array, inline table).
What are common TOML errors?
Top causes of TOML parse failures: (1) missing closing quote on a string, (2) trailing comma allowed inside arrays but causing odd parses elsewhere, (3) duplicate table definitions across the same path, (4) bare keys with disallowed characters, (5) array-of-table headers ([[ x ]]) confused with arrays of arrays inside a value.
How is dotted notation parsed?
A key like a.b.c = 1 creates implicit tables: { "a": { "b": { "c": 1 } } }. A header like [a.b] makes a, b explicit tables. The validator confirms that nothing redefines an already-existing table at a given path.
Why does my Cargo.toml fail validation?
The two most frequent culprits in Cargo.toml: an unquoted version string with characters Cargo accepts but TOML doesn’t, and an inline table like { version = "1", features = ["a", "b"], } where a stray newline appears inside the braces. TOML inline tables must be on a single line.
Does the validator check semantic correctness?
No — only well-formedness. Whether your Cargo.toml has the right [package] keys, whether dependency versions exist on crates.io, whether pyproject.toml conforms to PEP 621 — those are semantic checks beyond TOML syntax. Use cargo verify-project or a build-system-specific tool for that.
Can it handle pyproject.toml?
Yes. pyproject.toml files used by Poetry, PDM, Hatch, setuptools, and the PEP 518/621 specs all parse cleanly. Headers like [tool.poetry], [tool.poetry.dependencies], and [build-system] are all recognised correctly.
Is my TOML uploaded?
No. The validator runs entirely in JavaScript inside your browser. TOML files often contain registry tokens, deploy keys, or proprietary settings — open DevTools → Network and verify no request is sent when you click Validate.