TOML to INI Converter Online — Free & Private

Generate INI from object-shaped TOML. One nesting level maps to [section] blocks, while deeper nesting raises no error but is not flattened properly.

Loading…
TOML → INI for object-shaped TOML
Writes TOML tables as INI sections. One level of nesting maps cleanly, and deeper nesting does not.

Developer notes

Top-level tables with one level of nesting become [section] blocks with key=value lines. A table nested inside a section is written as [object Object] without an error, so avoid those inputs. Arrays of plain values are written joined by commas. Root keys come before the first table, because INI readers attach a key to the section above it. The converter has no output options.

Use cases

Hand Cargo or pyproject values to a consumer that only reads INI. Draft an INI file from a flat TOML toolchain. Check that TOML is object-shaped before you edit the INI by hand.

About these options

For CSV output, choose the delimiter, how fields are quoted, the line endings and whether to write a header row. Auto uses a comma in English and a semicolon in French, German and Spanish, as Excel expects. For CSV input, the delimiter is detected on the first line (comma, semicolon, tab or pipe). You choose whether that line holds the column names. JSON output can use 2 or 4 spaces or a single line, with an optional recursive key sort. XML output can be pretty-printed with a chosen indent width. YAML output takes an indent width and a quoting mode for strings. XML comments are dropped, because the conversion goes through a JSON tree.

Examples

One-level database table

Input

[database] host = "db.internal" port = 5432 ssl = true user = "app" password = "secret" pool = 10 timeout = 30

Output

[database] host=db.internal port=5432 ssl=true user=app password=secret pool=10 timeout=30

A root key and a section

Input

environment = "production" [features] checkout-v2 = true dark-mode = false

Output

environment=production [features] checkout-v2=true dark-mode=false

Related tools

Need flat .properties? Use TOML → Properties, which accepts flat TOML only. For nested data, TOML → YAML is safer.

TOML → INI FAQ

One level of nesting

What happens with deep nesting?

A table nested inside a section is written as [object Object] without an error. Check the output and reshape the TOML before you convert.

Are there formatting options?

No. The output follows fixed key=value and [section] rules.

Can TOML arrays map to INI?

Only arrays of plain values, written joined by commas. Arrays of tables do not map to INI in a useful way.

Is my data sent to a server?

No. The conversion runs in your browser, and FastMinify never receives what you paste.

Convert TOML to JSON, YAML, XML, CSV, Properties and INI.