Skip to content

Image Compressor

Image

or drop it here

Mode

Lower means a smaller file with more visible blur. 70 to 80% suits most photos.

More options

Your new image will appear here

Choose an image above, or drop it on the box.

Compared with the original
—
Pixel size
—

To compress an image, choose the file and either set a quality or type the largest file size allowed. For a size limit, the tool test-saves the picture at falling JPEG or WebP qualities and keeps the best one under it: a 200 KB limit means 204,800 bytes. If quality alone cannot get there, the pixel size is reduced too.

About this tool

Online forms for visas, job portals and exam registrations often reject a photo over 100 KB or 2 MB, and email services choke on phone pictures of 4 to 8 MB. This compressor has two modes. By quality saves the picture once at the JPEG or WebP quality you pick. To a file size takes a limit in KB or MB and runs up to seven test saves to find the highest quality that fits, then scales the pixels down only if it must. JPG photos stay JPG; PNG, GIF and WebP files are saved as WebP by default, which keeps transparency, or you can force JPG, WebP or PNG. A PNG has no quality setting, so it gets smaller only through fewer pixels. Animated GIFs come out as a single still frame. The file never leaves your browser, and camera details and GPS location are not copied into the result.

How to use it

  1. Choose the image

    Press Choose image or drop a JPG, PNG, WebP or GIF file of up to 25 MB on the box.

  2. Pick a mode

    By quality uses the slider. To a file size takes a number with KB or MB beside it, such as 200 KB for a form limit.

  3. Check and download

    Read the new size and the percentage saved, look at the preview, then download. Under More options you can force JPG, WebP or PNG.

Examples

Save a phone photo at 40% quality

Mode
By quality
Quality
40
Largest file size
200
Unit
KB
Save as
Best for this file
Image
fixture:photo-640×480-orient6.jpg

Result Compressed size: 6.7 KB
Compared with the original: 37% smaller
Pixel size: 480 × 640 px

  1. Opened 480 × 640 px, 11 KB
  2. Saved at quality 40%
  3. Saved as JPG, 6.7 KB

The photo keeps its 480 × 640 upright size; only the JPEG compression changes, so the file drops below the original 10.6 KB.

Get a 5.5 KB photo under 3 KB

Mode
To a file size
Quality
75
Largest file size
3
Unit
KB
Save as
Best for this file
Image
fixture:photo-400×300-gps.jpg

Result Compressed size: 2.4 KB
Compared with the original: 56% smaller
Pixel size: 400 × 300 px

  1. Opened 400 × 300 px, 5.5 KB
  2. Target: 3 KB = 3,072 bytes (1 KB = 1,024 bytes)
  3. Highest quality that fits: 30% (7 test saves)
  4. Saved as JPG, 2.4 KB

The search tries qualities between 5% and 95% and keeps the highest one whose file is under 3,072 bytes. The location tags in the original are not carried over.

Fit a 7 KB PNG under 5 KB

Mode
To a file size
Quality
75
Largest file size
5
Unit
KB
Save as
PNG
Image
fixture:text-quick-brown-fox.png

Result Compressed size: 4.3 KB
Compared with the original: 39% smaller
Pixel size: 229 × 41 px

  1. Opened 900 × 160 px, 7.1 KB
  2. Target: 5 KB = 5,120 bytes (1 KB = 1,024 bytes)
  3. Quality alone was not enough, so the pixel size was reduced to 229 × 41 px
  4. Saved as PNG, 4.3 KB

PNG cannot trade quality for size, so the picture is made smaller in pixels until the file is under 5,120 bytes.

How it is calculated

chosen quality = the highest q in 5–95% where encoded size(q) ≤ limit; limit in bytes = KB × 1,024 or MB × 1,048,576

q
the JPEG or WebP quality passed to the browser encoder
limit
the largest file size you typed, in bytes

The browser decodes the picture, turns it upright from its EXIF orientation tag and redraws it on a canvas. In To a file size mode it first saves at 5% quality. If that already fits, a halving search over six more saves narrows down the best quality under the limit. If even 5% is too large, the width and height are cut by about the square root of the size ratio and the search repeats. PNG output is lossless, so only the scaling step applies to it.

Sources

When not to use it

  • For print files that need a set DPI, CMYK colour or untouched camera data.
  • To keep an animated GIF moving; only the first frame is saved.
  • For a PDF; this compressor reads picture files only.

Common mistakes

  • Forcing PNG for a photo, which usually makes the file bigger than the JPG it came from.
  • Compressing an already compressed JPG again and again; each save at low quality adds more blocky artefacts.
  • Treating 1 MB as 1,000 KB; this tool counts 1 MB as 1,024 KB, the way most web forms do.

Frequently asked questions

How do I use an image resizer in MB to get a photo under 2 MB?

Switch to To a file size, type 2 and pick MB. The limit becomes 2,097,152 bytes, and the tool keeps the highest JPEG or WebP quality whose file fits. Most phone photos of 4 to 6 MB reach 2 MB at a quality around 80%, with the pixel size unchanged.

Is there an image resizer in MB for JPG files?

Yes. A JPG stays a JPG on the default setting. Enter the limit in MB, and the tool lowers only the JPEG quality first; it shrinks the width and height only if the lowest quality, 5%, is still over the limit. The steps list shows which of the two happened.

How do I change an image size from MB to KB, such as 3 MB down to 100 KB?

Type 100 and choose KB. A 3 MB photo is about 30 times the target, so quality alone rarely gets there; the tool then scales the pixels down, often to around 1000 pixels on the long side, and searches the quality again until the file is under 102,400 bytes.

Can an image resizer in MB increase the file size?

This tool only makes files smaller or keeps them close. Raising a file size to meet a minimum adds no real detail; you could save as PNG, which is usually larger for photos, but a warning appears whenever the result ends up bigger than the original.

Why does my PNG barely get smaller?

PNG is lossless, so saving it again at a quality setting changes nothing. Leave Save as on Best for this file to get a WebP that keeps transparency at a fraction of the size, or use To a file size, which keeps PNG and reduces the pixel count instead.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, December 4). Image Compressor. Tools Directory. Retrieved December 5, 2026, from https://directory.milunir.com/image-tools/image-editors/image-compressor/

MLA

Tools Directory Editorial Team. “Image Compressor.” Tools Directory, 4 Dec. 2026, https://directory.milunir.com/image-tools/image-editors/image-compressor/. Accessed 5 Dec. 2026.

Chicago

Tools Directory Editorial Team. “Image Compressor.” Tools Directory. Last modified December 4, 2026. Accessed December 5, 2026. https://directory.milunir.com/image-tools/image-editors/image-compressor/.

Link<a href="https://directory.milunir.com/image-tools/image-editors/image-compressor/">Image Compressor – Tools Directory</a>