Toml To Json Conv
Free online toml to json conv tool, no installation required
About TOML to JSON Converter
A second TOML-to-JSON converter with a simpler line-based parser and a built-in file download. It supports [section] and dotted [a.b] headers, array-of-tables [[name]] entries, dotted keys, nested objects, quoted and literal strings, integers, floats, booleans, and arrays. Output is always pretty-printed with 2-space indentation.
How to Use
1. Paste TOML into the input box (a sample placeholder shows server/database structure) 2. Click Convert (arrow button) to parse and stringify 3. Click Copy to copy the JSON, or Download to save it as converted.json 4. Click Clear (trash button) to reset both fields
Value Parsing Rules
Each value is parsed by parseTomlValue: "true"/"false" become booleans, integer regex matches become parseInt, float regex matches become parseFloat. Double-quoted strings unescape \", \\n, \\t and \\\\; single-quoted strings are taken literally. Arrays are split on top-level commas (respecting nested brackets and string quotes) and each item is recursively parsed. Anything else is kept as the trimmed string.
▶How are [[array.of.tables]] handled?
▶What happens when parsing fails?
▶Does it support inline tables?
▶How do I download the result?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee