INI to TOML Converter
Converts an INI file (with [section] headers and key=value) to TOML — close formats with minor adjustments.
—
From INI to TOML
INI and TOML look alike at first glance: both use bracketed sections and key-value pairs. The difference lies in what the format guarantees. INI never had a specification — every implementation decides whether a semicolon starts a comment, whether values may be quoted, whether sections can nest. TOML pinned all of that down, with explicit types and defined escaping rules.
Paste the INI and receive TOML. Sections are kept, comments starting with a semicolon or hash become hash comments, the only kind TOML accepts, and values gain types: numbers stay numbers, booleans are normalised to lowercase, and everything else becomes quoted text with internal quotes escaped. A line that is neither comment, section nor key-value pair comes out commented, so you can see what needed attention.
What this surface conversion does not do is nesting. In TOML, a section whose name contains a dot represents real hierarchy — while in INI the same name is just a name with a dot in it. The literal translation preserves the text, but the meaning becomes something else at the destination; worth reviewing whenever the source INI uses dots in section names.
Frequently asked questions
Does TOML accept semicolons as comments?
Why do values gain quotes?
Does it work for Git or PHP config files?
Related Tools
TOML to INI Converter
Converts simple TOML (with [section] and key = value) to INI — strips quotes from strings.
YAML to TOML Converter
Convert config files from YAML to TOML right in your browser, preserving strings, numbers and booleans. Handy for migrating configs between formats.
TOML to YAML Converter
Convert config files from TOML to YAML right in your browser, preserving strings, numbers and booleans. Handy for migrating configs between formats.
JSON to TOML
Convert JSON to TOML, the readable config format used by Cargo (Rust), pyproject.toml, Hugo, etc. Supports strings, numbers, booleans, arrays and nested tables. Everything in your browser.
CSV to YAML List Converter
Convert a CSV with a header into a YAML list of objects, preserving numbers and booleans. Useful for building config files and fixtures from spreadsheets.
TOML to JSON
Convert TOML to JSON. Supports strings, integers, floats, booleans, dates, arrays and nested tables. Useful to inspect configs or pipe them into scripts. Everything in your browser.