INI to JSON Converter

Convert INI config files into clean JSON with a live preview and one-click copy — runs 100% in your browser with no upload.

🔒 Converted in your browser — nothing is uploaded.

Turn INI config into JSON in your browser

Paste any INI-style configuration and instantly get a JSON object. Each [section] header becomes a nested object, and every key=value line inside it becomes a property — a string by default, or a real number, boolean or null if you turn on type parsing (so port=5432 becomes 5432 and enabled=true becomes true). Keys written before the first section stay at the top level, so simple flat configs convert just as cleanly as grouped ones. The output updates live as you type, so you can copy well-formatted, two-space-indented JSON with a single click.

Comments and whitespace handled for you

Lines starting with ; or # are treated as comments and skipped, and blank lines are ignored. Section names, keys, and values are all trimmed, so stray spaces around the equals sign never end up in your data. Only the first = on a line splits the pair, which means values that themselves contain an equals sign — tokens, connection strings, base64 — are preserved exactly.

Frequently asked questions

Is my INI file uploaded anywhere?

No. The entire conversion runs locally in your browser with JavaScript. Your config never leaves your device and nothing is sent to a server, so even secrets and connection strings stay private.

How are INI sections converted to JSON?

Each [section] header becomes a nested object keyed by the section name, and the key=value lines below it become properties of that object — strings by default, or real numbers, booleans and null when type parsing is enabled. For example [db] with host=localhost becomes {"db":{"host":"localhost"}}.

What happens to comments and keys before the first section?

Lines starting with ; or # are ignored as comments, along with blank lines. Any key=value pairs that appear before the first [section] header are placed at the top level of the JSON object.