Generating a config from a template
Build the structure in JSON where it is easy to manipulate, then emit INI for the tool that needs it.
Turn JSON into an INI configuration file in your browser, with objects becoming sections.
Maintained by Roshan.
Converts JSON into INI 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 toolsWriting INI from JSON is mostly a question of what to do with structure that INI cannot express. The format is flat by design: a set of key and value pairs, optionally grouped under section headers, and that is the entire vocabulary. JSON is a tree. So the conversion maps the one level of grouping INI has onto the top level of your object, turns nested objects into sections, and writes everything else as a plain key. The detail that catches people out is ordering. A key written after a section header belongs to that section, so any top-level setting emitted below one would silently be absorbed into it when the file is read back. This converter emits unsectioned keys first for exactly that reason.
Build the structure in JSON where it is easy to manipulate, then emit INI for the tool that needs it.
Convert the source to JSON, adjust the keys, then write INI. The intermediate step is much easier to script against.
Any top-level property whose value is an object becomes a section. Everything else becomes a plain key at the root.
They are written as JSON text inside the value, because INI has no array syntax at all.
Because a key written after a section header belongs to that section. Emitting them first is the only way they survive a round trip.
No. Unquoted is the convention, and some readers would treat added quotes as part of the value.
No. The conversion happens entirely in this tab.
Turn an INI configuration file into JSON in your browser. Sections become nested objects and values stay strings.
Turn a JSON object into .env format in your browser, with keys upper-cased and values quoted where a shell needs it.
Convert JSON into clean, readable YAML in your browser. Useful for Kubernetes manifests, CI pipelines and application config.