TOML Formatter

Format TOML 1.1 while preserving comments, string contents and original value tokens.

Data & Formats
Preparing your workspace…
Input
Output
Your result will appear here.

How to use

  1. Paste TOML, open a UTF-8 file or try the Sample.
  2. Choose indentation and format the document.
  3. Review the preserved comments and values, then copy or download.

TOML Formatter

Paste TOML or open a UTF-8 file. The parser validates TOML 1.1 before adjusting spacing, indentation of multiline containers and excess blank lines. Invalid documents are not rewritten.

Processing stays in your browser. DevToolsy does not receive the pasted data or selected file.

Input and processing

Choose two or four spaces. Key/value separators and comma spacing are normalized while table/key order, comments, number spelling and multiline string contents remain intact.

Worked example
Input
# Project configuration
title="DevToolsy"
ports=[3000,8080]
[server]
host="127.0.0.1"
workers=4 # local workers
Output
# Project configuration
title = "DevToolsy"
ports = [3000, 8080]
[server]
host = "127.0.0.1"
workers = 4 # local workers

This example uses the default settings.

Result and limitations

Formatting checks syntax, not application-specific settings or schemas. It does not sort keys, resolve external schemas, execute directives or convert the document through JSON.

Using the output

Review the preserved comments and values, then copy or download.

Processing limits

UTF-8 input up to 1 MiB; output up to 8 MiB. Processing stops after 30 seconds.

?

Frequently asked questions

What does TOML formatting change?

Paste TOML or open a UTF-8 file. The parser validates TOML 1.1 before adjusting spacing, indentation of multiline containers and excess blank lines. Invalid documents are not rewritten.

Are comments and exact value tokens preserved?

Choose two or four spaces. Key/value separators and comma spacing are normalized while table/key order, comments, number spelling and multiline string contents remain intact.

Does formatting validate application configuration?

Formatting checks syntax, not application-specific settings or schemas. It does not sort keys, resolve external schemas, execute directives or convert the document through JSON.

Is the input uploaded?

Processing stays in your browser. DevToolsy does not receive the pasted data or selected file.

Can I keep the result?

Review the preserved comments and values, then copy or download.

Find your next tool

Language

Switch language? Your current work will be cleared. Copy or download it first.