INI to JSON Converter Online — Free & Private

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

Loading…
INI → JSON for configuration files
Reads INI sections and keys and writes them as a JSON object, with true, false and plain numbers typed.

Developer notes

Each [section] becomes an object. Keys that appear before the first section stay at the root. Comments that start with # or ; are skipped. A section that appears twice is merged, and the last value of a repeated key wins. Use the indent option for compact or indented output, and the sort option for stable diffs.

Use cases

Feed a php.ini or a Windows settings file to a tool that only reads JSON. Compare two INI files as JSON trees. Check how types are read before you convert to YAML or TOML.

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 with values of several types

Input

[database] host = db.internal port = 5432 name = checkout ssl = true [cache] provider = redis ttl = 300 [features] checkout-v2 = true dark-mode = false

Output

{ "database": { "host": "db.internal", "port": 5432, "name": "checkout", "ssl": true }, "cache": { "provider": "redis", "ttl": 300 }, "features": { "checkout-v2": true, "dark-mode": false } }

Root keys, comments and quoted text

Input

; build settings name = "FastMinify" version = 2.1 debug = false retries = 3 [paths] cache = /var/cache/app

Output

{ "name": "FastMinify", "version": 2.1, "debug": false, "retries": 3, "paths": { "cache": "/var/cache/app" } }

Related tools

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

INI → JSON FAQ

How values are read

Which values become numbers and booleans?

true and false become booleans. Whole numbers and decimals such as 5432 or 2.5 become numbers. Anything else, including 2.1.0, stays a string.

Why did 2.10 become 2.1?

Decimals are read as numbers, and JSON writes the number 2.10 as 2.1. Put the value in quotes in the INI file to keep the string “2.10”.

What happens to comments and lines without =?

Lines that start with # or ; are skipped, and so are lines without an equals sign.

Is my data sent to a server?

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

Convert INI configs to JSON, YAML, Properties (flat INI only) and TOML.