Zero Signup ToolsFree browser tools

Converter Tools

INI to JSON Converter

Convert INI configuration files to JSON in your browser. Sections, dotted nesting, quoted values, duplicate keys, comments. Reverse direction too.

616 chars

Conversions run entirely in your browser. Pasted configs, including any secrets they contain, never leave your device.

Options

Duplicate keys

INI files often repeat the same key inside one section. Pick how repeats should appear in the JSON output.

Scalar values

Auto mode infers numbers, booleans, and null. String mode keeps every value as text.

Section nesting

Dotted nesting turns [a.b.c] into a nested object three levels deep. Turn it off to treat the header as a single section name.

Sectionless keys

Keys above the first section can sit at the JSON root or under a named key. The named option keeps the output object shape stable when sections are also present.

JSON output indent

How to use

  1. Pick INI to JSON or JSON to INI from the segmented control at the top, or click Swap direction to feed the current output back as the next input.
  2. Paste your INI configuration (or JSON object) into the input area. The Load sample button drops in a representative file you can edit. Comments using ; or # are ignored.
  3. For INI to JSON, choose how duplicate keys appear in the output (merge into an array, keep last, or keep first), whether scalar values are auto-typed into numbers and booleans, and whether dotted section headers like [a.b.c] expand into nested objects.
  4. For JSON to INI, decide whether arrays should repeat the key once per item (Git style) or be stored as a JSON string, and pick a preferred quote style for values that need protection.
  5. Read the result on the right, watch the section, key, and byte counts update, then use Copy output to grab the converted file. Warnings flag duplicate keys, unterminated quotes, and other parse issues with the original line number.

About this tool

INI to JSON Converter parses INI configuration files and emits a JSON object you can drop into a modern toolchain, validate against a schema, or paste into a settings store that does not speak INI. Paste any INI text (PHP parse_ini_file output, Python configparser output, a .gitconfig file, a Windows .ini, a MySQL my.cnf, an RClone or Wine config, a Docker buildx config, or any custom application config) and the tool produces a structured JSON document where every section becomes an object, every key/value pair becomes a property, and dotted section headers like [database.pool] nest one level per dot. Git-style subsections such as [remote "origin"] are recognized and turned into a two-level path so .gitconfig files round-trip cleanly. Comments using ; or # are skipped, blank lines are ignored, and key/value separators can be = or : (Python configparser style). Quoted values follow real INI conventions: double quotes support \n, \r, \t, \\, \", and \' escape sequences plus line continuation with a trailing backslash for multi-line values, while single quotes are literal so a password like 'p@ss\word' survives unchanged. Duplicate keys are first-class: merge them into a JSON array (matches gitconfig and PHP INI_SCANNER_TYPED behavior), keep the last value, or keep the first value. Auto-typing converts true/false/yes/no/on/off into booleans, null/nil/none/~ into null, integer and float strings into numbers, and leaves anything else as a string; turn auto-typing off when you want a verbatim string-only output. The reverse direction takes a JSON object whose top-level keys are sections (with optional nested objects for subsections) and emits a clean INI file with dotted or Git-style headers, repeated keys for arrays, and minimal quoting so values that need protection get it while plain identifiers stay unquoted. Useful for migrating legacy app configs to a modern JSON-based stack, generating settings files for tools that prefer INI, diffing two configs by viewing both as JSON, sanity-checking a .gitconfig before committing, or quickly turning a sample config in your documentation into a JSON snippet for an SDK. Everything runs locally in your browser, so the configurations you paste here, including any embedded secrets or connection strings, never leave your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsConverter Tools