Compress SQL files online free. Remove comments, extra whitespace, and optimize queries. Reduce MySQL/PostgreSQL dump size instantly.
Losslessly shrink PNG files.
Compression Level
⬆️
Drop a png compressor file here or click to browse
.png
Compress SQL files online free. Remove comments and whitespace from MySQL/PostgreSQL dumps. Reduce size by 60%.
SQL dumps and scripts often contain excessive comments, whitespace, and formatting that bloat file size. Our SQL Compressor strips all unnecessary characters while keeping every query perfectly executable. Ideal for database backups, version control, and faster data transfers.
We parse your SQL file and remove:
-- comment)/* comment */)All string literals, quoted identifiers, and important syntax remain untouched. The result is a compact, production-ready SQL file.
| Original SQL | Compressed SQL | Reduction |
|---|---|---|
-- Get all users SELECT id, name FROM users WHERE active = 1; |
SELECT id,name FROM users WHERE active=1; |
~45% |
Original (MySQL dump with comments): 25 MB
After SQL compression: 12 MB (52% saving)
After + gzip: 3.5 MB (86% total saving)
Database administrators, developers, DevOps engineers, and anyone managing SQL dumps for backups, migration, or version control.
/*!40000 ... */)See the JSON FAQ above for detailed answers. In short – it's safe, fast, and completely free.
Everything you need to know about this tool