Image Compressor
Hit a target file size for online forms without wrecking quality.
Drag & drop your photo here
or
JPG • PNG • WebP
Stays on your device. No upload, no account.
Everything on this page runs in your browser. Your image is never uploaded, stored or analysed by a server.
About this tool
Application portals limit uploads by file size — 100 KB, 240 KB, 2 MB — and reject anything larger before a human looks at it. The Image Compressor takes a target size in kilobytes and finds the highest JPEG or WebP quality that fits under it, reducing the pixel dimensions only if the lowest acceptable quality is still too big. You see the size before and after, and the quality that was used.
It also converts between JPG, PNG and WebP. Everything happens on your device; the original file is untouched, and camera metadata is not copied into the result.
How it works
- Upload the image.
- Enter the maximum size in KB, or switch to quality mode and choose a percentage. Optionally cap the longest side in pixels.
- Pick the output format and download. The button shows the format; the caption shows the final size.
Good to know
- JPG compresses photographs far better than PNG. If a portal accepts both, choose JPG for photos and PNG only for graphics or transparency.
- A very small target on a very large photo forces the dimensions down. Set the longest side first (for example 1200 px) to keep control over what gets reduced.
- Converting a JPG to PNG makes it larger, not smaller — PNG is lossless.
Questions about this tool
The result is still above my target.
PNG cannot be compressed below a certain point without changing pixels; switch to JPG. For JPG and WebP, lower the longest-side limit and try again — the tool already tried the lowest quality it allows.
Does compressing reduce the pixel size?
Only when necessary. The tool reduces quality first and keeps the dimensions; it shrinks the image in two steps only if the target cannot be met otherwise, and it tells you when that happened.
Will the compressed photo still pass a passport photo check?
Compression does not change composition, but heavy compression adds artefacts that some authorities reject. Stay above 60 % quality where a portal's size limit allows it, and use the passport tool's own file-size setting, which encodes at the required output size directly.
DocPixEdit provides technical guidance and automated checks based on the requirements and sources listed on this page. Requirements can change, and final acceptance is determined by the relevant authority. Always verify current requirements before submission.