INI File Formatter
Format and beautify INI configuration files. Normalises section headers, aligns key-value pairs, preserves comments, and removes duplicate blank lines. Works with .ini, .cfg, and .conf files.
What is the INI File Format?
INI (initialization) files are a simple configuration file format originating from early Windows software. They consist of sections (in square brackets), key-value pairs separated by = or :, and comments starting with # or ;. Despite being informal (no official specification), the format is widely used in Python's configparser, PHP's php.ini, Git's .gitconfig, and many Linux tools.
Frequently Asked Questions
configparser, PHP's parse_ini_file(), and the ini npm package all have slightly different behaviours.server.host = localhost). If you need complex structures, consider TOML or YAML instead.