JSON to INI Converter Online — Free & Private

Paste JSON and get INI output. Everything runs in your browser and nothing is uploaded.

Loading…
JSON → INI for legacy configuration
Writes a JSON object as INI: nested objects become [section] blocks and other keys become key=value lines.

Developer notes

The root must be an object. An array or a plain value at the root stops the conversion with an error. An object at the first level becomes a [section]. Objects nested deeper are written as [object Object], so flatten them first. Put root keys before the first object. After a [section] line, INI readers treat a key as part of that section. Arrays are written as their values joined by commas, and strings that contain a space are wrapped in double quotes. The converter has no output options.

Use cases

Scaffold an INI file for a PHP or Windows application from a JSON draft. Export settings for a team that still expects .ini files. Check which objects become sections 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

Sections from nested objects

Input

{ "database": { "host": "db.internal", "port": 5432, "name": "checkout", "ssl": true }, "cache": { "provider": "redis", "ttl": 300 } }

Output

[database] host=db.internal port=5432 name=checkout ssl=true [cache] provider=redis ttl=300

Root keys, a quoted string and a section

Input

{ "environment": "production", "name": "Fast Minify", "features": { "checkout-v2": true, "dark-mode": false } }

Output

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

Related tools

Other converters that start from JSON are linked on this page.

JSON → INI FAQ

Objects only

Why does a JSON array fail?

INI has no syntax for a list at the root. An array or a plain value at the root stops with an error, and no sections are invented.

How are nested objects written?

An object at the first level becomes a [section]. A deeper object is written as [object Object], so flatten it before you convert.

Are there formatting options?

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

Is my data sent to a server?

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

Convert JSON to YAML, XML, CSV, TOML, TSV, SQL, HTML, Properties and INI. Every converter runs in your browser.