The quick answer

Set a target (20 to 1000 KB) and the tool binary-searches JPEG quality (1–95) until the file lands under it, typically in a second or two. Everything runs in your browser; passport photos and IDs never upload. A 3.8 MB phone photo usually needs a pre-resize to ~1024 px before 100 KB is reachable; honest numbers below.

The upload form that rejects your photo at the last step

You've filled in your name, your address, your work history, and twelve fields of personal information. Then you reach the photo upload. 'File must be less than 100 KB.' Your photo is 3.8 MB. The form doesn't offer to compress it for you; it just refuses, and everything you typed is sitting there waiting while you go hunt for a solution.

The tool at the top of this page is that solution, built for exactly this moment. Drop the photo in, type the limit (20, 50, 100, 200 KB, anything) and a binary search over JPEG quality lands on target in a second or two. It runs in your browser, so a document as sensitive as a passport photo or a signature never gets uploaded to anyone's server.

I help people through application portals for a living (school admissions, government programs, job boards), and the size-cap rejection at the final step is the single most common technical failure in the whole process. This page is everything I've learned about hitting exact file sizes, written down so the next one goes smoothly.

Why photos are megabytes and forms want kilobytes

A modern phone camera produces a 4032×3024 image, about 12.2 million pixels, and stores it at 1.5 to 4 MB depending on format and scene detail. That's a display-quality asset, sized for printing and zooming. Meanwhile the form you're filling out displays your photo at 150 pixels wide in a corner of the page, and its engineers capped uploads at 100 KB because they're storing a hundred thousand of them.

Both parties are being reasonable; they just serve different worlds. Your camera captures for the future, the portal stores at scale. The compression tool is the diplomat between them, and the honest answer is almost always the same: shrink the image to roughly the size it will actually be displayed, and the byte target becomes easy.

  • Exam and application portals: commonly 20 KB to 100 KB per image
  • Government visa and lottery forms: the US Diversity Visa instructions, for example, ask for a square JPEG between 600×600 and 1200×1200 pixels, at most 240 KB
  • Job board profile photos: typically 100 KB to 500 KB
  • Classified listing sites and marketplace forms: 200 KB to 1 MB
  • Email signatures and forum avatars: often 50 KB or less

Hit an exact KB target in six steps

  1. Drop your image

    Drag in a JPG, PNG, or WebP; the browser decodes it locally. HEIC files from iPhones should go through the HEIC to JPG Converter first; this tool's decoder is the browser's own, and Chrome and Firefox don't speak HEIC.

  2. Set the target

    The slider runs from 10 to 1000 KB in 10 KB steps. For a form with a 100 KB cap, aim at 90–95 KB to leave a margin for portals that count kilobytes slightly differently.

  3. Pick the output format

    JPG is the default and what most portals expect; the WebP toggle squeezes smaller still where the form accepts it. Both are lossy, and the format table below says what that costs line art.

  4. Compress

    One click runs the binary search: encode, measure, adjust, up to a dozen rounds, keeping the highest quality that fits under your target. It takes a second or two on a typical photo.

  5. Read the result

    The tool reports the final size, the quality level it found, and how much smaller that is than the original, so you know exactly what you're handing the portal.

  6. Download and verify

    Grab the file and check it against the form before you celebrate. The reported size is the file's actual size; if the portal disagrees, your margin was too thin; aim a few kilobytes lower.

How the tool lands on your number

JPEG compression has one main dial: quality, from 0 to 100. Turn it down, the file shrinks; turn it too far, faces become mosaic. What it doesn't have is a formula connecting quality to output size, because the relationship depends entirely on image content: a busy beach scene at quality 60 can out-size a blank wall at quality 80.

So the tool doesn't guess; it searches. Encode at a quality, measure the result; if the file is too big, encode lower, and if it lands with room to spare, encode higher and keep the better one. Each iteration halves the remaining range: a binary search that runs at most a dozen encode-and-measure rounds, each a fraction of a second, and stops at the highest quality that fits under your target.

If even quality 1, the floor the search can reach, can't fit, which happens with large resolutions and tight targets, the tool hands you the closest fit it found and reports the number honestly. The fix is pre-emptive: resize the long edge down before compressing (1024–1200 pixels suits most form photos), then run the search at the smaller size. Resize first, then run the search again, because a resized image compresses differently and the search must start fresh.

Three real compressions, with numbers

Numbers from actual form-submission season, on real files. Sizes are as reported by the tool and confirmed by the receiving portals.

The university application photo

Input

JPG, 4032×3024, 3.8 MB, outdoor headshot

Output

Resized to 1024×768 first, then quality 72: 96 KB, accepted on the first try

At full resolution this photo couldn't get under 100 KB even near the quality floor; downsized to 1024 pixels wide first, quality 72 landed comfortably with room to spare. The portal displays this photo at about 200 pixels; the compression is invisible where it matters.

The exam form signature

Input

PNG scan of an ink signature on white paper, 600×200 px, 118 KB

Output

JPEG at quality 30: 19 KB, faint halos around the strokes, accepted by the form

This one is the format lesson. JPEG compression puts faint gray halos around ink strokes, the classic cost of lossy coding on line art, and this tool's output dial offers JPEG and WebP only. When a spec demands crisp PNG line art, compress from the original with a dedicated PNG tool; the format table below spells out why.

The visa lottery photo

Input

Passport-style headshot, 1200×1200, 1.9 MB

Output

JPEG at quality 81: 238 KB, inside the 240 KB limit with a thin margin

What each target KB realistically buys you

TargetTypical photo dimensionsTypical JPEG qualityWhat it's good for
20 KB300–400 px wide55–65Tiny avatars, hard-capped exam forms; faces get soft
50 KB600–800 px wide65–75Form thumbnails, small profile photos
100 KB900–1200 px wide70–80Standard application photos, the most common target
200 KB1400–1800 px wide75–85Better portals, visa-style photos, listing images
500 KB2200–3000 px wide80–90High-quality uploads where the cap is generous

These are the stable landing zones for a typical headshot, and you should read them as physics rather than policy: every kilobyte budget buys either pixels or quality, and past a point you're choosing which one to starve. A form that demands 20 KB is telling you, in its own way, that your photo will be displayed at stamp size.

The format decision at small sizes

At 2 MB, JPG versus PNG is a footnote. At 100 KB it decides whether your upload looks professional or broken. The rule follows the content: photographs are thousands of smooth gradients, which JPEG's frequency-based compression handles brilliantly; drawings and text are flat regions and hard edges, which PNG's lossless approach preserves exactly. The table below is the honest version of that rule. One tool note: the output dial here offers JPG and WebP; when a destination demands PNG, that final swap happens after the size work, in a converter.

ContentBetter format at small sizesWhy
Headshots and photosJPGGradient compression is JPEG's core competency; 5–10× smaller than PNG at equal look
Signatures and ink scansPNGPreserves crisp strokes; JPEG adds gray halos on white backgrounds
Text screenshotsPNGLetters stay sharp; JPEG blurs glyph edges and tints backgrounds
Logos with few colorsPNGFlat colors compress extremely well losslessly
Mixed content (photo with text)JPG at quality 75+Compromise: readable text, reasonable size

This is your ID document: keep it local

The images people compress to exact sizes are, overwhelmingly, identity documents: passport photos, signature scans, ID cards, certificate scans. These are the crown jewels of identity theft, and the majority of online compressors are server-side: your file uploads to their machine, gets processed, and downloads back with a promise attached about deletion.

A promise is not an architecture. This tool's compression happens entirely in your browser tab: the file loads into local memory, the binary search runs on your device, and the result is generated on your machine. Load the page, switch off your Wi-Fi, and it still hits the target, because nothing transmits. In EU terms, that means no third-party processing of personal data: GDPR's concerns about lawful basis and processor obligations simply don't arise, because there is no processor.

For HR departments and school offices advising applicants, this is the detail worth repeating: the safest compressor for identity documents is the one that never receives them.

When the target is genuinely impossible

Some caps can't be met with quality, and the honest response is a smaller image, not a mangled one. A few situations deserve special handling:

  • CMYK JPEGs: print-source files sometimes decode with inverted or washed-out colors in browser tools. Convert to RGB in a photo editor first, then compress
  • 16-bit PNGs: the browser pipeline works in 8-bit color, so the output drops to 8-bit. For form uploads this is meaningless; for archival work, use desktop software
  • Animated or multi-frame files: this tool outputs a single still image; a video thumbnail should be extracted first
  • Screenshots of text at extreme compression: below 40 quality, glyphs melt. Switch to PNG, where text stays legible at much smaller sizes

Three mistakes that get uploads rejected

Rejections come in patterns. After enough of them, the patterns have names, and none of the three below is about the tool; they're about the details around it.

  • Aiming exactly at the ceiling: a 100.0 KB file against a 100 KB limit is a coin flip depending on how the portal counts. Target 3–5% under, every time, and the coin flip disappears
  • Renaming instead of converting: changing .png to .jpg in the filename does nothing to the file inside, and portals that check the actual format catch it instantly. Convert properly, always
  • Compressing the wrong copy: the version with the right crop, the right background, and the right lighting is the one to compress. People get so focused on the KB number they forget the portal also has eyes

There's a fourth, dishonorable mention: compressing below a spec's stated minimum. Some portals reject files that are too small, because a 30 KB 'photo' looks like exactly the blurry mush it is. If a form says 10 KB minimum and 100 KB maximum, both edges are rules. Aim for the middle of the range, where quality still exists.

Frequently asked questions

How do I compress an image to 100KB?

Open the tool, drop your photo, set the slider to 100 KB (90–95 if the form counts kilobytes strictly), and download. The tool binary-searches JPEG quality until the file lands at or just under the target. A 12-megapixel phone photo usually needs a resize to roughly 1024 pixels wide first; at full resolution it can't reach 100 KB even at the quality floor.

How do I reduce an image to 20KB?

At 20 KB you need small dimensions, not just low quality. Resize to roughly 300–400 pixels wide first, then run the tool: quality alone can't carry a full-resolution photo down to 20 KB. Signatures and line art tolerate very low quality and land larger per pixel; a photo at 20 KB is a thumbnail, by physics.

Why won't my image reach the target size?

Usually resolution: even the lowest JPEG quality exceeds a tight target when the image is big. Resize the long edge down and re-run. The other case is an extreme target for the content (10 KB for a detailed 6000-pixel photo), where nothing honest fits; the tool then reports the closest size it achieved rather than pretending it hit the number.

Will compressing to a small size ruin the quality?

Some loss is unavoidable below a certain size: JPEG quality in the 60–75 range still looks clean on screen, while 40 and below shows blocking on faces and skies. For form uploads the portal only checks the size, so aim for the largest target it accepts. For anything people will actually look at, don't go below 50 KB for a photo without resizing down first.

Should I use JPG or PNG for a small file?

Photos belong in JPG: at small sizes it beats PNG by a factor of five or more. Signatures, line drawings, and text screenshots belong in PNG, which keeps edges crisp. This tool outputs JPG or WebP; when a spec demands PNG line art, do the size work in a dedicated PNG tool instead, because converting a compressed JPG to PNG freezes the artifacts and balloons the size.

Is my photo or ID document uploaded anywhere?

No. Everything happens in your browser: decoding, the quality search, and re-encoding all run locally. Your passport photo, signature, and ID scans never transmit to any server, and the tool keeps working with your Wi-Fi off.

Can I compress multiple images to the same target at once?

One image at a time: set the target, compress, download, repeat. Each pass takes a second or two, so a handful of files is a few minutes of work with the tab open. For recurring bulk compression, a desktop batch tool is the honest recommendation; this page is a browser tool for one careful file at a time.

Does repeated compression damage the image?

Yes: each JPEG save at low quality compounds artifacts, the phenomenon called generation loss. Compress from your original file, once, to the final target. Never re-compress an already-compressed file to a smaller size when the original is available.

The rest of an application-upload workflow

Hitting a size target is one stop in a longer workflow for most applicants. The Image Compressor handles quality-led shrinking when there's no hard KB number, JPG to PDF bundles form photos into the single PDF most portals ultimately want, and the PNG to JPG Converter makes PNG sources welcome at JPEG-only forms, same in-browser pipeline, nothing uploaded.

  • Image Compressor: quality-led compression when you want smaller files without a hard KB number
  • JPG to PDF: turn form photos and scans into the single PDF most portals ultimately want
  • PNG to JPG Converter: the format swap that makes PNG photos ready for JPEG-only portals

Sources and further reading

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.