Your images are processed in your browser — Cloud HD (Pro, opt-in) is the only exception

Compress image to 240KB

240 KB is the ceiling on a US visa photo and the top of the Pakistan and Bangladesh passport bands. Not 250. Not 200. The exact number matters here.

Drop a photo below. The tool aims at 240,000 bytes or under, in JPEG, and nothing leaves your browser.

Free, no signupWorks offlineNo upload, ever
📸
Drop an image to startTap to choose an image
PNG, JPG, WebP, AVIF, HEIC, BMP, SVG, GIF, TIFF
Target size · 240 KB
Pro tools Pro
Platform
Pro
Presets limit your photo’s longest side and keep its shape — nothing is cropped, so the result matches the named size only when your photo already has that shape.
ProUnlocks one-click platform presets for Instagram, LinkedIn, X, YouTube, WhatsApp, and more.See Pro plans
Responsive set
Pro
Also export as
Pro
Your Format choice is always saved. These add more copies of the same image — one per format, at each width you tick above and only at those widths — bundled in a single ZIP. Tick no width and the extra formats come at your original size.
With Pro, 1 image → up to 17 files · A width larger than your original is never upscaled, so those collapse into one file.
ProPro unlocks responsive image sets and multi-format export, packaged in a single ZIP.See Pro plans
Rename pattern
Pro
Saved presets
Pro
ProPro unlocks saved presets — bundle your responsive set, format, watermark, codec and rename template into one named profile you apply with a single click.See Pro plans
Free foreverOffline-readyImages never uploaded
Why MiniPx

Built for people who care how images travel.

100%On-device
This compressor never uploads.
Every byte processed in your browser. No copy, no trace. Cloud HD — the Pro-only option on 7 AI tools — is the one exception on the site.
50–90%Smaller
Honest compression.
Multi-pass encoding that respects your image. No silent quality cliffs.
5Files per batch
No quota. No credits. No watermark.
Five files a batch on the free tier, unlimited batches — Pro lifts the cap. Your device is the only real ceiling for compression, because your device does the work; only Pro Cloud HD runs are metered.
8Formats
Native to every modern format.
PNG · JPG · WebP · AVIF · BMP · SVG · GIF · TIFF
MiniPx
Settings
Mode
Format
Compression
Custom quality
65%
TinyMax
Max width
Privacy
EXIF data always removed
Every output drops GPS location, device info & timestamps
More tools
Everything stays on your device.
Runs in
Your browser, on your device
Upload
None — nothing is uploaded
Signup
Not needed
Watermark
None added by MiniPx
Limits
No quota. Batch tools take 5 files at a time on Free; Pro lifts the cap
Output
A file saved straight from your browser

Compress Image to 240KB — Free, Fast & Private

Three travel documents share this number. The US visa photo uploaded with the DS-160 must be 240 KB or less. The Pakistan passport and the Bangladesh e-passport both set a band of 40–240 KB. If you landed on a 250 KB compressor, that extra 10 KB is precisely the margin these forms do not give you.

What fits in 240 KB — measured on this page

We dropped five real files on the compressor above and kept what it handed back. 5 of 5 came out under 240 KB.

Measured results for 240 KB
FileBeforeAfter, on this pageUnder 240 KB?
12 MP phone photo4032 × 3024 px · 3.73 MB4032 × 3024 px · 161.7 KBYes
Portrait / headshot3264 × 4653 px · 2.25 MB3264 × 4653 px · 183.7 KBYes
Scanned handwritten page3349 × 4281 px · 2.17 MB3349 × 4281 px · 233.5 KBYes
Scanned signature2041 × 617 px · 109.1 KB2041 × 617 px · 102.1 KBYes
Screenshot (PNG)1280 × 800 px · 88.1 KB1280 × 800 px · 108.8 KB — larger than the original (PNG made into JPG)Yes

Measured 2026-10-06 in Chromium 145.0.7632.6 with this page’s own settings. The photos are public-domain and CC0 files from Wikimedia Commons; the screenshot is our own. Sizes read as the tool shows them (1 KB = 1,024 bytes); the target itself is 240,000 bytes, which is under 240 KB on either reading.

DocumentFile sizePixelsPrinted size
US visa (DS-160)240 KB or less600 × 6002×2 in at 300 DPI
Pakistan passport40–240 KB413 × 53135×45 mm at 300 DPI
Bangladesh e-passport40–240 KB531 × 65045×55 mm at 300 DPI

The US visa and the US passport are two different rules

The 240 KB ceiling belongs to the visa route. The State Department’s guidance, as MiniPx records it: “DS-160 accepts 600x600 to 1200x1200 px and 240 KB or less, with no minimum size.” No minimum, so for the DS-160 the only file-size question is whether you are under the ceiling.

The online passport renewal upload is a separate route with a separate band: 54 KB to 10 MB. That band has a floor, and a photo squeezed for the visa form can fall under it. If you are renewing a US passport rather than applying for a visa, you do not need this page at all — and an aggressively compressed file can be the reason the renewal upload refuses it. The US photo maker lets you pick the route and checks the file against that route’s band.

Bytes per pixel, document by document

The three documents set the same ceiling on photos of different sizes, so 240 KB means a different amount of room in each. Divide 240,000 bytes by the pixel count:

  • US visa: 600 × 600 = 360,000 pixels, so about 0.67 bytes per pixel.
  • Pakistan passport: 413 × 531 = 219,303 pixels, so about 1.09 bytes per pixel.
  • Bangladesh e-passport: 531 × 650 = 345,150 pixels, so about 0.70 bytes per pixel.

An uncompressed colour pixel takes 3 bytes, so every one of those is a real JPEG budget but a comfortable one: at the documents’ own pixel sizes, 240 KB leaves room for a well-compressed face with its detail intact. The ceiling becomes hard only when the file has far more pixels than the document asks for — which is exactly what a photo straight off a phone has. Crop and size the photo to the document first and the 240 KB ceiling often stops being the obstacle.

Three shapes, so crop before you compress

The three documents do not even share a shape. The US photo is square: 600 ÷ 600 = 1.00. Pakistan’s is 413 ÷ 531 ≈ 0.78, and Bangladesh’s 531 ÷ 650 ≈ 0.82 — both portrait, Bangladesh’s slightly wider. One photo cropped once will not serve all three.

So crop to the shape of the document you are applying for, then resize to its pixel size, then compress here. Doing it in that order means the 240,000-byte budget is spent on the face rather than on the room behind it, and the compressor is less likely to need to reduce the pixels at all. Doing it the other way round — compress a full phone photo to 240 KB, then crop — re-encodes the JPEG a second time and stacks one set of compression damage on another.

The 40 KB floor for Pakistan and Bangladesh

Pakistan and Bangladesh set a minimum as well. MiniPx reads it strictly, counting 1 KB as 1,024 bytes: 40 × 1,024 = 40,960 bytes. On the Pakistan photo that floor works out at 40,960 ÷ 219,303 ≈ 0.19 bytes per pixel; on the larger Bangladesh photo, 0.12. Below that, the photo has been compressed harder than these offices want.

This compressor works downward only. It lowers JPEG quality first, at full size; if the lowest quality still misses 240 KB it reduces the pixel dimensions, and tells you so with the new size. It never pads a file up to reach a minimum, and a JPEG that already measures 240,000 bytes or less keeps its picture data (only metadata is removed). So it cannot rescue a photo that is already under 40 KB. For that, go back to the original camera file, or use the Pakistan passport photo maker or the Bangladesh e-passport photo maker, which size the photo to the document and check the file against both ends of the band.

Size is only one of the checks

Each office also checks the photograph itself, and none of those checks is about bytes. For Pakistan, MiniPx records: Plain white background. Recent photo with neutral expression. Both ears visible (women in hijab exempt). For Machine-Readable Passport (MRP) and e-passport applications. For Bangladesh: Plain white background. Coloured photo taken within last 6 months. No smile, mouth closed, eyes open. For e-passport (epassport.gov.bd) applications. For the US: Photo must be taken within the last 6 months. Pure white background. No head coverings except religious. The visa and passport routes publish different file-size rules — pick the one you are applying for.

Compression cannot whiten a background, open a pair of eyes or make an old photo recent. Get those right in the photograph, then bring the file under 240 KB. And treat the size shown next to your result as what it is — a measurement of the file. Whether an office accepts the photo is its decision, not the tool’s.

If an upload is refused for size, read the number next to your result before changing anything. Over 240,000 bytes means the file needs another pass here. Under 40,960 bytes, for Pakistan or Bangladesh, means it needs more detail, not less — and that only comes from the original photo.

Everything on this page runs in your browser; your photo is never uploaded to a server. For neighbouring targets see the 200KB and 250KB pages, or the passport photo maker for other countries.

How it works

  1. Pick the right route: US visa (DS-160) is 240 KB or less; US passport renewal is a different band. Pakistan and Bangladesh passports are 40–240 KB.
  2. Crop to the document size: US visa 600 x 600, Pakistan 413 x 531, Bangladesh 531 x 650 pixels. Fewer pixels leave more bytes for the face.
  3. Drop it into the compressor: It lowers JPEG quality first and reduces the dimensions only if that is not enough, showing you the new size when it does.
  4. Check the size it reports: At or under 240KB is the ceiling. For Pakistan and Bangladesh also confirm the file is over 40KB.
  5. Download and upload: Save the JPEG and attach it to your application.

Frequently asked questions

Photo ko 240 KB me kaise kare?
Use the compressor at the top of this page: it is already set to a 240 KB target. Drop your photo in, let it compress, and check the size shown next to the result before you download. If it is still too big, lower the quality or the width and run it again.
What is the US visa photo file size limit?
For the DS-160 visa upload MiniPx records 240 KB or less, at 600 x 600 pixels or larger, with no minimum file size.
Is the 240KB limit also for US passport renewal?
No. The online passport renewal upload publishes its own band, 54KB to 10MB. A photo compressed for the visa form can fall under that floor.
What size should a Pakistan or Bangladesh passport photo file be?
Both are 40–240 KB. Pakistan's photo is 413 x 531 pixels and Bangladesh's e-passport photo is 531 x 650.
Can I just use the 250KB compressor instead?
Not safely. A file between 240,000 and 250,000 bytes passes the 250KB page and fails a 240KB ceiling. Use this page for these three documents.
My photo came out under 40KB. What now?
For Pakistan or Bangladesh that is under the 40KB minimum. This tool never pads a file up to a minimum, so start from the original camera file or use that country's photo maker, which checks both ends.
Is my passport photo uploaded to MiniPx?
No. Compression runs in your browser and the photo never reaches a server.

All Image Tools

AI Tools

Compress for Platform

Solutions by use case