TOML to INI Converter
Converts simple TOML (with [section] and key = value) to INI — strips quotes from strings.
—
From TOML to INI
Converting TOML to INI comes up when an older program has to read configuration that now lives in TOML: a tool that only understands INI, a legacy configuration library, a script parsing by hand. Since INI is the poorer of the two formats, the translation is one of simplification — and it matters to know what gets lost.
Paste the TOML and receive INI. Bracketed sections are kept, hash comments become semicolon comments, the kind most INI readers accept, and quotes around strings are removed, because INI works with bare values. A line that is neither section, comment nor simple pair comes out commented, marking what had no translation.
The main loss is types. In TOML, quotes separate the string "42" from the number 42, and the format further distinguishes dates, times and arrays. In INI everything becomes text, and the reading program decides how to interpret it. Arrays of tables, nested tables and triple-quoted values do not survive either — all appear commented in the result.
Frequently asked questions
Which comment character should I use in INI?
My value had quotes on purpose. Do they survive?
What happens to a multi-line value?
Related Tools
INI to TOML Converter
Converts an INI file (with [section] headers and key=value) to TOML — close formats with minor adjustments.
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.
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.
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.