Format and validate TOML with smol-toml. Explore structure in an interactive tree or D3 graph, export as JSON, SVG, or PNG. Ideal for Cargo.toml. Browser-based.
The TOML Formatter is a smol-toml-powered, browser-based tool that parses, validates, and re-serialises TOML configuration files into clean, consistently structured output. It validates documents against the TOML v1.0 specification and surfaces parse errors with precise messages. After formatting, three additional output views are available: a JSON representation of the parsed data, an interactive Tree View for collapsing and expanding sections, and a card-based Graph View that renders the key hierarchy as a hierarchical node graph — exportable as SVG or PNG. All processing happens client-side; your configuration files never leave the browser.
QWhich TOML version does this support?
TOML v1.0.0 — the current stable specification, implemented by smol-toml.
QWhat is the JSON output tab?
After formatting, the JSON tab provides the parsed TOML document as a formatted JSON object. This makes it easy to understand the data structure or copy it for use in JSON-only contexts.
QWhat is the Graph View?
The Graph tab renders TOML sections and key relationships as an interactive card-based hierarchical node graph. It can be exported as SVG or PNG for documentation.
QIs my TOML sent to a server?
No. All parsing, formatting, and rendering happens locally inside your browser. Nothing is transmitted to any server.