JSON to INI
Write JSON as an INI file: top-level scalars first, then one [section] per nested object.
What JSON to INI does
Scalars at the top of the object are written before the first header, because a reader that expects a section would otherwise attach them to the wrong one. Every nested object becomes one [section], and nothing deeper: an INI file has a single level of sections, so a three-deep object is refused by name. Arrays are refused too — INI has no list, and inventing a comma convention produces a file that the reader you are targeting will not agree with.
How to use it
JSON to INI: paste the JSON into the box above, and press Run to get the INI below.
Worked example
Input:
{
"debug": "false",
"database": {
"host": "127.0.0.1",
"port": "5432"
}
}
Output:
debug = false
[database]
host = 127.0.0.1
port = 5432
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads JSON and returns INI; reloading the page discards both.
Scalars at the top of the object are written before the first header, because a reader that expects a section would otherwise attach them to the wrong one. Every nested object becomes one `[section]`, and nothing deeper: an INI file has a single level of sections, so a three-deep object is refused by name. Arrays are refused too — INI has no list, and inventing a comma convention produces a file that the reader you are targeting will not agree with.
Write JSON as an INI file: top-level scalars first, then one [section] per nested object.
How to use it
JSON to INI: paste the JSON into the box above, and press Run to get the INI below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads JSON and returns INI; reloading the page discards both.
What to Expect
Best for
- Converting JSON to INI when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
{ "debug": "false", "database": { "host": "127.0.0.1", "port": "5432" } }
Sample output
debug = false [database] host = 127.0.0.1 port = 5432
Frequently asked questions
How do I use the json to ini?
JSON to INI: paste the JSON into the box above, and press Run to get the INI below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.