Resize an Image in KB Before Uploading (20 KB to 200 KB)

Cover illustration: Resize an Image in KB Before Uploading (20 KB to 200 KB)

Job portals, exam forms and government sites often say things like “JPG, max 200 KB” or “600 × 450 pixels”. Resize & Compress Image handles both kinds of rule.

Which setting matches the rule

The site saysUse
“Max 200 KB”Max file size (KB, optional) = 190 (leave room)
“Width 600 px”Pixels mode, Width 600; height follows to keep the shape
“Half size”By % mode
Only a formatKeep size and choose the Output format

Test 1: a 200 KB limit

Resize image tool with maximum file size set to 200 KB
Max file size set to 200 KB for a 2400 × 1800 photo.

The result was 186 KB at 1734 × 1301 px: to reach the limit the tool also reduced the pixel size, not only the JPEG quality.

Test 2: an exact width

Resize image in Pixels mode with width 600 and height filled in as 450
Width 600 px; the height was filled in as 450 automatically.

The output was exactly 600 × 450 px and 19 KB. If a site demands both a width and a height with a different shape than your photo, crop the photo first or the picture will be stretched.

Good to know

  • The output had no EXIF data, so camera details and GPS location from a phone photo are not carried over.
  • Resizing cannot add detail. Start from the largest original you have.
  • For ID or passport photos with exact millimetre sizes for printing, use Passport Photo instead.

Test 3: a phone photo down to 200, 50 and 20 KB

We made a 4032 × 3024 px, 1.26 MB test photo, the size a typical phone camera produces, with camera make, model, date and GPS location written into its EXIF data. Then we set only Max file size and left everything else at the defaults (Keep size, JPG, quality 80%).

Limit typedOutputPixel sizeTime
200196,970 bytes (192 KB)1789 × 13411.5 s
5042,026 bytes (41 KB)574 × 4301.5 s
2020,329 bytes (20 KB)353 × 2641.6 s
Resize image tool with a 4032 by 3024 phone photo loaded and the maximum file size set to 20 KB
The 20 KB run: the tool lowers JPEG quality first, then shrinks the pixel size until the file fits.

Two things to take from this:

  • Small limits mean small pictures. At 20 KB the photo was only 353 px wide. That is fine for a signature or a thumbnail on a form, but a face will look soft. If the site allows 50 or 100 KB, use it.
  • Watch for 1000 vs 1024. PDFroo counts 1 KB as 1024 bytes, so the “20 KB” result is 20,329 bytes. Some portals count 1 KB as 1000 bytes and would see 20.3 KB and reject it. If an upload fails right at the limit, type a slightly lower number, such as 19 instead of 20.

Test 4: when a site gives both pixels and KB

Many forms say something like “1200 px wide, under 100 KB”. We chose Pixels, typed width 1200 (height filled in as 900) and typed 100 in Max file size. The result was exactly 1200 × 900 px and 101,650 bytes (99 KB), produced in 0.3 s. The tool kept the pixel size you asked for and lowered only the JPEG quality, because that alone was enough to meet the limit.

Test 5: PNG screenshots

We tested a 1920 × 1080 PNG screenshot (65 KB) with Output format set to Same:

  • With no size limit, the output PNG was larger (114 KB) than the original. Re-saving a PNG in the browser does not compress it better than the app that made it. If a PNG is already small enough, upload the original.
  • With a 50 KB limit, the tool switched to JPG (a PNG cannot be made smaller by lowering quality) and returned a 1387 × 780 JPG of 41 KB. Check that the site accepts JPG before you upload it.

Test 6: unticking Keep aspect ratio

With Keep aspect ratio off and 600 × 600 typed for the 4:3 phone photo, the output was 600 × 600 px but visibly squashed sideways. If a portal wants a square image, crop the photo square first, then resize it.

Test 7: several images at once

We added three images (the phone photo, a 1240 × 400 signature scan and a 2400 × 1800 photo) with a 50 KB limit. They came back in one ZIP: the phone photo at 574 × 430 (41 KB), the other photo at 1065 × 799 (41 KB), and the signature scan at its full 1240 × 400 (15 KB), because it already fitted after re-encoding. Each image is handled on its own, so a small image is not shrunk just because a big one needed it.

Privacy check: EXIF and GPS

None of the outputs above carried any EXIF data. Our source photo had GPS coordinates; after resizing, Pillow found no EXIF tags at all. This is useful when you upload a phone photo to a public form, because the location where the photo was taken is not passed on.

Quick checklist before you upload

  1. Read the exact rule: format (JPG/PNG), max KB, and any pixel or cm size.
  2. Crop first if the shape is wrong; then resize.
  3. Type a limit a little under the maximum.
  4. Open the result and check the face or text is still clear.
  5. Rename the file if the portal is strict about names; PDFroo adds the pixel size to the name, for example photo-1200x900.jpg.

Related: preparing a PDF for an online application, compressing a PDF to 100 or 200 KB and using a photo of your signature.

FAQ

Why is my 20 KB photo so small in pixels?

A JPEG photo holds only so much detail per kilobyte. In our test, 20 KB allowed about 353 × 264 px. The tool lowers quality first and only then reduces the pixel size.

The site still says my file is too big. What now?

Some sites count 1 KB as 1000 bytes. Type a limit 5–10% below the stated maximum and try again.

Can I keep PNG format with a KB limit?

Not when the limit forces a smaller file: the tool switches to JPG. Without a limit, PNG is kept but may come out larger than the original.

Does resizing remove the location from phone photos?

In our tests, yes. The output had no EXIF data, so GPS, camera model and date were gone.

Is the image uploaded anywhere?

No. Resizing runs in your browser; we recorded the network requests and none carried the image.

How we tested this

Dates22 October 2026 (tests 1–2); 1 November 2026 (tests 3–7)
EnvironmentGoogle Chrome 156 (headless) on Linux x86_64, desktop viewport 1280×900, live pdfroo.com
Test filesphoto.jpg 2400 × 1800; fictional phone-style photo 4032 × 3024, 1.26 MB, with EXIF and GPS; 1920 × 1080 PNG screenshot, 65 KB; 1240 × 400 signature scan
RunsMax size 200/50/20 KB; width 1200 + 100 KB; PNG Same with and without 50 KB; 600 × 600 without aspect ratio; 3-image batch at 50 KB
ResultsAs in the tables above; no EXIF or GPS in any output

Every output was checked with pypdf, pdfinfo, pdftotext, pdfimages or Pillow, and every network request the page made during processing was recorded. No request carried the file. See our tool testing methodology.

Tools mentioned in this guide

Keep reading

Sign a PDF With a Photo of Your Signature (No White Box)

Turn a phone photo of your handwritten signature into a clean, see-through signature on a PDF. We tested six photos: what worked and what left a box.

How to Prepare a PDF for an Online Application

Prepare a PDF for an online application by checking page order, readability, privacy, file size, and upload requirements before final submission.

Convert PDF Pages to JPG: Choosing DPI and Selecting Pages

Export one page or a range as JPG images at 72, 150, 220 or 300 DPI. Tested: what each resolution produced, when you get a ZIP, and how big the files are.

Compress PDF to 100 KB or 200 KB (Tested on a 6 MB Scan)

Get a PDF under a 100 KB or 200 KB upload limit. We squeezed a 6.17 MB scan to 184 KB, 87 KB and 42 KB and kept the text; here is how, and what to do if it won’t fit.

Passport Size Photo Print on A4: 35×45 mm Sheet at Home

Make a print-ready A4 sheet of passport photos (35×45 mm, 2×2 in and more). Tested: 25 copies at about 300 DPI, plus the printer setting that keeps the size right.

How to Remove Duplicate Pages From a PDF After Merging

Find pages that repeat after combining PDFs, delete the extra copies, and check the final page count. Tested with overlapping files and a re-scan.