Skip to content
Aback Tools Logo

INI Compressor

Compress INI and CFG config files online for free. Our INI compressor strips ; and # comments, blank lines, and trailing whitespace to produce compact, parseable config files — supports php.ini, my.cnf, .gitconfig, and all INI dialects. All processing happens locally in your browser, no signup required.

Compress INI / Config File

Paste your INI, CFG, or config file content into the input panel and click "Compress INI" to remove comments, blank lines, and trailing whitespace — producing a compact, parseable config file. All processing happens locally in your browser.

Compression: ; comment removal · # comment removal · blank line removal · trailing whitespace stripping. Section headers, key names, and values are preserved exactly.

Why Use Our INI Compressor?

Instant INI File Compression

Our INI compressor processes your config files in milliseconds, entirely in your browser. Compress INI files online and get minified output with exact byte savings instantly — no server round-trip needed.

Secure INI Compressor Online

Your INI config files never leave your device when you use our INI compressor online. All compression happens locally in your browser — 100% private with zero server uploads.

Supports # and ; Comments

Our INI compressor handles both # and ; comment styles used across different INI dialects — PHP php.ini, Python configparser, Windows .ini, MySQL my.cnf, and Git .gitconfig.

100% Free INI Compressor Forever

Compress INI files online completely free — no signup, no premium tier, no ads. Our INI compressor online is free to use for everyone, with no file size limits.

Common Use Cases for INI Compressor

PHP php.ini Optimization

PHP's php.ini file is heavily commented by default. Use our INI compressor to strip all comments and blank lines from php.ini before deploying to production servers to reduce file size.

MySQL my.cnf Compression

MySQL and MariaDB configuration files (my.cnf, my.ini) contain extensive documentation comments. Compress INI files online with our INI compressor to produce clean, comment-free database configs.

Git Config Compression

Git configuration files (.gitconfig, .git/config) accumulate comments over time. Use our INI compressor to strip comments and blank lines from Git config files for cleaner version control.

Windows Application Config

Windows applications use .ini files for configuration. Our INI compressor online removes developer comments and blank lines from Windows .ini files before packaging for distribution.

Python configparser Files

Python applications using configparser often have heavily commented config files. Use our INI compressor to produce clean, minimal config files for production deployment.

Embedded Device Configuration

Embedded systems and IoT devices with limited storage benefit from compact config files. Compress INI files online with our INI compressor to reduce config file size before flashing to devices.

Understanding INI File Compression

What is INI File Compression?

INI file compression is the process of reducing INI/CFG configuration file size by removing all characters that are not required for parsing — comments, blank lines, and trailing whitespace. The compressed INI file is semantically identical to the original and parses with exactly the same key-value pairs and sections. Our INI compressor online handles both comment styles used across different INI dialects: semicolon comments (; comment) used in PHP, Windows, and Python, and hash comments (# comment) used in MySQL, Git, and Linux config files.

How Our INI Compressor Works

  1. Paste or Upload Your INI File: Enter your INI, CFG, or config file content in the input panel — paste directly or upload a .ini, .cfg, or .conf file. Our INI compressor online accepts any INI-format file regardless of extension.
  2. Instant Browser-Based Compression:Click "Compress INI" and our INI compressor removes ; and # comments, blank lines, and trailing whitespace — entirely in your browser. String values and section headers are preserved. Your config file never leaves your device.
  3. Copy or Download the Output: View the compressed INI in the output panel. Copy it directly or download as a .min.ini file. The stats panel shows original size, compressed size, and the percentage reduction.

What Gets Compressed

  • Semicolon comments (; comment): All lines starting with ; (after optional whitespace) are removed. Inline semicolons within values are preserved.
  • Hash comments (# comment): All lines starting with # (after optional whitespace) are removed. Hash characters within quoted values are preserved.
  • Blank lines: All empty lines and lines containing only whitespace are removed, significantly reducing file size in heavily documented config files.
  • Trailing whitespace: Trailing spaces and tabs at the end of each line are stripped, reducing file size without affecting config parsing.

INI Dialects Supported

Our INI compressor supports all major INI dialects: PHP php.ini (uses ; comments), MySQL my.cnf (uses # and ;), Git .gitconfig (uses # and ;), Python configparser (uses # and ;), and Windows .ini (uses ;). Section headers ([section]) and key-value pairs are always preserved.

Frequently Asked Questions About INI Compressor

An INI compressor is a tool that reduces INI/CFG configuration file size by removing comments, blank lines, and trailing whitespace while keeping the file fully parseable. Our INI compressor online does this entirely in your browser — no server upload required.

No. INI compression only removes characters that are not required for parsing — comments, blank lines, and trailing whitespace. All section headers, key names, and values are preserved exactly. The compressed INI file parses to exactly the same configuration as the original.

Absolutely. Our INI compressor online processes everything locally in your browser. Your config files never leave your device — there is no server upload, no cloud storage, and no data retention of any kind.

Yes, 100% free. Our INI compressor online has no signup requirement, no premium tier, no file size limits, and no ads. You can compress INI files online as many times as you need, completely free.

Yes. Our INI compressor removes both semicolon (;) comments used in PHP php.ini and Windows .ini files, and hash (#) comments used in MySQL my.cnf, Git .gitconfig, and Linux config files. Both comment styles are detected and removed.

Our INI compressor only removes lines that start with a comment character (# or ;) after optional whitespace. Inline comments on key-value lines (e.g., key = value ; comment) are preserved, as removing them could change the value if the parser treats the semicolon as part of the value.

Yes. Our INI compressor works with any INI-format file regardless of extension — .ini, .cfg, .conf, .gitconfig, my.cnf, php.ini, and any other file using INI-style key-value syntax with section headers.

Yes. Section headers ([section]) are always preserved exactly as-is. Our INI compressor only removes comment lines and blank lines — it never modifies section headers, key names, or values.

Compression ratios depend on how many comments and blank lines the original file contains. PHP php.ini and MySQL my.cnf files are heavily commented by default and typically achieve 60–80% size reduction. Already-compact config files with minimal comments will see less reduction.