TOML Formatter

Normalize a valid TOML configuration into consistently structured TOML.

Input

Processed on your device

How to use TOML Formatter

Format a valid TOML document into consistent tables and value syntax. This is useful for reviewing small project configurations.

  1. Paste TOML or open the file, format and compare the result with the important settings in the source.
  2. Select Format and review the result.
Example input
title = "Field Notes"
quantity = 12
[stock]
in_store = true

Example use

Normalize a draft configuration before publishing it as an example in documentation.

Output and compatibility

The tool parses then serializes the data. Comments, inline presentation and original spacing may be lost. It expects a valid TOML document before formatting.

Troubleshooting

If the input fails, check duplicate tables, misplaced brackets and unsupported values before trying again.

Use JSON to TOML if the configuration starts as a JSON object.

Frequently asked questions

Will comments survive?

Save a copy first if comments matter. This formatter generates TOML from parsed data.

Can I convert it to JSON instead?

Use TOML to JSON.

Find a tool