TOML Formatter
Why use a private TOML formatter?
TOML is the config format behind Rust's Cargo, Python's pyproject.toml, Cloudflare's wrangler.toml, Hugo, and Netlify. Those files often carry registry tokens, database URLs, and internal hostnames alongside the settings you are trying to debug.
formatvault validates and formats TOML entirely in your browser, so you can check a config file without sending its contents to anyone else's server.
How it works
Your input is parsed with a spec-compliant TOML v1.0 parser. If parsing fails, the error names the line so you can jump straight to it. If it succeeds, the data is written back out with consistent spacing, quoting, and table layout.
The tree view shows the parsed structure as collapsible nodes, which makes deeply nested tables and arrays of tables much easier to follow than the raw file.
Common use cases
- Checking a Cargo.toml or pyproject.toml that a build tool refuses to read
- Validating wrangler.toml or netlify.toml before a deploy
- Finding duplicate keys or tables that were defined twice
- Normalising the formatting of a hand-edited config file
- Exploring arrays of tables with the tree view
Frequently asked questions
- Which version of TOML is supported?
- TOML v1.0, including inline tables, arrays of tables, multi-line strings, and offset date-times. Files such as Cargo.toml, pyproject.toml, and wrangler.toml all parse as standard TOML.
- Are comments preserved when formatting?
- No. Formatting parses your TOML into data and writes it back out in a consistent style, and comments are not part of that data. Use the formatter to validate and normalise structure, and keep your original file if its comments matter.
- How do I find a syntax error in a large TOML file?
- Parse errors report the line number where the parser failed, and the editor highlights that line. Common causes are duplicate keys, a table defined twice, and unquoted strings.
- Is it safe to paste config files that contain secrets?
- Yes. Parsing and formatting happen in your browser, so your TOML is never sent to a server. That matters for files that hold API tokens, database URLs, or registry credentials.
- Does it work offline?
- Yes, once the page has loaded. The TOML parser is bundled with the app and needs no network access.