About the TOML Formatter & Validator
We made this tool to make it easy, quick, and dependable to use TOML (Tom's Obvious, Minimal Language). TOML is a common format for configuration files. Its explicit semantics make it easy to interpret. It's easy for people to understand, but a little syntax error might break an app. Our tool fixes this by checking and formatting your TOML code as you write it.
The best thing about this tool is that it gives you feedback right away. It verifies your syntax all the time as you type. If it finds an error, it tells you what the error is and where it is. If your code is correct, it will automatically pretty-print it in the output box with normal spacing and indentation. The whole process takes place safely in your browser, so your configuration data is never sent to our servers.
How to Use the Tool
- Paste your TOML code into the "Input TOML" editor on the left.
- If your TOML is valid, a clean, formatted version will instantly appear in the "Formatted & Validated TOML" box on the right, and a "Valid TOML" message will appear below.
- If there is a syntax error in your input, the output will stay empty, and a thorough error notice will appear below, telling you what's wrong and where.
- Click the buttons to copy the formatted output, download it as a `.toml` file, or start over.
Frequently Asked Questions
What is TOML?
TOML is short for "Tom's Obvious, Minimal Language." It's a type of configuration file that is supposed to be simple to read and write. It shows data hierarchies with clear structures like "key = value" pairings, "[sections]," and "[[arrays of tables]]."
Why do I need to format or check TOML?
When you operate in a team, it's extremely vital to format your configuration files so that they are always the same and easy to understand. Validation is very important since a single syntax error, such as a missing quote or a wrong date type, might stop an application from running. This tool helps you find those mistakes before they become problems.
How does the validation work?
The tool uses a strong open-source TOML parser that precisely matches the official TOML standard. The tool tries to understand the text you type in. The TOML is valid if the parsing works. If it doesn't work, the parser gives you a thorough error message, which we show you to help you fix the problem.
Does this tool work with the most recent TOML specification?
Yes. The library we use always has the most recent stable version of the TOML specification (v1.0.0), so it can handle all of the standard TOML capabilities, such as inline tables, multi-line strings, and date-time formats.
Is my configuration data private?
Yes, of course. Your web browser does all the parsing, validation, and formatting. Your data is never transferred to our servers, therefore it's a fully safe way to work with important settings files.