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.
Conversions run entirely in your browser. Pasted configs, including any secrets they contain, never leave your device.
Options
JSON output indent
How to use
- 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.
- 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.
- 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.
- 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.
- 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
YAML to JSON Converter
Two-way YAML and JSON converter with anchors, flow, and block scalars.
Open tool
ConverterTOML to JSON Converter
Two-way TOML and JSON converter for Cargo, pyproject, Hugo, and Netlify configs.
Open tool
ConverterEnv to JSON Converter
Two-way dotenv and JSON converter with multi-line value, secret masking, and nested key support.
Open tool
ConverterCSV to JSON Converter
Two-way CSV and JSON converter with delimiter and header controls.
Open tool
ConverterJSON to YAML Converter
Convert JSON into YAML with block or flow style and smart quoting.
Open tool
ConverterJSON to TOML Converter
Browser JSON to TOML serializer with section tables, arrays of tables, and date-times.
Open tool