About INI to JSON Converter
INI is the format that refuses to die — Python's
configparser still uses it, Windows still ships .ini
files, half the legacy software on a typical server uses .cfg or
.conf variants, and every game's saves directory has at least one.
But INI's quirks — case-insensitive vs case-sensitive, comments with
# or ;, encoding that might be UTF-8 or
GBK or Latin-1, sectionless 'DEFAULT' keys — make hand-converting
to JSON for a modern build pipeline tedious. And going the other
way (JSON back to INI) is what you need when you have to update an
app's config from a script.
This INI to JSON converter goes both directions
and gets the small things right. INI → JSON
auto-coerces value types — true /
false become booleans, 42 becomes an
integer, 3.14 becomes a float, everything else stays a
string. The coercion toggle lets you keep all values as strings if
your downstream tooling expects them that way. Section names and
key order are preserved, both # and ;
comments are tolerated, and encodings auto-detect across
UTF-8, UTF-8 BOM,
GBK and Latin-1 so legacy Chinese
Windows configs don't garble. JSON → INI goes the
other way — top-level keys become sections, nested objects become
the key/value pairs inside them, with the file written as standard
ConfigParser-compatible INI. The result is a clean round-trip you
can drop into a CI pipeline or a config-migration script.
Use it to convert a legacy game.cfg into JSON for a
modern web admin panel, transform Python setup.cfg
blocks into a format your linter understands, generate per-environment
INI files from a JSON template in a deployment pipeline, audit a
large .conf file by viewing it as structured JSON, or convert
Windows game saves so they can be edited in a JSON-aware tool.
Files up to 10 MB are processed in a stateless serverless function
and discarded immediately after the response.