TOML syntax
TOML uses key-value pairs, tables, arrays, inline tables, arrays of tables, dotted keys, strings, numbers, booleans, and date/time values. The validator parses these structures before formatting.
Paste TOML configuration files to format, validate, and inspect them locally in your browser.
Paste TOML content or load a sample to begin.
Paste Cargo.toml, pyproject.toml, application settings, or other TOML configuration text.
Formatted TOML appears after validation.
TOML validation
Validate TOML to see table counts, keys, arrays, syntax errors, warnings, and formatted output.
TOML Guide
TOML is common in Rust, Python, build tools, and application settings where predictable configuration syntax matters.
TOML uses key-value pairs, tables, arrays, inline tables, arrays of tables, dotted keys, strings, numbers, booleans, and date/time values. The validator parses these structures before formatting.
JSON is strict data interchange, YAML is flexible and indentation-sensitive, and TOML is designed for configuration files with explicit tables and simple values.
Duplicate tables, unfinished inline tables, trailing separators in the wrong place, invalid strings, and mixed array types are frequent causes of TOML syntax errors.
Rust projects use Cargo.toml for package metadata, dependencies, profiles, workspaces, features, and build settings. Formatting helps keep dependency blocks easy to review.
Python projects use pyproject.toml for build systems, project metadata, dependency groups, pytest, Ruff, mypy, Black, and other tooling configuration.
Formatting normalizes TOML from the parsed structure. Comments and original spacing may not be preserved, so review the output before replacing hand-edited files.
No. TOML is treated as configuration text only. The tool does not run commands, evaluate expressions, load referenced files, or resolve environment variables.
Yes. It supports TOML syntax used for tables, arrays, inline tables, arrays of tables, dotted keys, strings, numbers, booleans, and dates or times where practical in the browser.
Comments may not be preserved after formatting because the output is generated from the parsed TOML structure.
Yes. Use the samples or paste those files directly to validate TOML syntax and produce readable formatted output.