Image Resizer & Compress to Target KB
Resize photos to exact pixel dimensions and squeeze them under a file-size limit such as 50KB or 100KB — ideal for application forms, passport photos and social posts. Everything runs in your browser; nothing is uploaded.
Note: with a target size set, the tool finds the highest quality that stays under your limit. Only if the lowest quality is still too big does it scale the dimensions down, and the result says so. Presets are common sizes, not official guarantees — always check the requirements of the site you are uploading to. Limits use 1 KB = 1,000 bytes, slightly stricter than 1,024, so the file passes under either convention.
How to use
- Click the box above or drag your photos onto it. You can pick several at once — phone JPGs, PNG screenshots and WebP downloads all work.
- Choose a preset if one fits, for example "Square post 1080×1080" or "2×2 in square 600×600 · ≤240KB". The width, height and size limit are filled in and processing starts immediately.
- Or set your own: enter a width and height in pixels (with "Lock aspect ratio" ticked you only need one of them), scale by a percentage, or keep the original size and just compress.
- When the image's shape doesn't match the size you asked for, "Crop to fill" trims the edges from the center — best for profile and ID photos — while "Fit whole image" keeps everything and pads the gaps with white.
- The original and the result appear side by side with their dimensions and file sizes. Click "Download" to save, or "Download all (zip)" for a batch. Change a setting and click "Re-process" to try again.
Hitting a file-size limit
Job portals, university applications, visa forms and government websites often say something like "JPG, maximum 100KB" or "under 50KB". Lowering the JPG quality by hand until it fits is tedious, so this tool does it for you: it runs a binary search over the quality setting to find the best-looking file that is still below your limit, which usually lands within a few percent of the target. If even the lowest sensible quality is too big — a 4000-pixel photo squeezed to 20KB, say — it reduces the dimensions step by step until the file fits, and tells you the final size. When the site requires exact pixel dimensions, set them explicitly; the tool then keeps your dimensions and accepts lower quality before it ever shrinks the image.
Photo sizes worth knowing
For social media, 1080×1080 (square), 1080×1350 (portrait) and 1080×1920 (stories) are the standard upload sizes, 1200×630 is the usual link-preview image, and 1280×720 suits video thumbnails. For ID photos, "2×2 inch" digital photos are commonly requested as squares between 600 and 1200 pixels, and 35×45 mm prints correspond to roughly 413×531 pixels at 300 dpi. Requirements differ by country and change over time, and many official photo rules also cover background colour, head size and lighting, which a resizer cannot fix. Treat the presets as a starting point and check the official specification before you submit.
Why local processing is private
Passport photos, scanned IDs and application documents are exactly the kind of images you don't want sitting on a stranger's server. Many online compressors upload your file first; this one doesn't. Resizing and encoding use your browser's built-in Canvas, so the image never leaves your device and nothing is kept once you close the tab. The re-encoded file also drops EXIF metadata such as GPS location.
Tips
- To hit a tight KB limit, use JPG. PNG is lossless, so the only way to make it smaller is to make it smaller in pixels.
- Simple backgrounds compress far better than busy ones. If a photo won't fit without shrinking, a plainer background helps more than anything else.
- Avoid enlarging small images — upscaled photos look soft and some application systems reject them. Start from the largest original you have.
- For batches with mixed shapes, keep "Lock aspect ratio" on to scale each image by width without distortion; turn it off to crop every image to the exact width and height.
- Got iPhone HEIC photos? Convert them with HEIC to JPG first. Need several images as one document? Use JPG to PDF afterwards.
FAQ
Q: Are my images uploaded?
A: No. Reading, resizing and compressing all happen in your browser. Our server never receives your images.
Q: How does "compress to a target KB" work?
A: The tool encodes the image at different JPG or WebP quality levels and uses a binary search to find the highest quality under your limit. If the lowest quality is still too large, it scales the dimensions down until the file fits.
Q: Why were my dimensions reduced?
A: At the size you asked for, the file was over the limit even at the lowest quality. Raise the KB limit, or use a photo with a simpler background, which compresses better.
Q: The site also has a minimum file size. What if my file is too small?
A: With a target set, the tool uses the highest quality that fits, so files usually land close to the limit. If it is still below the minimum, set the target to the maximum the site allows or try PNG.
Q: Are the presets official specifications?
A: No. They are common sizes to save typing. Official requirements vary by country, organisation and year, so check them and adjust the numbers if needed.
Q: Does it work on phones, and how many images can I process?
A: Yes, it works in modern mobile browsers. There's no fixed limit; it depends on your device's memory. Dozens of photos are usually fine, though very large images take longer on a phone.