{ }jsonkit
Format
Validate
Convert
Query
Generate

INI to JSON, YAML and TOML converter

Move sectioned INI data to structured formats and back.
Structured format
73 B · paste or drop a file
1 2 3 4 5 6 7
✓ complete73 B → 126 B0.0 ms

About INI ⇄ JSON / YAML / TOML

The INI converter turns section-and-key config files into JSON, YAML or TOML. It also writes structured data back to plain INI.

How it works

INI sections become objects

Keys before the first section become root properties. Section names become nested objects, and dotted names such as server.tls nest deeper. Duplicate keys and a name used as both a key and a section are rejected.

Optional type inference

INI values stay strings unless you turn inference on. It recognizes booleans, null, JSON-style numbers, arrays and objects. IDs with leading zeros stay strings.

Structured data back to INI

JSON, YAML or TOML objects are flattened into root keys and nested section headers. Arrays become quoted JSON text, because INI has no standard array syntax.

Frequently asked questions

Is there one official INI specification?

No. INI dialects vary. This tool supports [section], key=value, key:value, # comments and ; comments.

Are INI comments preserved?

No. Comments have no place in JSON, YAML or TOML data, so conversion drops them.

Can INI null convert to TOML?

No. TOML has no null value. If inference produces null, TOML output reports the path that can't be converted.

Sources & last verified

We checked this tool's behavior and the claims on this page against the specifications below on . The tool runs in your browser, so the output you see is exactly what the engine produced.

Found a wrong result or an outdated claim? Report an error and we will check it again.