Skip to main content
WizTools123
Free Online Tools

Tool Categories


Developer Tools New Tool

Free Online TOML Formatter and Validator, With a Table Tree

Paste a TOML file and find out what it really declares. The parsed result is shown as a tree of tables and keys, so the difference between a table and an array of tables is visible, and the file is written back out tidily or shown as JSON instead.

Validates As You Type Tree Of Tables TOML Or JSON View Runs In Your Browser
Free Online TOML Formatter and Validator, With a Table Tree
Share this tool
TOML Formatter & Validator Everything happens in this tab. Nothing you paste is sent anywhere.
Your TOML
Result
Output

This TOML parses.

0 keys 0 tables 0 arrays of tables 0 levels deep

What this file declares

    The tree is built from the parsed value, so it shows the structure your file produced rather than the order you typed it in. Two [[server]] blocks appear as one array holding two tables, because that is what they are.

    Buy Us A Coffee

    Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.

    Buy Us A Coffee

    How to Use TOML Formatter and Validator

    Step by step, start to finish.

    1
    Paste your TOML

    A Cargo manifest, a pyproject file, a Hugo or Netlify config. It is parsed as you type and nothing is uploaded.

    2
    Read the tree

    Every table, array of tables and key is drawn with its kind, so you can see what the file declared rather than what you hoped it declared.

    3
    Pick a view

    TOML gives you a tidy re-emitted file. JSON shows the parsed value with no room for doubt about what is a table and what is an array.

    4
    Copy or download

    Or press Use as input to run the result through again, for example to sort the keys of what you just tidied.

    Key Features

    What this tool does, and what it does not do.

    Validates as you type

    A tick when the file parses, and the line and column of the problem when it does not.

    Tree of tables

    Every table, array of tables and key, with its kind beside it.

    A JSON view

    The parsed value as JSON, for when the structure must be unambiguous.

    Tidy re-emission

    Sorted keys, indented tables and short arrays kept on one line.

    Counts the structure

    Keys, tables, arrays of tables and how deep the nesting goes.

    Nothing uploaded

    Config files carry hosts and tokens; this one stays in your tab.

    About TOML Formatter and Validator

    TOML was designed to be an obvious configuration format, and for flat files it is. Tables are where it takes more care: a single bracket declares a table, a double bracket appends to an array of tables, and an inline table in braces holds the same data as a table header but is closed once written. Predicting the data structure a file produces is easier with the structure in front of you, and that is what this page shows.

    What does it show?

    It validates and re-emits the file, and it draws the parsed result as a tree of tables and keys. The tree is built from the data the parser returned, so it shows what your file declares rather than what the layout suggests: two [[server]] blocks appear as one array holding two tables. Under the verdict, a count line gives the number of keys, tables and arrays of tables, and how deep the nesting goes. When the file does not parse, the message carries the line and column the parser reported.

    Which layout options are there?

    • Show as TOML for a tidy file, or JSON for the parsed value with no ambiguity.
    • Sort keys alphabetically, useful for diffing two versions of a config.
    • Keep short arrays on one line, for arrays that fit in 72 characters.
    • Indent keys under their table, if you like a nested look.

    Parsing is done by a TOML parser that runs in the page. The writer was built for this tool, so table order, inline arrays and indentation follow the switches above exactly. Because the output is written from the parsed data, comments are left out of it; keep your original file for anything maintained by hand and use the output to check structure or tidy generated config.

    It works with Cargo manifests, pyproject files, Hugo and Netlify configs, and any other TOML you paste, and Use as input lets you run a second pass on the result.

    Frequently Asked Questions

    Common questions about this tool.

    One bracket declares a single table, and it may appear only once in the file. Two brackets declare an element of an array of tables, and each repeat appends another table to that array. So three [[server]] blocks give you a list of three server tables, while three [server] blocks are an error. The tree on this page shows which one you got.

    The output is written from the parsed data, and a TOML parser reads comments as notes for humans rather than as data, so they are not part of what it returns. Use this page to check a file and to tidy generated output, and keep your original copy for any file maintained by hand, where the comments matter.

    TOML has genuine date and date-time types, and the parser converts them into date values. When those are written back out they take a standard form, which can add a time or an offset to what you wrote as a plain date. The instant being described has not changed, only its spelling.

    Yes. Set Show as to JSON and the output box holds the parsed value as formatted JSON, which you can copy or download. It is a genuinely useful way to settle an argument about whether something is a table or an array of tables, because JSON has no ambiguity there.

    It checks that the TOML is syntactically valid and shows the exact structure it produces, which is usually what explains an error from Cargo, Poetry, Hugo or Netlify: a key under the wrong table, or a table where an array of tables was expected. Whether those particular keys are accepted is defined by each tool's own documentation or schema.

    More Developer Tools

    Other tools from the same hub, free and in your browser.

    All Developer Tools

    Feedback

    No feedback on this tool yet. Yours would be the first.