JSON to INI Converter
Convert a flat or one-level-nested JSON object to INI format - nested objects become sections.
Paste a JSON object below - this tool converts nested objects into INI [section] headers and other keys into key=value pairs.
More File & Data Conversion Tools
View all 20INI works best with flat or one-level-nested data - see the limitations below for how deeper nesting is handled.
What Input Works Best?
A JSON object where top-level values are either primitives (becoming root-level key=value lines) or objects (becoming [section] blocks) - this mirrors how most real-world INI files are actually structured.
How to Use It
- Paste a JSON object.
- Click Convert.
- Copy or download the resulting INI content.
Limitations
INI has no standard way to represent structures nested more than one level deep, or arrays - values at those deeper levels are serialized as a JSON string within the INI value rather than silently discarded, since INI itself simply can't express that structure natively.
Example
{
"app_name": "Invoice Kit",
"database": { "host": "db.internal", "port": 5432 },
"cache": { "driver": "redis", "ttl": 300 }
}
becomes:
app_name=Invoice Kit
[database]
host=db.internal
port=5432
[cache]
driver=redis
ttl=300
When to Use It
- A legacy application or plugin only reads INI, but your settings live in JSON.
- Generating
php.ini-style orconfigparserfiles from a template or script output. - Making a config easier for non-developers to edit - INI's
key=valuelines are very forgiving to read.
Design Your JSON for INI
- Keep it to two levels: top-level keys for general settings and one level of objects for sections.
- Use simple key names without spaces or
=signs. - Avoid arrays where you can; INI has no list syntax, so they are written as JSON strings that the reading program must parse itself.
Read INI back with INI to JSON. For deeper structures, TOML is a better fit - try JSON to TOML.
Frequently Asked Questions
Explore More Tools
Keep going with related categories and our most used tools.