TOML Formatter

Check and tidy TOML files like Cargo.toml, pyproject.toml and Hugo configs. Paste or drop TOML to validate it against TOML 1.0 with exact error positions, reformat it consistently, or convert it to JSON — and turn JSON into TOML. Several files can be converted at once.

TOML value types

TOMLJSON
1979-05-27T07:32:00Z"1979-05-27T07:32:00Z"
0xff255
inf"inf"
[[bin]]"bin": [{…}]

When to use it

  1. Find the syntax error in a Cargo.toml or pyproject.toml.
  2. Convert TOML config to JSON for a script.
  3. Generate TOML from JSON.
  4. Normalize the layout of config files.

How to Use

  1. Choose format, TOML → JSON or JSON → TOML.
  2. Paste or drop files.
  3. Fix any reported error, then copy or download.

Features

  1. Full TOML 1.0 parser
  2. Line and column errors
  3. Consistent formatting
  4. TOML ⇄ JSON
  5. Big-integer safe
  6. Batch to ZIP

FAQs

How do I validate TOML?

Paste it — errors show the line and column.

Are comments kept?

Not when reformatting or converting; the data is preserved.

How are dates converted to JSON?

As ISO 8601 strings, since JSON has no date type.

Why does JSON with null fail?

TOML has no null value. Remove or replace nulls first.

Is my file uploaded?

No.

Technical Details

The parser implements TOML 1.0: - **Strings:** basic, literal and both multi-line forms, including line-ending backslashes and \u escapes. - **Integers:** decimal, hex, octal and binary, with underscores only between digits. - **Floats:** exponents, inf and nan. - **Date-times:** offset date-times, local date-times (with T or a space), local dates and local times, with impossible dates rejected. - **Tables:** inline tables, dotted keys, [tables] and [[arrays of tables]]. It enforces the spec's rules — no duplicate keys, no table defined twice, no extending inline tables or static arrays — and reports errors with a line and column. Formatting re-serializes plain keys first, then tables and arrays of tables, optionally sorted; comments are not preserved. For JSON, dates become strings, out-of-range integers keep every digit, and inf and nan become strings.

Data & CSV Tools

Data & CSV Tools

  • JSON Deep Merge
  • JSON Lines \u21c4 CSV
  • SQL INSERT to CSV
  • JSON Normalizer
  • CSV \u21c4 YAML
  • XSD Viewer
  • CSV Column Extractor
  • CSV Delimiter Converter