Free Online Utility • JSON Studio • RFC 8259 Engine

Convert INI to JSON

Parse `.ini` configuration files (`[sections]`, `;` and `#` comments, `key = value` pairs) cleanly into typed RFC 8259 JSON.

Reference & JSON Spec RFC 8259
Supports [section] headers, ; and # comments, quoted strings, and boolean/numeric inference
; and #Comments stripped
[section]Nested JSON object
on/off/true/falseInferred booleans
INI TO JSON PARSER
Parsed JSON Output

        
100% client-side RFC 8259 JSON Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Convert INI to JSON Works

Convert INI to JSON parses standard `.ini` files — including `[section]` blocks, `;` and `#` comments, inline comments, and optional boolean/numeric casting (`on`/`off`/`true`/`false`) — into clean RFC 8259 JSON.

JSON (JavaScript Object Notation, RFC 8259) is the universal structured data interchange format across REST APIs, microservices, configuration pipelines, and document databases. Every parsing, transformation, and serialization step in this utility runs completely client-side inside your browser with zero server uploads, guaranteeing instant turnaround and strict privacy even for sensitive payloads.

Section-Scoped INI Parsing

[section] -> switches active target object
key = val -> strips inline ;/# comments and casts types

Ideal for importing `php.ini`, `.gitconfig`, or Windows desktop configuration files into modern JSON-based dashboards.

Worked Reference Examples

InputOutputTechnical Note
[app]\nport = 8080\ndebug = false{"app":{"port":8080,"debug":false}}Typed JSON
display_errors = off"display_errors": falsePHP boolean cast
String-Only Mode"port": "8080"Preserves raw strings

Practical Developer & Data Engineering Workflows

Migrating PHP/Windows Configs to JSON

Convert `.ini` settings into JSON ready for Node.js or Docker apps.

Diffing Config Files

Convert two `.ini` files to JSON and compare them with Compare Two JSON Files.

Compatibility, Edge Cases & Best Practices

Quoted values like `"on"` or `"007"` always remain strings even with Type Inference enabled.

Copy verified outputs straight to your clipboard or download clean files ready for REST clients, CI/CD configs, database seeds, and unit test suites.

Frequently Asked Questions

Are both ; and # comments supported?
Yes — both semicolon (`;`) and hash (`#`) full-line and inline comments are stripped cleanly.
Does this handle PHP INI values like on and off?
Yes — `on`/`yes`/`true` infer as `true` and `off`/`no`/`false` infer as `false` when Type Inference is enabled.
What if my INI has top-level keys before the first [section]?
Top-level keys are placed cleanly at the root of the JSON object.