Skip to content
LovTools
EN

TOML to JSON Converter

Convert TOML config files (Cargo.toml, pyproject.toml) to JSON.

Processed locally on your device — nothing is uploaded.

About the TOML to JSON Converter

TOML is the configuration format of Cargo.toml, pyproject.toml, Hugo, Netlify and many other tools. Paste a TOML file and get the equivalent JSON, ready for scripts, APIs or a JSON viewer.

The converter uses a complete TOML 1.0 parser, so tables, [[arrays of tables]], inline tables, multi-line strings and dates all work, and invalid TOML is reported with the reason. Dates and times become ISO 8601 strings because JSON has no date type. Choose 2 or 4 spaces of indentation or a minified result.

How to use the TOML to JSON Converter

  1. Paste your TOML.
  2. Choose the JSON indentation.
  3. Copy or download the JSON.

Features

  • Full TOML 1.0 support
  • Clear error messages
  • Dates as ISO 8601
  • Pretty or minified

Supported formats

  • Plain text

Frequently asked questions

Are comments kept?

No — JSON has no comments, so TOML comments are dropped.

Is my text sent anywhere?

No. Everything runs in your browser, so nothing you paste is uploaded or stored.

Added · Last reviewed · Maintained by Sohail Khax · How we test tools