Compress image to 20 KB online
Squeeze a photo under 20 KB for strict upload limits. Nothing is uploaded; it all happens in your browser.
- Never uploaded
- No sign-up
- No watermark
- Unlimited
- Works offline
Drag and drop your photos or a folder. or
Up to 100 MB each
Your photos never leave your device. Read the privacy policy.
Output size
Output: JPG
Need to compress more?
or drop files hereHow to compress an image
Choose your photos
Drag and drop your photos, select a folder, or browse files directly from your computer or phone.
Pick a size, or let us choose
Keep the default Smart mode for balanced quality, or pick a target size like 20 KB, 50 KB, 100 KB, or 200 KB.
Compare and download
Slide to compare before and after on your photo, then download your compressed image or save all files in a ZIP.
Smaller in seconds
Smart mode trims file size while keeping details sharp. It runs on your device, so results take seconds.
Fit any upload limit
Pick 20, 50, 100 or 200 KB to meet strict upload limits. The result is never larger than your original.
Private by design
Your photos stay on your device and location data is removed. Once loaded, it even works offline.
What is Image Compressor?
This tool optimizes graphics and photographs down to a 20 kilobyte threshold directly inside your client session. It runs an automated search across lossy JPEG encoding levels to find the highest possible visual clarity that meets strict portal upload caps. No data leaves your computer during the entire conversion sequence.
What happens to your photo
Four-step on-device pipeline from intake to final encoding without server roundtrips.
Read
Opens your photo safely and straightens its rotation.
Search
Tries sizes until it finds the smallest one that still looks sharp.
Save
Saves it in the best format, with no metadata attached.
Check
Keeps your original if the new file would be bigger.
Private by design
Photos never leave your device. Nothing is uploaded.
Runs in the background
Compression runs in the background, so the page stays fast.
Big photos welcome
Handles camera originals up to 100 MB each without freezing.
Metadata removed
Location and camera details are removed from every photo.
Smart or exact
Let Smart decide, or aim for an exact size in KB.
Batch and ZIP
Drop a whole folder and download everything as one ZIP.
Read the full guide
Why twenty kilobytes feels impossibly small on modern screens
Encountering an upload restriction capped at twenty kilobytes often shocks anyone accustomed toward contemporary mobile photography. Smartphone cameras casually capture multi-megabyte pictures packed with millions of subtle hue nuances, rich lens depth, and dense geographic tags. When government intake gates, university registration screens, or employment portals reject submissions exceeding 20 KB, they demand drastic digital dieting. That tiny boundary represents roughly 20,000 bytes (or exactly 20,480 binary units) of storage space, leaving virtually zero allowance for superfluous payload packets.
Every raw photograph contains immense structural baggage. Uncompressed raster bitmaps allocate three distinct color channels per coordinate, meaning even a modest headshot would instantly overwhelm small ceilings lacking sophisticated mathematical compaction. Reaching such a minuscule quota requires aggressive data reduction, shedding redundant color gradations while defending essential structural edges. Understanding how byte allocations work transforms stressful rejection notices, yielding an orderly editing chore.
Pixel dimensions that realistically fit into a tiny envelope
Attempting to squeeze a four-thousand-pixel canvas into a tiny storage envelope yields illegible visual mush. Discrete cosine transform encoders discard high-frequency detail when subjected to suffocating quotas, turning human faces into blurry mosaic tiles. Success begins by establishing reasonable frame geometry before asking algorithms to compress anything.
For square avatar portraits, dimensions between 200x200 and 280x280 pixels furnish sufficient clarity for official identity verification while sliding smoothly beneath quota boundaries. Rectangular badges or vertical identity cards survive comfortably around 240x320 or 300x380 resolution. At those proportions, lossy compression preserves eye pupils, eyebrow arches, and mouth contours, avoiding muddy halo artifacts. Standard chroma subsampling schemes (like YUV 4:2:0) further discard imperceptible chrominance details while keeping black-and-white luminance transitions sharp. If an intake form offers slightly broader headroom, navigating to our compress image to 50 KB utility affords delicate textures extra breathing space.
Signatures and portraits: which graphics survive severe compression
Different graphic categories behave quite distinctly under severe byte constraints:
- Monochromatic ink signatures endure heavy reduction splendidly because dark pen strokes contrast against uniform white paper, compressing with remarkable mathematical efficiency.
- Studio portraits framed against flat neutral backdrops compress cleanly since smooth monochrome backdrops demand minimal frequency coefficients.
- Outdoor snapshots featuring rustling tree foliage, gravel paths, or textured woolen sweaters struggle severely because random surface textures swallow valuable byte allocations.
- Scanned thumbprints and official rubber seals maintain vital ridge clarity whenever users clip away surrounding document borders beforehand.
Whenever bureaucratic paperwork mandates compliance, eliminating background noise guarantees sharp reproduction inside microscopic storage footprints.
The reliable workflow: crop excess edges before setting your target
The single most potent tactic for satisfying a 20 KB cap involves snipping away non-essential canvas territory prior to initiating conversion. When an administrative portal requests an applicant picture, avoid submitting an expansive shot displaying wide shoulders, ornamental wallpaper, or distant architecture. Snip the framing tightly around your jawline, ears, and hair crest.
Cropping discards unnecessary spatial data prior to quantization. This elementary preparatory step empowers the JPEG encoder to dedicate its scarce quota exclusively toward vital facial markers rather than irrelevant room decor. Once neatly trimmed, drop your visual asset onto the workspace where the 20 KB size is already selected for you. The engine immediately commences iterative calibration, skipping awkward trial-and-error delays.
How local binary search finds your optimal quality level
Our processing engine avoids arbitrary guesswork and clumsy static tables. Instead, it executes an automated binary search routine directly within client machine memory. The algorithm tests lossy encoding levels spanning high fidelity (quality index 0.95) down to aggressive compaction (quality index 0.10), measuring generated file weights after each calculation pass. Up to eight successive probing rounds pinpoint the peak visual balance.
Because JPEG compression operates lossily, adjusting quantization tables directly governs byte volume. The search mechanism approves any candidate output landing within approximately 3 percent below your chosen target threshold, accepting results between 19.4 KB and 20.0 KB as optimal matches. Furthermore, our tool never outputs an enlarged result; should an inputted graphic already rest below target capacity, it retains original bytes unchanged and states so visibly. Because calculations execute entirely inside client browser tabs via WebAssembly, personal identity information remains strictly confidential under our transparent privacy policy. By default, hidden metadata segments containing camera serial numbers, color space ICC tags, or sensitive GPS coordinates get scrubbed completely.
Steps to take when an asset cannot reach twenty kilobytes
Certain pictures possess excessive visual complexity or gigantic pixel widths that prevent hitting this threshold solely through lossy quantization. Whenever the encoder dials quality down to absolute baseline floors (around ten percent) and the resulting artifact still overshoots target capacity, it methodically scales canvas dimensions downward by fifteen percent steps per round.
Should downscaling hit twenty-five percent of initial canvas geometry before slipping beneath quota boundaries, the engine halts safely. It presents the closest achieved size accompanied by an honest notification rather than outputting mangled static. When facing this boundary, utilize several practical remedies. Use standard JPEG compression, which this page selects automatically, avoiding lossless alternatives like PNG which achieve byte targets strictly through severe dimension downsizing and report clear warnings when targets prove unreachable. Alternatively, convert colored paperwork to grayscale format to discard two entire color matrices, or explore modern alternatives via WebP compression whenever destination platforms accept contemporary formats. Note that advanced formats such as AVIF take substantially longer to transcode and remain unsupported across older legacy web browsers. Following these pragmatic measures ensures compliance across demanding intake systems without compromising document authenticity.
How it compares
How Image Compressor compares with server-based tools and desktop software.
| Question | Glowpixel Labs | Upload-based compressors | Desktop editors |
|---|---|---|---|
| Photos leave your device | Never, processed locally in your browser | Yes, uploaded to remote cloud servers | No, processed on your local machine |
| Daily limits | None, compress as many files as needed | Common daily quotas or queue throttles | None |
| Target file size mode | Built in with automatic binary search | Rare or locked behind paid subscriptions | Rare, usually requires manual trial and error |
| Batch and ZIP | Built in for up to 200 files per batch | Often limited to a few files on free tiers | Built in, but requires manual folder export |
| Formats | JPG, PNG, WebP, and AVIF | Usually JPG and PNG, sometimes WebP | Varies, wide format support depending on program |
| Price | Free | Freemium with subscriptions or file credits | Paid license or free open-source software |
| Works offline after load | Yes, all compression logic runs in the browser | No, requires continuous internet connection | Yes, desktop software runs offline |
Who uses it
Built for photographers, designers, developers, and privacy-conscious teams.
People with form-upload limits
Portals for job applications, passports, tax forms, and school registrations often enforce hard size limits such as 100 KB. Target size mode finds the right balance automatically without manual guessing.
Site owners
Webmasters and developers can reduce image payload weights across their pages to boost Core Web Vitals, speed up render times, and reduce hosting bandwidth costs.
Photographers and sellers
E-commerce sellers and photographers can batch-compress full product catalogs or photo shoots at once, strip private EXIF data, and download everything in one organized ZIP archive.
Discover more
Preset sizes and formats
- Add Caption to Image Online Free: Top & Bottom Text
- Add Logo Watermark to Photo Online Free
- Add Text to Photo Online: Free Text Overlay Tool
- Add Text Watermark to Photo Online Free
- App Icon Generator for Web & Mobile PWAs
- Apple Touch Icon Generator Online Free
- Extract Arabic Text from an Image
- Convert AVIF to JPG
- Convert AVIF to PNG
- Convert Photo to Black and White
- Blur Face in Photo Free
- Blur License Plate in Car Photos
- Brighten Image Online: Lighten Dark Photos
- Censor Part of an Image Free
- Change Image Background to White
- Image Color Picker Online with Eyedropper
- Combine Photos Side by Side Online Free
- Compress AVIF
- Compress to 100KB
- Compress to 1MB
- Compress to 200KB
- Compress to 20KB
- Compress to 500KB
- Compress to 50KB
- Compress JPG
- Compress PNG
- Compress WEBP
- Convert Receipt to PDF
- Crop Image to 16:9 Widescreen
- Crop Image to 9:16 Vertical Ratio
- Crop Image to Circle Online Free
- Crop Image to Square
- Enlarge Images Without Losing Quality
- Extract Colors from Image Free
- Extract Text from an Image On Device
- Flip Image Horizontally or Vertically
- French Image to Text OCR
- Glow Effect Photo Editor
- Convert HEIC to JPG
- Convert HEIC to PDF
- Convert HEIC to PNG
- Convert HEIC to WebP
- Find Hex Code from Image Free
- Image Color Palette Generator Free
- Improve Image Quality Online with AI
- Increase Image Contrast
- Increase Image Resolution Online with AI
- Free Instagram Grid Splitter: 3x3 & 3x1 Tiles
- Convert JPG to ICO Favicon
- Convert JPG to PDF
- Convert JPG to PNG
- Convert JPG Photos to Editable Text
- Convert JPG to WebP
- Make a Meme Online Free: Custom Meme Maker
- Make Image Background Transparent in Browser
- Meme Caption Maker: Heavy Impact Typography
- Merge Images into PDF
- Passport Photo Background Remover Privately
- Free Photo Collage Maker: Multi-Photo Layouts
- Photo Filters Online: 8 One-Tap Looks
- Photo to Pencil Drawing: Realistic Sketch Filter
- Photo to Sketch Converter
- Pixel Art Converter: 8-Bit Retro Art
- Pixelate Image Online Free
- Convert PNG to AVIF
- Convert PNG to ICO Online Free
- Convert PNG to JPG
- Convert PNG to PDF
- Convert PNG to WebP
- Pop Art Photo Filter: Andy Warhol Style
- Product Photo Background Remover & Touch-up
- Remove Background from Image Online Privately
- Remove EXIF Data from JPG Files
- Remove EXIF and Metadata from PNG
- Remove GPS Location from Photos
- Remove Metadata from an Image
- Remove White Background from Images Privately
- Resize Image for Facebook Cover
- Resize Image for Instagram Feed
- Resize Image for Instagram Story
- Resize Image for YouTube Thumbnail
- Resize images by exact pixels
- Resize images to passport photo size
- Rotate Image Left or Right
- Turn a Scanned Image into Text
- Convert a Screenshot to Text Privately
- Sharpen Image Online: Fix Blurry Photos
- Spanish Image to Text OCR
- Split Image into Parts Online: Slices & Tiles
- Tiled Watermark on Image Online Free
- Upscale Images 4x with On-Device AI Super-Resolution
- View EXIF Data in a Photo
- Watermark Multiple Images in Batch
- Convert WebP to JPG
- Convert WebP to PDF
- Convert WebP to PNG
Upcoming image tools
Questions, answered
Common questions about formats, privacy, performance, and offline capabilities.
Why do so many submission portals enforce a strict 20 KB limit?
Legacy intake databases and strict application forms often restrict file payloads to save storage bandwidth and prevent server timeouts. A tiny twenty kilobyte cap forces submitters to trim away excess resolution, camera metadata, and background clutter before submitting records.
Will my scanned signature remain readable at 20 KB?
Yes, provided you crop tightly around the ink lines prior to conversion. Signatures contain minimal color variation, so converting them to grayscale or tightly cropping excess paper margins allows the algorithm to preserve stroke sharpness without exceeding the cap.
What happens if the encoder cannot hit 20 KB?
When an image contains too many complex details or wide pixel dimensions, even low compression quality cannot drop below twenty kilobytes. In that scenario, our tool stops safely at a floor dimension, alerts you plainly, and retains the closest reached size.
Are personal identity cards and documents kept private here?
Every step executes locally within your browser tab via client-side WebAssembly scripts. Your files never travel across the internet to an external server, and tracking metadata like camera models or GPS tags is stripped automatically for your security.
Can I use PNG instead of JPEG for a 20 KB target?
PNG uses lossless encoding, meaning it cannot lower visual quality to shrink file weight. To hit twenty kilobytes with PNG, the engine must scale pixel dimensions down significantly, whereas JPEG searches quality levels while keeping larger canvas dimensions intact.
Related tools
Complementary image tools running 100% in your browser.
Last updated:
