Resize Image to Target File Size
Get a photo under 20 KB, 50 KB, 100 KB or any limit — we check the result for you.
Drop one or more images to see the exact file size in bytes, KB and MB, the pixel dimensions, aspect ratio, DPI and print size. The file is only read, never re-saved or uploaded.
Drop images here
or
JPG, PNG, WebP, GIF, BMP, HEIC, AVIF — or any file, to see its exact size
You can also paste an image (Ctrl/⌘ + V).
Private: images never leave your device| File | Format | Size | Pixels | Aspect ratio | DPI |
|---|
There are two ways to count kilobytes. Storage makers, macOS and most web standards use 1 KB = 1000 bytes. Windows and many older systems use 1 KB = 1024 bytes (strictly called a kibibyte, KiB). That is why the same file can look “too big” in one place and fine in another.
| Form limit | Safe maximum (1000-byte KB) | Largest if 1024-byte KB |
|---|---|---|
| 20 KB | 20,000 bytes | 20,480 bytes |
| 50 KB | 50,000 bytes | 51,200 bytes |
| 100 KB | 100,000 bytes | 102,400 bytes |
| 1 MB | 1,000,000 bytes | 1,048,576 bytes |
When you type a limit above, we check against the stricter 1000-byte value, so a ✓ means the file passes either way.
Pixels are the real content of an image. DPI (dots per inch) only tells a printer how many of those pixels to put in one inch. The formula is simple: print size in inches = pixels ÷ DPI, and 1 inch = 2.54 cm. For example, 413 × 531 pixels at 300 DPI print as 3.5 × 4.5 cm. The same file at 72 DPI would print almost four times larger and look blurrier — but on a screen it looks exactly the same.
We show the print size at the DPI stored in the file (if any) and at 300 DPI, the usual value for photo printing.
| Ratio | Typical use | Example size |
|---|---|---|
| 1:1 | Square profile pictures, social posts | 1080 × 1080 px |
| 4:3 | Most phone and compact-camera photos | 4032 × 3024 px |
| 3:2 | DSLR photos, 10 × 15 cm prints | 6000 × 4000 px |
| 16:9 | Screens, video, presentations | 1920 × 1080 px |
| 35:45 | 35 × 45 mm photos (a passport format used in many countries) | 413 × 531 px at 300 DPI |
If your image has the wrong shape for a form, crop it to the right ratio first, then resize it to the exact pixels.
What we cannot read: HEIC and AVIF sizes come from the file header and are shown as stored; some unusual files only show their byte size. For PDFs only the file size is checked.
Drop the image above. You see the exact number of bytes and the size in KB calculated both ways: 1 KB = 1000 bytes and 1 KB = 1024 bytes. If a form says “under 50 KB”, the safe reading is 50,000 bytes.
Windows Explorer divides by 1024 and rounds up, while macOS and most phones divide by 1000. A 51,200-byte photo is “50 KB” in Windows and “51.2 KB” on a Mac. Both are right; they just use different units.
The checker reads the width and height from the file header, exactly as stored. If the photo has a rotation flag (common with phone photos), you also see the size as it appears on screen, because some upload forms measure one and some the other.
DPI is an optional note in the file header. Screenshots, many web images and some phone photos have none, or just say 72. That is normal: DPI does not change the pixels, only the size a printer uses. Use Change Image DPI if a form asks for a specific value.
Width and height are divided by their greatest common divisor (300×200 becomes 3:2). We also show the closest common ratio such as 4:3, 16:9 or 35:45, and how far off it is in percent.
No. The file is read by your browser on your device; nothing is sent to a server. You can even disconnect from the internet after the page has loaded.
Get a photo under 20 KB, 50 KB, 100 KB or any limit — we check the result for you.
Change width and height in pixels or by percentage, with the aspect ratio locked.
Set JPG or PNG images to 300 DPI (or any value) without re-saving them — pixels and quality stay identical.
Crop to a free shape or exact ratios like 1:1, 4:5 and 16:9 with pixel precision.