This compressor resizes and re-encodes images with the Canvas API in the current browser tab. FlashKit never receives the files. The walkthrough to compress an image to 20 KB, 50 KB or 100 KB matches the Target Size buttons here — 10 KB, 20 KB, 50 KB, 100 KB, 200 KB, or 500 KB — so you do not have to guess a quality slider. A “KB” here is 1,000 bytes, the count most government portals use. The tool keeps JPEG/WebP quality at a sensible floor (about 55%), then shrinks dimensions, and only goes lower if an exact box still will not fit.
Form photo presets match published upload specs. Passport Photo is 630×810 pixels per the Passport Seva ICAO guideline. A separate print preset is 35×45 mm at 300 DPI (413×531 px) with that DPI written into the JPEG. PAN Photo is 2.5×3.5 cm portrait at 200 DPI (about 197×276 px), max 20 KB, per Protean Form 49A — picking it also sets the 20 KB target. PAN Signature is 4.5×2 cm at 200 DPI (about 354×157 px), max 10 KB. US Visa Photo is 600×600 px. Presets centre-crop. Custom sizes fit inside the box unless you tick centre-crop.
Quality mode is still available: set JPEG or WebP quality yourself (floor 50%) and pick an output format. If the re-encode would be larger than the original, the tool keeps the original and says so. PNG output skips the quality step and binary-searches scale. JPEG outputs write JFIF density only when you chose mm/cm or a preset that names a DPI — a pixel-only passport is not stamped 300 DPI.
Drop JPG, PNG, WebP, or iPhone HEIC. HEIC is decoded in this tab only after you pick a HEIC file; the decoder is not preloaded. If Chrome cannot decode it, you get a clear error instead of a silent “Failed”. Each row shows original and compressed size, pixel dimensions, and whether the file is within the target. Download one file or a ZIP. Closing the tab drops the bytes from memory.
Pair this page with PDF to JPG if you started from a scan, JPG to PDF if you need a packet under a whole-file limit, and the EXIF/GPS stripper before you upload an ID photo to a government portal. Pixel and millimetre boxes such as 35×45 mm or 630×810 belong on the image resizer; this page’s job is the kilobyte cap. Related guides cover 20/50/100 KB form uploads, 100 KB vs 50 KB, signatures to 10 KB, and PAN photo size.
How to compress to a target size
- Drop one or more JPG, PNG, WebP, or HEIC files. Processing stays in this tab. Nothing is uploaded to FlashKit.
- Switch to Target Size mode and pick 10 KB, 20 KB, 50 KB, 100 KB, 200 KB, or 500 KB, or type a custom KB value.
- Optionally enable Resize. Custom sizes fit (no stretch). Presets and an explicit centre-crop tick crop. PAN presets also set 20 KB or 10 KB.
- Wait for the queue. Check “within target” and the resized W×H note, then download a file or a ZIP.
- Change files to start over. Closing the tab drops the images from memory.
Key Features
- Target size mode: 10, 20, 50, 100, 200, or 500 KB (1 KB = 1,000 bytes)
- Form photo presets: Passport 630×810, 35×45 mm at 300 DPI, PAN 20 KB / 10 KB, US Visa 600×600
- Fit without stretching; centre-crop only when chosen; JFIF DPI only for mm/cm or named-DPI presets
- HEIC decoded on demand; larger re-encodes keep the original
- Client-side Canvas encode and ZIP download — files stay on your device
How to compress a photo to 20 KB, 50 KB or 100 KB
- Drop a JPG, PNG, WebP, or HEIC. Switch to Target Size and press 20 KB, 50 KB, or 100 KB (10 KB is there for PAN signatures). 1 KB = 1,000 bytes.
- Wait for the row. Check “within target” and the resized W×H note. Download that file, or a ZIP if you queued several.
- If the row shows the closest size above the cap, crop tighter, pick JPEG instead of PNG, or raise the target. Quality stays usable while dimensions shrink first.
- Need 35×45 mm or 630×810 px rather than a kilobyte cap? Use the image resizer, then optionally keep under N KB here.
What stays in the browser
- Images are decoded and re-encoded with the Canvas API in this tab. Bytes are not posted to a FlashKit server.
- Object URLs for previews are revoked when you remove a file or leave the page.
- A closed or crashed tab drops the in-memory copy. Download before you leave.
- Very large 12 MP phone photos can take a few seconds and use RAM. Compress a few at a time on mobile.
- Other FlashKit tools (SEO audit, social downloaders, fetch-based network tools) do use the network after a notice.
Target size versus quality mode
- Target Size is the main flow when a form says “under 20 KB”, “max 10 KB”, or “max 100 KB.” Quality mode is for when you only care how the photo looks.
- JPEG and WebP keep quality at about 55% or higher, then shrink width and height. Quality only drops lower if an exact box (PAN 10 KB) still will not fit. PNG searches scale only.
- If the smallest usable result still exceeds the target, the row shows “exceeds target.” Crop tighter or raise the limit. If a re-encode would grow the file, the original is kept.
- A 12 MP photo at 100 KB is mostly a dimension search at a usable quality, not a 10% smear of the full frame.
- Related guides: cm/mm at the right DPI, 100 KB vs 50 KB, signature to 10 KB, HEIC to JPG, plus the older 20/50/100 KB and PAN posts.
Presets, DPI, and related tools
- Passport digital upload is 630×810 px. Do not stamp 300 DPI on that preset — the portal wants pixels. For a 35×45 mm print at 300 DPI use the print preset (413×531) or type 35×45 mm.
- PAN photo is portrait 2.5×3.5 cm at 200 DPI and sets a 20 KB target. PAN signature is landscape 4.5×2 cm at 200 DPI and sets 10 KB. JFIF density is written only for mm/cm or a preset that names a DPI.
- US Visa Photo is 600×600 px square. Presets centre-crop; custom boxes fit unless you tick centre-crop.
- Strip EXIF/GPS before you upload an ID photo. Convert a scan with PDF to JPG, then compress here. HEIC from an iPhone is decoded in this tab only when you pick that file.
- Need exact dimensions? Use the Image Resizer for px, %, cm, mm or inches first, then optionally keep under a KB cap.
- Related tools: PDF to JPG, EXIF/GPS stripper, Transparent Image Maker, Image Resizer.
Frequently Asked Questions
How do I compress an image to 20 KB, 50 KB or 100 KB?
Switch to Target Size and press 20 KB, 50 KB, or 100 KB (10 KB is there for PAN signatures). The output is at or under N × 1,000 bytes when the photo can fit. Quality stays at a usable floor while dimensions shrink; an exact PAN 10 KB or 20 KB box may still need a lower quality.
Are images uploaded to FlashKit?
No. Compression runs in your browser. The image never leaves your device. Close the tab to drop it from memory.
What if my photo cannot reach 20 KB?
Very complex or already-tiny images may not compress below a floor. The tool shows the smallest usable result. Crop tighter, pick JPEG instead of PNG, or raise the target. There is no server quota, but very large images can freeze a low-memory phone — compress a few at a time.
What are the Passport and PAN presets?
Passport Photo is 630×810 px per the Passport Seva ICAO guideline. The print preset is 35×45 mm at 300 DPI (413×531). PAN Photo is 2.5×3.5 cm at 200 DPI (max 20 KB). PAN Signature is 4.5×2 cm at 200 DPI (max 10 KB) per Protean Form 49A.
Does it accept iPhone HEIC?
Yes. HEIC/HEIF is decoded in this tab only after you pick the file. The decoder is not preloaded. If the browser cannot decode it, you get a clear error instead of a silent failure.
Does PNG use the quality slider?
No. PNG is lossless. In target mode the tool binary-searches scale only (12 iterations) and hides the Q% label. Use JPEG or WebP if you need a small photo without shrinking so far.