Compress Images to 2MB

Compress an image to at or under 2,000,000 bytes in your browser. Reports the exact byte count, processes batches, and never uploads your file.

  • No file limits
  • No registration
  • Free forever
  • Images never leave your browser
Any Image
Bulk uploadTurn on to pick several images at once

Drop images here

or paste from clipboard (Ctrl/⌘ + V)

Supported formats: JPG, PNG, WebP, AVIF, SVG

Processing…

Your images never leave your browser

All processing happens locally on your device. Nothing is uploaded to a server, stored, or tracked.

A 2 MB limit is often stated loosely, so this works to a stated byte count rather than a rounded number. The result is guaranteed to be at or under 2,000,000 bytes, which satisfies a limit whether the portal counts kilobytes as 1,000 or 1,024, and the exact output size is shown so you can check it against the form.

How it works

What the limit actually means

A limit written as 2 MB is ambiguous, because one system counts kilobytes as 1,000 bytes and another as 1,024. The two readings differ by about 5 percent, and a file that sits between them passes one and fails the other. Working to the smaller figure removes the guesswork, which is why this tool targets a specific byte count rather than a rounded unit.

The two readings of a 2 MB limit
System1 MB equals2 MB equalsWho uses it
Decimal1,000,000 bytes2,000,000 bytesStorage manufacturers, most upload forms
Binary1,048,576 bytes2,097,152 bytesTraditional operating system reporting
This tool targetsNot applicable2,000,000 bytesSafe under either reading

How the tool reaches the target

Rather than picking a quality setting and hoping, the tool encodes the image repeatedly at different quality levels and keeps the best result that still fits. The highest quality that lands under the limit wins, so you get the sharpest image the budget allows rather than a fixed compression preset.

  • Try several quality levels, keeping any result that fits.
  • Binary search between the levels that fit and those that do not, to converge quickly.
  • Report the exact output size, so you can compare it against the form before submitting.
  • Copy a file through untouched if it is already within the limit, rather than degrading it.

NoteQuality is reduced only as far as the target requires. A small photo may need very little compression to fit, which is why the result keeps more detail than a fixed preset would.

When reducing size is the wrong answer

Compression reduces file size by discarding information. If the image is larger than it needs to be for where it will be displayed, resizing first gives a much better result, because the pixels that are removed were never going to be seen. A 6,000 pixel image compressed to 2 MB will look soft, while the same image resized to roughly 2,000 pixels and then compressed will look sharp at the same byte count.

  • Large image, screen display: resize to about 1,024 by 1,024 first, then compress.
  • Large image, print use: compression is the wrong tool. Check the print size calculator for the pixel requirement instead.
  • Logo or flat graphic: PNG lossless keeps edges crisp, and the file may need to be larger rather than smaller.
  • Image with transparency: keep PNG or WebP. JPG discards the alpha channel entirely.

Form limits and other places 2MB comes up

Two megabytes is a common cap on school and government submission forms, some job application portals, and older CMS systems. It is also a reasonable target for email images on slow connections. If a form specifies a limit, follow the letter of it rather than a similar round number, and check the byte count of your result rather than trusting the unit shown in a file manager.

Batch compress images to 2MB

Compress a batch of photos to at or under 2 MB each while keeping detail. Free, private, batch ZIP, processed entirely in your browser.

Frequently asked questions

What is 2MB in bytes?

Exactly 2,000,000 bytes in the decimal system, or 2,097,152 bytes in the binary system where MB means MiB. This tool works to 2,000,000 bytes, which is the smaller of the two, so the result passes a limit stated either way.

What if my image is already under 2MB?

It is copied through unchanged. There is no need to re-encode a file that already meets the requirement, and doing so would only reduce its quality. The result panel tells you it was already within the limit.

Will my photo still look sharp at 2MB?

For most photographs, yes, because 2 MB is a generous budget at typical display sizes. A very large image, such as one from a 48 megapixel camera, may look soft at that size. Resizing to roughly the size it will be displayed at first gives a much better result than compressing a huge image down. Start with resize to 1024x1024 when the image is very large.

What if the target cannot be reached?

A file that is already smaller than the target, or a format and quality combination that cannot go lower without visible damage, is reported honestly rather than claimed as a success. In that case, converting to a more compressible format such as WebP usually helps, and reducing the pixel dimensions is the reliable option.

Which output format should I pick?

JPG is the safest default for a form that expects a photograph. WebP usually reaches the same byte target at a higher visual quality, but some older portals reject WebP. PNG is lossless, so it reaches small targets by discarding colour rather than detail, and AVIF gives the smallest files where it is accepted.

Can I batch compress many images to 2MB?

Yes. Add a folder, set the 2 MB target, and compress together. Each image is searched independently for the best quality that fits, and you can download a ZIP with all of them.