INI to JSON Converter

Paste any INI or CFG configuration file and instantly get a clean, valid JSON equivalent.

Use the INI to JSON Converter

Copied!

Summary

This tool converts INI and CFG configuration files into JSON format entirely in your browser. It handles sections, key-value pairs, comments, quoted strings, and numeric values. No data is ever sent to a server — conversion runs locally via JavaScript.

How it works

  1. Paste or type your INI content into the input panel.
  2. The converter parses sections (bracketed headers) and key-value pairs.
  3. Comments starting with ; or # are stripped from the output.
  4. Numeric values and booleans are cast to their native JSON types.
  5. The resulting JSON appears in the output panel ready to copy.

Use cases

  • Convert legacy application config files to modern JSON format.
  • Transform PHP or Python INI settings for use in Node.js projects.
  • Migrate Windows Registry exports (.ini format) to JSON.
  • Debug and inspect configuration files in a readable tree structure.
  • Prepare config data for ingestion into JSON-only APIs or pipelines.
  • Convert game configuration files that use INI format to JSON.

Frequently Asked Questions

Last updated: 2026-05-23 · Reviewed by Nham Vu