Compress Image
Compress JPG and PNG images — free, unlimited, and entirely private. Nothing leaves your browser.
Drop files here or click to choose
🔒 Your files never leave your browserHow it works
Every extra kilobyte in an image slows down the page it's on. This tool compresses JPG and PNG images directly inside your browser tab — no server, no upload, no waiting in a queue. JPEG compression uses the mozjpeg encoder for a smaller result than a browser's built-in encoder at the same visual quality; PNG compression uses oxipng, a lossless re-packer that finds a smaller equivalent encoding without touching a single pixel.
In target-size mode, Moyang tries several JPEG quality levels in your browser — a binary search that typically converges in 5-7 attempts — until it finds the highest quality that still fits your target size, like compress image to 100kb. PNG has no equivalent quality dial (it's lossless by design), so if optimization alone can't reach the target, the image is scaled down instead.
Because everything runs locally, there's no 10-compressions-a-day limit and no file size cap — the kind of restrictions server-based compressors impose to control their hosting bill. Compress one file or fifty; once a batch is done, download every result at once as a single ZIP.
Limitations
Only JPG and PNG are supported for compression in this tool — use the WebP converters for that format. PNG's file size reduction is bounded by its lossless design; if you need much smaller PNGs, converting to WebP usually helps more than any PNG-specific compression can. Images over 100 megapixels aren't processed — decoding runs entirely in your browser's memory, and a file that large risks crashing the tab.
FAQ
- Is this image compressor really free?
- Yes — completely free, with no file size limits, no daily quota, and no account required. All compression happens in your browser, so there's no server cost to recoup.
- Can I compress an image to an exact size, like 100KB?
- Yes — switch to target-size mode, enter your target (e.g. 100 KB), and Moyang searches for the highest JPEG quality that still fits within it, trying several quality levels in your browser until it converges. PNG has no tunable quality dial, so if quality alone cannot reach the target, the image is also scaled down.
- What happens to EXIF metadata like camera info or GPS location?
- Metadata is stripped by default for privacy — the compressed file has no camera make/model, GPS coordinates, or timestamps unless you tick "Keep metadata" before converting.
- Will compressing ever make my image worse than the original?
- No — if the compressed result would end up larger than your original file, Moyang just gives you the original back instead, with a note that it's already optimal.