Compress Image to an Exact KB Size
Government portals reject files over their KB cap. Pick a preset (or type any target), and this tool finds the highest JPEG quality that fits — entirely in your browser, nothing uploaded.
Drop an image here or click to browse
JPEG, PNG or WebP — processed entirely in your browser
US DS-160 / DS-260 visa photo
Common government limits
| Portal / form | Limit | Notes |
|---|---|---|
| US DS-160 / DS-260 (visa) | ≤ 240 KB | JPEG, min 600×600 px, square |
| India Passport Seva / e-visa | 20–50 KB typical | Varies by service; some accept up to 1 MB |
| Lithuania & several EU e-services | ≤ 120 KB | Digital document photos |
| Generic e-visa portals | ≤ 100 KB common | Check your form's stated limit |
Need the photo itself formatted first — exact crop, white background, correct head size? Make it free in the passport photo editor, then compress the download here if your portal has a tight cap.
Compressing photos for government forms — FAQ
Why do government portals have KB file-size limits?
Legacy application systems process millions of uploads and enforce hard caps to keep storage and processing predictable. The US DS-160/DS-260 visa forms cap photos at 240 KB, Indian government portals commonly require 20–50 KB (some accept up to 1 MB), and many EU e-services cap around 100–120 KB. Files over the cap are rejected outright, no matter how good the photo is.
Does compressing to a small KB size ruin photo quality?
Within reason, no. JPEG compression at 70–90% quality is visually near-lossless for a typical 600×600 passport photo. This tool binary-searches the highest JPEG quality that still fits under your target — and only downscales the pixel dimensions when quality reduction alone cannot reach a very small target like 20 KB.
Is my photo uploaded to a server?
No. The compression runs entirely in your browser using the HTML canvas — the photo never leaves your device. That is how the whole site works: no uploads, no accounts, no storage.
What target should I pick for the US DS-160 visa photo?
The DS-160 accepts JPEGs up to 240 KB, minimum 600×600 pixels. Use the 240 KB preset. If you also need the photo itself formatted (square crop, white background, head size), make it in the free editor first — it exports a compliant 600×600 digital photo — then compress here if needed.
What size do Indian government portals require?
It varies by service: many Passport Seva and e-visa flows ask for photos between 10 KB and 1 MB, with 20–50 KB being the safest range for older portals. Check your specific form, pick the matching preset, and keep the downloaded file name simple (no spaces or symbols) — some portals reject unusual file names too.