Reading a legacy config into a script
Convert once and work with the JSON. Remember to cast ports and flags yourself, since everything arrives as text.
Converts INI text into JSON in this tab. Configuration files routinely hold hostnames, keys and credentials, so nothing here is sent anywhere.
Find related browser-local tools for nearby tasks without starting another search.
Browse all developer and data toolsINI is the oldest configuration format still in daily use, and its longevity comes from having almost no rules. A key, an equals sign, a value; square brackets to start a section. That simplicity is also why converting one is less mechanical than it looks, because the format was never standardised and every generation of software added its own conventions. Some writers use a semicolon for comments and others a hash. Some use a colon instead of an equals sign. Quotes may be significant or may be part of the value. This converter handles the conventions that appear in practice and makes one firm decision on your behalf: every value comes out as a string, because INI carries no type information whatsoever and inventing types is how a version number becomes a decimal.
Convert once and work with the JSON. Remember to cast ports and flags yourself, since everything arrives as text.
Convert both, then use the JSON formatter to sort and compare them. Differences are far easier to spot in normalised JSON than in two INI files with different ordering.
Because INI declares no types. Turning 8080 into a number would be a guess, and the same guess would strip the leading zero from an account code.
No. JSON cannot express them. Keep the original file, since comments are often the only documentation a config has.
INI does not nest. A section called [a.b] becomes one key with a dot in its name rather than two levels of object.
Both. Semicolons and hashes are each used by different tools, so both are recognised.
Turn JSON into an INI configuration file in your browser, with objects becoming sections.
Turn a .env file into JSON in your browser. Handles export prefixes, quotes and inline comments.
Convert YAML to JSON or JSON to YAML in your browser. Handles multi-document files, follows YAML 1.2, and uploads nothing.