Skip to content

TOML Editor & Converter

Validate TOML and convert it to JSON or YAML and back, for Cargo.toml, pyproject.toml and other config files.

TOML Editor & Converter

Output:
Indent:
52 lines

Supported TOML features

Key-value pairs

Strings, integers, floats, booleans, dates (ISO 8601), and special values (inf, nan).

Tables

Standard tables [section] and nested tables [section.subsection] with dotted key support.

Arrays & inline

Arrays [1, 2, 3] and inline tables {a = 1, b = 2} with proper nesting.

Multi-line strings

Triple-quoted strings """...""" for multi-line content and array of tables [[products]].

Updated . Provided as is. Check the output before you rely on it in production.

How to use TOML Editor & Converter

  1. 1

    Paste TOML

    Paste a TOML file such as Cargo.toml or pyproject.toml. Syntax errors are reported as you type.

  2. 2

    Format or convert

    Use Format to normalize the TOML, or convert TOML to JSON or YAML to see the parsed structure. Sort keys and indent width apply to the output.

  3. 3

    Convert back to TOML

    Switch the direction to turn JSON or YAML into TOML.

  4. 4

    Copy or download

    Copy the result or download it, then confirm your application reads the new config, for example by building the Rust project.

Questions and answers

What is TOML Editor & Converter?
TOML is a configuration format of key = value pairs grouped under [table] headers, used by Cargo.toml and pyproject.toml. This editor parses and validates TOML, converts it to JSON or YAML, converts JSON or YAML back to TOML, and reports parse errors.
Does TOML Editor & Converter store or send my data?
No. All processing happens entirely in your browser. Your configuration data never leaves your device — nothing is sent to any server.
Which config files use TOML format?
Cargo.toml (Rust), pyproject.toml (Python packaging), Hugo site config, netlify.toml and wrangler.toml all use TOML. It is designed to map unambiguously to a hash table and to stay readable.
For AI agents: how to call this tool

Machine-readable contract, endpoints and examples. Humans can ignore this section.

Best Path For Builders

Browser workflow

Runs instantly in the browser with private local processing and copy/export-ready output.

Browser Workflow

This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.

/toml-editor/

For automation planning, fetch the canonical contract at /api/tool/toml-editor.json.