TOML Formatter

TOML format, validate, convert to/from JSON

TOML Formatter

Note: supports basic TOML (key-value, sections, arrays, inline tables, numbers, booleans, strings).

About TOML Formatter

TOML formatter validates and formats TOML and converts between TOML and JSON. Useful for Rust Cargo, Python Poetry, static site generators and application configuration files.

How to Use

  1. Paste TOML or JSON content
  2. Choose TOML-to-JSON or JSON-to-TOML mode
  3. Validate syntax and inspect errors
  4. Copy the converted configuration

Frequently Asked Questions

What is TOML good for?
TOML is readable and commonly used for project configuration files such as Cargo.toml, pyproject.toml and Hugo configs.
Will TOML to JSON lose information?
Normal values, arrays and tables convert well. Comments, original ordering and formatting details may not be fully preserved.
Why do dates or strings parse incorrectly?
TOML has strict rules for dates, booleans, quoted strings and array types. Check that the input follows the TOML specification.