"File must be under 100 KB." Job portals, exam forms, government services and visa applications all set limits like this, and a phone photo is often 3–5 MB. Photo Compressor by Shader7 gets a photo under a target size while keeping as much detail as possible. It runs in your browser, so the photo never leaves your device.

Photo Compressor with target size, format and resize settings, and a before-and-after comparison
Photo Compressor with target size, format and resize settings, and a before-and-after comparison.

How to use it in three steps

1. Choose a photo

Pick a photo or drag and drop it. JPG, PNG, WebP and other browser-supported images work, up to 25 MB and 40 megapixels, one photo at a time.

2. Set the size

  • Target size: tap 50 KB, 100 KB, 200 KB or 500 KB, or type a Custom target (KB).
  • Download format:
  • JPG — most compatible; use it for upload forms.
  • WebP — smaller files for photos, supports transparency; good for websites.
  • PNG — lossless and transparent; does not use the KB target.
  • Resize & crop (optional):
  • Measurement unit: pixels, centimetres, millimetres or inches.
  • Width and Height (leave one on Auto to keep proportions).
  • Resolution for conversion (DPI): used only to turn cm, mm or inches into pixels. It does not write print-DPI data into the file.
  • Allow smaller dimensions to reach the target: lets the app shrink the image if quality alone is not enough.
  • Crop before compression: drag the crop frame to move it and its bottom-right handle to resize. With width and height set, the frame keeps that shape. With the frame focused, arrow keys move it and Shift + arrow keys resize it. Recenter crop puts it back in the middle.

3. Compare and save

Press Compress photo. The app shows the original and compressed versions side by side with the original size, new size and size difference. Zoom in on small text, edges and faces before you press Download image. Start over clears everything.

How the target size is reached

For JPG and WebP, the app works like this:

  1. It encodes the image at high quality (0.92). If that is already under the target, you get the best-looking result.
  2. If not, it checks the lowest quality (0.1). If even that is too big, and resizing is allowed, it scales the image down and tries again.
  3. When the target is reachable, it runs a binary search on quality (eight steps between 0.1 and 0.92) to find the highest quality that still fits under your limit.

The result is the sharpest image the browser can produce at or below your target, not a file of exactly that many bytes. If fixed dimensions stop it reaching the limit, the result clearly says it is above target.

PNG skips this process: it is lossless, so the only way to make it smaller is fewer pixels.

Compression trade-offs: quality, dimensions and format together decide the final file size
Compression trade-offs: quality, dimensions and format together decide the final file size.

Choosing a format

Situation Format Why
Government or job upload form JPG Accepted everywhere
Website or blog image WebP Smaller than JPG at the same quality
Logo or graphic with transparency PNG or WebP Keeps transparent areas; JPG fills them with white
Screenshot with text PNG, or JPG at a generous target Avoids blurry text

Common upload limits and settings

Use Typical limit Suggested settings
Passport-style photo for a form 50–100 KB, set pixel size JPG, enter the required width and height
Signature scan 20–50 KB JPG, custom target, crop tight to the signature
Profile photo 100–200 KB JPG or WebP, around 800 px wide
Document photo 200–500 KB JPG, keep enough pixels for text to stay readable

If a form asks for both dimensions and a size limit, enter the dimensions in Resize & crop and the size limit as the target.

Getting the best quality under a limit

  • Resize first. A 4,000-pixel-wide photo squeezed into 100 KB looks worse than a 1,200-pixel version at the same size. Fewer pixels means more bytes for each one.
  • Crop out what you do not need. Empty background still costs bytes.
  • Start from the original, not from a photo that has already been compressed by a messaging app.
  • Check faces and text at 100%. Blocky artefacts show up there first.
  • If the new file is bigger, keep the original. Re-encoding an already optimised image, enlarging it or converting to PNG can increase the size.

Related tools

  • Need a passport photo at a set size first? Use Passport Photo Maker, then compress the result.
  • Need several photos in one file? The Image to PDF Converter combines up to 50 images into one PDF with page size, margin, quality and DPI settings.

Worked example: an exam form asking for 20–50 KB at 200 × 230 px

  1. Choose your photo.
  2. Type 50 in Custom target (KB). Keep JPG.
  3. Open Resize & crop, keep Pixels (px), and enter Width 200 and Height 230.
  4. Turn on Crop before compression. The crop frame now has the 200 × 230 shape; drag it so your face and shoulders sit in the middle.
  5. Press Compress photo and check the new size. A 200 × 230 px JPG is usually well under 50 KB at high quality.
  6. If the form also has a minimum size such as 20 KB and your file comes out smaller, the photo is already at the highest quality the app uses. Increase the dimensions slightly within the allowed range, or choose a larger crop.

Understanding the numbers

  • KB vs kB vs KiB: forms usually mean 1 KB = 1,024 bytes. The app targets the limit you enter, so if a form is strict, set your target a little lower (for example 95 KB for a 100 KB limit).
  • Pixels vs DPI: on screen and in upload forms, only pixel dimensions matter. DPI only matters when printing, and the app uses it only to convert cm, mm or inches into pixels.
  • Megapixels: a 12-megapixel phone photo (about 4,000 × 3,000 px) is far larger than any upload form needs. Resizing first is the biggest single saving.

Troubleshooting

Problem Fix
Result says above target Turn on Allow smaller dimensions, or reduce width and height yourself
Text in a scan is blurry Raise the target size or the dimensions; try PNG for screenshots
Transparent background turned white You chose JPG; use PNG or WebP to keep transparency
File will not open on an older site Use JPG; some older systems do not accept WebP

Frequently asked questions

Can I compress to exactly 100 KB?

The app aims for the highest quality at or below your target, not an exact byte count. If fixed dimensions make the target impossible, it shows that the result is above target.

Why is my compressed file larger than the original?

An already optimised photo can grow when re-encoded, resized upward or converted to PNG. Compare the sizes and keep the original if the new one offers no benefit.

Does PNG use the KB target?

No. PNG is lossless. Reduce its dimensions, or choose JPG or WebP when the file size matters.

Can I compress several photos at once?

The editor handles one photo at a time. Download the result, then choose Change photo for the next one.

Is my photo uploaded?

No. Compression runs in your browser. The page may load shared resources and advertising separately, but your photo is not sent to a server for compression.

Compress your photo

Choose a target size, pick a format, optionally resize or crop, and compare before and after. Your photo is processed on your device.