INI to JSON Converter

Parse .ini, .cfg and php.ini-style config files into JSON.

100% Client-Side Processing — your data never leaves this browser. Works offline. How it works

0 lines • 0 bytes Ready
Tip: drop a file anywhere on the editor
Input
Paste, type or drop a file
1
Result
Updates as you type
// Output will appear here…
About this tool

How the INI to JSON works

Convert INI files to JSON: sections become objects, dotted sections nest, key[] builds arrays, and numbers and booleans are detected. Free and private.

How to use the INI to JSON

  1. Paste the INI file or upload it.
  2. Choose type detection and section nesting.
  3. Copy or download the JSON.

INI to JSON example

Input
name = Shop

[database]
host = localhost
port = 5432
ssl = true
Result
{
  "name": "Shop",
  "database": {
    "host": "localhost",
    "port": 5432,
    "ssl": true
  }
}

When to use it

  • Reading legacy configuration in modern tools.
  • Comparing php.ini or app settings between servers.
  • Migrating INI configs to JSON or YAML.

Tip: Keys before the first [section] are placed at the top level of the JSON.

Sections

[section] headers become objects; [server.production] can nest into server → production.

Arrays

Repeated key[] = value lines become a JSON array.

Comments

Lines starting with ; or # and inline comments after values are ignored.

Typed values

Numbers and true/false become JSON numbers and booleans, or keep everything as strings.

FAQ

Common questions

Which INI dialects work?

Common ones: Windows-style INI, php.ini, Git config style, Python configparser files and many app .cfg files.

Are quoted values supported?

Yes. Surrounding quotes are removed, and # or ; inside quotes are kept.

Can I keep dotted sections flat?

Yes, untick "Nest dotted sections" to keep names such as server.production as one key.

Is it private?

Yes, parsing happens in your browser.