INI to TOML Converter Online — Free & Private

Convert sectioned INI configs to TOML tables locally. It suits Cargo.toml or pyproject.toml workflows.

Loading…
INI → TOML for Cargo-style configuration
Writes INI sections as TOML tables, with root keys first and numbers and booleans typed.

Developer notes

A [database] section becomes a [database] table. Keys outside any section stay at the TOML root. Sort TOML keys orders keys alphabetically at every level, which keeps diffs stable. Comments in the INI file are skipped, so they do not appear in the TOML. The result has tables, so it is not valid input for INI → Properties.

Conversion options

Sort TOML keys
Orders keys alphabetically at every level, so the output stays stable from one run to the next.

Use cases

Move a legacy INI file toward a Cargo.toml or pyproject.toml workflow. Preview the TOML shape of a PHP or Windows INI export. Standardize on TOML in a repository that still receives INI files.

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

Root keys sorted alphabetically

Input

zebra = last alpha = first mango = mid beta = second gamma = third delta = fourth epsilon = fifth zeta = sixth

Output

alpha = "first" beta = "second" delta = "fourth" epsilon = "fifth" gamma = "third" mango = "mid" zebra = "last" zeta = "sixth"

A database section

Input

[database] host = db.internal port = 5432 ssl = true

Output

[database] host = "db.internal" port = 5432 ssl = true

Related tools

Need .properties from a flat INI file? Use INI → Properties. For YAML, use INI → YAML.

INI → TOML FAQ

Sections and keys

Do INI sections become TOML tables?

Yes. Each [section] becomes a table with its keys underneath.

What does Sort TOML keys change?

It orders the keys alphabetically at every level. Without it, keys keep the order of the INI file.

Can I paste this output into INI → Properties?

No. TOML with [database] tables is not flat INI, and INI → Properties accepts only files without sections.

Is my data sent to a server?

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

Convert INI configs to JSON, YAML, Properties (flat INI only) and TOML.