HeyDreaming

Free · target ≤ 2 MB in your browser · free account to download

Compress Image to 2 MB

Loading the tool…

Drop up to 20 JPG, PNG or WebP files and shrink each one to 2 MB (2,048 KB / 2,097,152 bytes) or less for CMS uploads, print portals and camera exports. Everything runs in your browser, so your images are not uploaded.

How do I compress a large photo to 2 MB or less?

Drop up to 20 JPG, PNG or WebP files into the box above and they compress right away. Your browser first tries to fit each image under 2 MB (2,097,152 bytes) at its full pixel dimensions—binary-searching quality between 30% and 95% for JPG and WebP, or stepping through 256, 128 and 64 palette colors for PNG. Only when a file still exceeds 2 MB does it reduce width and height, for up to 4 rounds.

How it works

01

Add up to 20 large images

Drag or choose JPG, PNG or WebP files up to 50 MB each. Files already at or below 2 MB (2,048 KB) are kept untouched.

02

Compress toward the 2 MB cap

Compression starts on its own once the files are in. The target is locked to ≤ 2 MB; the solver adjusts quality or palette colors at original dimensions before scaling.

03

Check the saved bytes

Each result row lists the original byte size, the new byte size, the percentage saved, and the new pixel width and height if scaling occurred.

04

Download one file or a ZIP

To save, sign in to a free HeyDreaming account with Google or email (no credit card). Download one file with a -compressed suffix, or all processed files as one ZIP archive.

Where a 2 MB upload ceiling comes from

A 2 MB (2,048 KB, or 2,097,152-byte) limit matches PHP's default upload limit on servers that leave it unchanged, and also shows up on some support-ticket, document portal and storefront upload forms. High-resolution camera JPGs and large PNG screenshots often weigh several times that.

Because 2 MB is a roomy budget for web and print-preview delivery, many JPG and WebP camera photos fit under 2,097,152 bytes at their original width and height once quality is lowered, while very high-resolution shots may still need to be scaled down.

How the 2 MB solver keeps maximum quality

Any file that starts at 2,097,152 bytes or less is returned untouched without re-encoding. For larger JPG and WebP files, the tool performs a binary search between 30% and 95% quality at full resolution and keeps the highest quality that lands at or under 2 MB. For PNG files, it tests indexed palettes of 256, 128 and 64 colors in sequence.

Dimension scaling is a last resort: only if 30% quality or 64 PNG colors at full resolution still exceeds 2 MB does the tool redraw the canvas smaller, up to 4 rounds. Re-encoded files are written in 8-bit sRGB without camera EXIF tags or embedded color profiles.

Batch limits and browser support

Each batch accepts up to 20 JPG, PNG or WebP files under 50 MB per file. High-resolution PNG screenshots usually drop well under 2 MB with 256 colors, whereas huge uncompressed camera photos saved as PNG may need dimension scaling—or a switch to JPG—to fit.

Safari cannot write WebP from a browser canvas, so in Safari any WebP input is saved as PNG when smaller or kept unchanged when PNG is larger. Your photos stay on your device; the page records usage events in Google Analytics without uploading your files.

What this tool does not do

It does not crop images, convert file formats (other than Safari's WebP-to-PNG fallback), preserve EXIF or GPS metadata on re-encoded files, or inflate smaller files up to 2 MB.

See all free tools

Keep exploring

Related free tools

Questions

Compress Image to 2MB: FAQ

Are my camera exports uploaded to a server?

No. Decoding, compression and any dimension scaling happen inside your browser on your device. The page sends usage events to Google Analytics, such as file counts and target size, without uploading your photos.

Will compressing a 10 MB JPG to 2 MB reduce its pixel dimensions?

Often not. Many 10 MB camera JPGs drop under 2 MB (2,097,152 bytes) at full pixel width and height once the quality is lowered. Scaling only happens if 30% quality is still above 2 MB.

What if a file in my batch is already under 2 MB?

Files that start at or below 2,097,152 bytes are skipped by the encoder and returned untouched so they lose no quality and never grow.

Does 2 MB mean 2,000 KB or 2,048 KB?

The solver targets 2,048 KB (2,097,152 bytes, or 2 MiB), which matches PHP's default 2M upload limit. A form that counts 2 MB as 2,000,000 bytes is slightly stricter, so check the size on the result row.

Why did my large PNG get scaled down?

Even with a 64-color palette, PNG uses lossless deflate compression, so multi-megapixel photographs saved as PNG can stay over 2 MB at full size. Convert photographic PNGs to JPG first if you do not need transparency.

Why did Safari save my WebP as PNG or keep the original?

Safari does not support encoding WebP from an HTML canvas. Use Chrome, Edge or Firefox when you want compressed WebP output.