JSON to TOML Converter
Turn JSON data or settings into clean, readable TOML. Objects become [tables], lists become arrays and every value keeps its type, giving you a configuration file people can read and edit easily.
How to Convert JSON to TOML
Quick answer: paste your JSON or open the file; the TOML appears below. Copy it or download the .toml file.
-
1
Add your JSON
Paste it or open a file.
-
2
Choose options
Adjust the output on the right.
-
3
Check the TOML
Errors are explained clearly.
-
4
Copy or download
Save it as .toml.
What You Get
What Is JSON?
JSON is the most common format for data and settings exchanged between programs. It uses curly brackets for objects, square brackets for lists and double quotes around every key and text value. It is strict: no comments and no trailing commas are allowed, which makes it reliable for machines but less friendly to edit by hand.
What Is TOML?
TOML is a configuration format designed to be easy to read. Settings are written as key = value lines, grouped under [table] headings, with clear types for text, numbers, true/false, dates and lists. Many build tools, package managers and applications use TOML for their settings files.
Why Convert JSON to TOML?
Many tools now prefer TOML for configuration because it is easier to read and edit than JSON. If your settings currently live in JSON, or a template is only available as JSON, converting saves you rewriting every line and avoids typing mistakes.
How the Conversion Works
Top-level simple values become key = value lines, nested objects become [table] sections, nested objects inside them become [table.subtable], and lists of objects become [[array of tables]]. Text is quoted, while numbers and true/false are written as they are. TOML has no null, so empty values are left out and reported.
Example
The sample shop settings become title = "Shop settings", debug = false and port = 8080, followed by an [owner] table and a [database] table with ports = [ 5432, 5433 ].
Who Uses It?
Developers moving projects to TOML-based tools, people setting up package and build tool configuration, and anyone who wants their settings in a more readable form. Because everything happens in the browser, it is also safe for internal and confidential files.
Using Your TOML File
Save the result with the .toml extension and place it where your tool expects its settings file. Check that dates and numbers came out as you intended, and add comments with # to explain important settings for whoever edits the file next.
Common Problems in JSON Input
Most JSON errors come from small slips: a missing comma between two items, an extra comma after the last item, single quotes instead of double quotes, or a comment left in the file. Text copied from documents can also contain curly quotes that look right but are not valid. The error message shows the line and position, so jump there, fix the character and the result updates straight away. If the file came from a code editor, it may really be JSONC, which has its own converter.
Checking Your TOML Output
Check that settings landed in the right [table] and that lists of objects appear as [[double bracket]] headings, which is how TOML writes repeated groups. Text is always quoted, while numbers, true/false and dates are not. Because TOML cannot store empty values, any null in the input is left out; the status line tells you when this happened so you can add a sensible default.
Step by Step
Start by pasting your JSON into the input box, or press Open File to load it from your device. The converter reads it straight away and shows the TOML in the output box. If the input has a problem, a short message explains what is wrong and where, so you can fix it in place. Next, adjust the options on the right; the output refreshes immediately so you can compare. When you are happy, press Copy to put the result on your clipboard, or Download to save it as a .toml file ready to use.
Private, Free and Instant
The converter is free, with no sign-up, no limit beyond the 5 MB file size and no watermark. It runs in your browser, so settings files with passwords, server addresses or customer data are never uploaded or stored. Paste the content, drop a file on the input box or press Open File, then copy the result or download it with the right file extension. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android.
Frequently Asked Questions
Questions about JSON to TOML