TOML Validator & Formatter
Free online TOML validator and formatter: line-and-column error hints, normalized layout and JSON conversion — local.
Privacy: all processing happens locally in your browser. Your input never leaves your device.
What is TOML Validator & Formatter?
Rust's Cargo.toml, Python's pyproject.toml and many static site generators use TOML. Its stricter syntax avoids YAML's indentation traps, but arrays of tables and nested tables still take getting used to. This tool validates TOML in real time with clear line-and-column errors, normalizes the layout, and converts to JSON so you can confirm the structure your config actually parses into.
How to Use
- Paste TOML content
- Syntax errors are flagged instantly with line and column; click to format the layout
- Switch to TOML -> JSON mode to confirm the parsed structure
FAQ
- Does formatting keep comments?
- No. Formatting re-serializes after parsing, so comments and blank-line styling are lost — back up with version control first.
- What is the difference between [table] and [[table]]?
- [table] defines a sub-table (an object); [[table]] appends a table to an array of the same name (an array of objects). Switch to TOML -> JSON mode to see the difference clearly.
- What are the limits of JSON to TOML conversion?
- TOML does not support null values — fields containing null raise an error, and the top level must be an object.
Related Tools
Regex TesterFree online regex tester: real-time match highlighting, capture groups, all g/i/m/s/u/y flags and a syntax cheatsheet.Mock Data GeneratorFree online mock data generator: 13 field types (names, phones, emails, UUIDs, IPs), up to 1000 rows, JSON or CSV.Markdown EditorFree online Markdown editor: live side-by-side preview, GFM tables, task lists, code blocks, Mermaid diagram rendering and autosave.JavaScript Online RunnerFree online JavaScript runner: run code in an isolated sandbox iframe with live console capture and timeout protection.YAML Validator & FormatterFree online YAML validator and formatter: real-time checks with line-numbered errors, re-indent and JSON conversion.Code Diff & CompareFree online code compare tool with GitHub-style side-by-side view, inline character highlights and syntax highlighting.
Last updated 2026-09-04