DEVELOPER & DATA

TOML & INI to JSON

Convert TOML or INI to JSON in the browser — tables, arrays of tables, dotted keys, inline tables, multi-line strings, INI sections and typed values.

The JSON with your indent, the detected format, counts of keys, tables and array-of-table entries, and parse errors with the line number.

Example: [database] ports = [8001, 8002] with [[products]] entries becomes {"database":{"ports":[8001,8002]},"products":[…]}; an INI [app.db] section nests as {"app":{"db":{…}}} with port = 8080 as a number.

v0.1.0 · last reviewed 21 September 2026
Loading the workspace…
BUILT TO BE UNDERSTOOD

Two config formats,
one JSON.

What the TOML parser covers, how INI is read when there is no standard, and where the edges are.

TOML

The parser follows TOML v1.0.0 for the constructs configuration files use: [tables] and nested tables, [[arrays of tables]], dotted keys (a.b.c = 1), basic strings with escapes and literal strings, both multi-line forms, integers with _ separators and 0x / 0o / 0b prefixes, floats including exponents and inf / nan, booleans, arrays (nested and across lines, with trailing commas) and inline tables. Dates and times are kept as strings because JSON has no date type. A duplicate key or a table defined twice is an error with its line number.

INI

INI has no specification, so the page states its conventions: [section] headers, key = value or key: value, ; and # comments (a comment after a value needs whitespace before it), quoted values that keep their spaces, and sections nesting on dots ([app.db] → app → db). With typing on, values that look like integers, decimals or booleans (true / false, yes / no, on / off) become JSON numbers and booleans; switch it off to keep every value a string. Detection looks for TOML-only syntax first ([[…]], arrays, inline tables, dates) and falls back to INI for colon-separated or ;-commented text.

Not covered

The TOML rule against defining a table after one of its sub-tables, mixed-type array restrictions of TOML 0.x, and the exact date-time grammar (dates are passed through as text). INI dialects with line continuations or %(interpolation)s are read literally. Nothing leaves the browser; the same four anonymous usage counts as the rest of the site apply.

SOURCES

  • TOML v1.0.0 specification (tables, arrays of tables, dotted keys, string forms, integers with prefixes, inline tables); INI has no standard — the conventions used are stated on the page

Last reviewed 21 September 2026. How results are checked: How we verify.