Compress JPEG to any target size - 100KB, 75KB, 50KB, even 20KB.
Pick a size, get a JPG under it. Tap 20KB, 50KB, 100KB or 200KB (or type your own limit) and the compressor finds the best quality that fits. Batch compress multiple photos at once. No upload, no signup, runs entirely in your browser.
Drop your images here
or browse files or paste from clipboard
How to compress JPG images online.
Upload your images
Drag JPG, PNG, or WebP files onto the upload area. Select multiple files for batch compression. On mobile, tap to browse your camera roll. You can also paste a screenshot from your clipboard with Ctrl+V (Cmd+V on Mac).
Choose a size or a quality
Have a hard limit like 50KB? Switch to By target size and tap the number. No limit, just want smaller files? Stay on By quality, where the default 80% cuts size by 40-70% with no visible difference. Each file shows its original size, compressed size, and savings as soon as it finishes.
Download compressed files
Click the download icon next to any individual file, or hit Download All to save every compressed JPG at once. Files save directly to your device - no server processing, no queue, no email required.
Who compresses JPG images and why.
Email attachments under the size limit
Gmail caps attachments at 25 MB. Ten uncompressed phone photos at 4 MB each blow past that limit instantly. Compressing at 80% quality drops each file to 800 KB-1.2 MB, bringing the batch to 8-12 MB total. The recipient sees no quality difference on screen, and the email actually delivers instead of bouncing.
Web page speed and Core Web Vitals
Uncompressed hero images are the top reason pages fail Google's Largest Contentful Paint threshold of 2.5 seconds. A 3.5 MB header photo at 80% quality becomes 700 KB-1 MB. On a 10 Mbps connection, that cuts load time from 2.8 seconds to under 0.8 seconds. Multiply by every image on the page and the performance gap is massive.
Social media upload requirements
Instagram re-compresses uploads above 1 MB at its own quality level, often introducing banding artifacts. Facebook caps photo uploads at 15 MB. Pre-compressing to 75-80% quality gives you control over the final output instead of letting the platform's aggressive encoder decide. The result looks sharper because you avoid double compression.
Storage savings on cloud and local drives
A year of phone photos at 12 MP generates roughly 15-20 GB of uncompressed JPGs. Batch compressing at 85% quality cuts that to 5-7 GB with no perceptible quality loss for on-screen viewing. That is 10-13 GB freed on iCloud, Google Drive, or a local SSD. For photographers archiving RAW exports, compressing the JPG previews alone recovers significant space.
Common upload limits, and what to pick.
Most people who need a JPG under a specific size are filling in an online form, not optimizing a website. Exam, job, and KYC portals check the file size on upload and reject anything a single byte over. These are the limits that come up most often:
| Document | Typical limit | Preset to use |
|---|---|---|
| Signature scan | 10-20 KB | 20KB |
| Passport-style photo | 20-50 KB | 50KB |
| ID proof, mark sheet page | up to 100 KB | 100KB |
| Certificates, caste or income proof | up to 200 KB | 200KB |
Bank and staff selection exam forms, for example, have asked for a 20-50 KB photo and a 10-20 KB signature for years, but the numbers change between notifications, so check the current one before you upload. When a range has a minimum as well as a maximum, pick the preset at the top of the range. A 50KB photo looks noticeably sharper than a 20KB one, and an image that is too blurry can still be rejected by the person verifying your form.
Some forms want the photo and signature merged into one image instead of two files. For that, the photo and signature joiner stacks both and lets you set a size limit on the combined JPG. If the form wants a PDF rather than a JPG, the JPG to PDF converter has its own max size setting for limits like 200KB or 500KB.
Why this compressor works differently.
Most online compressors upload your images to a remote server, process them on Linux with libjpeg or mozjpeg, and send the result back. That round trip takes 3-10 seconds per image, exposes your photos to a third party, and breaks if your connection drops mid-upload. This tool runs entirely in your browser's Canvas API. The compression starts the moment you drop a file - no upload, no wait, no server to trust.
Target size without the guesswork
JPEG file size does not move in a straight line with quality. Going from 90 to 80 might halve a file, while 60 to 50 saves only a few KB. That is why hunting for "just under 50KB" with a slider takes five or six tries. Target size mode runs that search for you: it tests the lowest acceptable quality first, and if even that is over the limit, it knows the image has too many pixels and scales it down before searching again. On a recent phone the whole search for one 12 MP photo finishes in a few seconds at most.
The quality slider is still there for when you care about how the image looks more than a fixed number. It recompresses every loaded image as you drag, so you can watch the size change and stop when it looks right.
Batch processing with per-file metrics
Each image shows its original size, compressed size, and percentage saved individually. The header bar shows total savings across all files. This matters when you are compressing 20 product photos for an e-commerce site and need to verify that each one stays under a target file size - for example, ensuring every image lands in the 50KB to 100KB range for fast page loads. If one image compresses poorly (heavy texture, fine detail), you spot it immediately. In target size mode, any file that had to be scaled down shows its new dimensions, and any file that still could not reach the limit gets a warning instead of a silent oversized download.
Multiple input formats, one output
Drop JPGs, PNGs, or WebPs and every file outputs as optimized JPEG. This works as a JPG to JPG compressor for reducing existing JPG file sizes, or as a format converter when you upload PNG or WebP images. How much a PNG shrinks depends on what is in it. Photos saved as PNG shrink the most: in our tests, a grainy 960x640 photo went from 1.0 MB to 106.6 KB at quality 80. Flat-color screenshots shrink far less, because PNG already stores plain areas efficiently. Our invoice-app screenshot went from 78.3 KB to 40.5 KB at the same quality, and small colored text lost some sharpness. WebP files from Chrome screenshots or modern cameras convert seamlessly. For the opposite direction - converting to lossless PNG - use the JPG to PNG converter. And when the goal is to get several screenshots into one file rather than shrink them one by one, the PNG merger joins them losslessly, so small UI text stays as sharp as it was in the originals. If you only need a format change at full resolution, the PNG to JPG converter shows the JPG size of every file at your chosen quality and warns when a screenshot would come out larger.
Understanding JPEG quality numbers
JPEG quality is not a linear percentage of visual fidelity. Quality 100 is not "perfect" - it still uses lossy DCT compression, just with minimal quantization. The perceptual sweet spot is 75-85, where file size drops 60-80% but the human eye cannot distinguish the output from the original at normal viewing distance. Below 50, compression artifacts become obvious: 8x8 block boundaries in gradients, color halos around text, and smeared fine detail. For a deeper look at format tradeoffs, see the JPG vs PNG vs WebP comparison.
If you were searching for JPEG mini
JPEGmini is a paid desktop app that shrinks photos while keeping them visually identical, and "jpg mini" searches usually want that same result. Here, quality 80-85 gets you most of the saving for free, in a browser. The difference is how the setting is chosen. JPEGmini analyses each photo and picks the lowest quality you will not notice. This tool uses the number you set, or in target size mode, the highest quality that fits your KB limit. So for a batch of holiday photos, 80-85% is a safe default. For a single hero image that has to look perfect, check the result at 100% zoom, where JPEG artifacts show up first around text and sharp edges.
Combining with other tools
Compression pairs well with resizing. If your source image is 4000x3000 but you only need 1200px wide for a blog post, resize it first and then compress. Resizing removes 75% of pixels before compression even starts, so the final file is dramatically smaller. For batch operations across dozens of product images, the bulk resize tool handles resizing at scale, and you can compress the results here. Need to send compressed photos as a document? The JPG to PDF converter accepts compressed JPGs directly.
Resize before compressing?
Shrink image dimensions first, then compress for the smallest possible file size.
Resize ImageConvert images to PDF?
Turn compressed JPG files into a multi-page PDF document for sharing or printing.
JPG to PDFFrequently asked questions.
How much can JPG compression reduce file size?
At the default 80% quality setting, most photos shrink by 40-70%. A 4 MB phone photo typically becomes 800 KB-1.2 MB. At 60% quality, the same file drops to 400-600 KB - a 5-8x reduction. Screenshots and graphics with flat colors compress even more aggressively, often hitting 80-90% savings because JPEG DCT encoding handles uniform blocks efficiently.
What does the quality slider actually control?
The slider sets the JPEG quantization level from 1 to 100. Higher values keep more DCT frequency coefficients, preserving fine detail and sharp edges. At 100, quantization is minimal and the file is near-lossless but only slightly smaller than the original. At 80, high-frequency detail (hair strands, fabric texture) gets rounded - invisible at screen size but measurable at 200% zoom. Below 50, mid-frequency data is quantized too, producing visible banding in gradients and halos around text.
Can I compress multiple images at once?
Yes. Drop or select any number of JPG, PNG, or WebP files and they all compress together. Each file shows its original size, compressed size, and percentage savings side by side. In target size mode every file gets its own quality setting, so a busy landscape and a plain document scan both land under the same 100KB limit even though they need very different compression. Download individually or use Download All to save every compressed JPG at once.
Is this lossy or lossless compression?
This tool uses lossy JPEG compression. It re-encodes images using the DCT algorithm, discarding high-frequency data based on the quality level you choose. Lossless JPEG compression exists (Huffman table optimization) but only saves 2-8% - not enough for most use cases. If you need lossless, PNG or WebP lossless are better formats. For reducing file size by 40-80%, lossy JPEG at 75-85% quality is the standard approach.
How do I compress images for email attachments?
Most email providers cap attachments at 20-25 MB total. Set quality to 75-80% to shrink photos below 1 MB each. A batch of 10 phone photos (4 MB each, 40 MB total) compresses to roughly 8-12 MB at 80% quality - well within Gmail, Outlook, and Yahoo limits. For very strict size requirements, drop quality to 60% and each photo lands around 400-600 KB.
What quality setting works best for web optimization?
Google recommends JPEG quality between 70-85 for web images. At 80%, a 1200px-wide hero image is typically 120-200 KB - fast enough to score well on Core Web Vitals. Product thumbnails at 400px width compress to 25-50 KB at 75% quality. Below 70%, compression artifacts become noticeable on retina displays. Test at 80% first, then lower only if page speed needs demand it.
Does this work on phones and tablets?
Yes. The compressor runs in any modern mobile browser - Safari on iOS 15+, Chrome and Firefox on Android. Tap the upload area to select photos from your camera roll or files app. The quality slider works with touch input. Processing happens on-device, so compression speed depends on your phone hardware. A typical 12 MP photo compresses in under 1 second on recent iPhones and Android flagships.
Are my images safe? Where does the compression happen?
Your images never leave your device. The entire compression runs in your browser using the Canvas API and JavaScript. No files are uploaded to any server. You can verify this by opening browser developer tools (F12), switching to the Network tab, and compressing an image - zero outgoing requests. Close the tab and everything is gone from memory.
Is there a maximum file size or resolution limit?
There is no hard limit enforced by the tool. The practical constraint is your browser memory. Chrome allocates roughly 4 GB to a tab, which handles images up to about 100 megapixels (e.g., 10000x10000). Most phone photos are 12-48 MP and compress without issue. If you hit memory limits with very large files, try compressing fewer images at a time or use the resize tool to scale down first.
How to compress JPEG to 20KB, 50KB, 100KB, or 200KB?
Switch the tool to "By target size", then tap one of the presets (10KB, 20KB, 50KB, 100KB, 200KB, 500KB, 1MB) or type any number into the Max size box. The compressor tries quality levels for you, keeps the highest one that fits, and shows the final size next to each file. You no longer have to drag a slider and guess. Screenshots and smaller images often fit at their original size. A 12 MP phone photo does not, since even at low quality it takes close to 1 MB, so leave "Shrink dimensions if needed" ticked and the tool scales the image down only as far as the target requires. Files that are already a JPG under your limit are passed through untouched instead of being re-compressed.
Can I compress a 2MB or 5MB photo down to 100KB or less?
Yes, but quality alone will not get you there without wrecking the image. A 2 MB photo is usually 4000x3000 pixels, and even at the lowest JPEG quality that many pixels takes more than 100KB, with heavy blocking on top. That is why target size mode reduces dimensions when it has to. For a 100KB limit a typical 12 MP photo ends up roughly 850-1,100 pixels wide at a clean mid-range quality, rather than full size with smeared blocks. Busy scenes like foliage or crowds land at the smaller end, plain backgrounds at the larger end. A 5 MB photo follows the same path. If your form asks for exact pixel dimensions as well as a file size, set those first with the resize tool, then untick "Shrink dimensions if needed" here so the size you chose is kept.
How to make a JPG less than 100KB for form uploads?
Choose target size mode, pick 100KB, and download. The tool aims slightly under the limit because upload portals disagree on what a kilobyte is. Some count 1KB as 1,024 bytes and some as 1,000, so a file the tool reports as 100.0 KB could still be rejected. Targets here are measured in 1,000-byte kilobytes, which passes both checks. If the form also says "under 100KB but above 20KB", do not pick a tiny target to be safe. A badly over-compressed ID photo can fail a manual review for being blurry even though the size is fine.
How do I convert an image to exactly 50KB or 20KB?
Drop the image in, whether it is a PNG screenshot, a WebP from WhatsApp or Chrome, or a JPEG straight from your camera. Every format comes out as a JPG, so "image to JPG 50KB", "photo to JPG 20KB" and "JPEG to JPG 50KB" are all the same job here. Select By target size and tap 50KB or 20KB. You will get a file just under the number rather than exactly on it, since JPEG size moves in steps as quality changes. If your source is several MB, this is effectively an MB to KB conversion: a 3 MB photo to 50KB usually means scaling to roughly 600-800 pixels wide, which the tool does automatically when resizing is allowed. That is still more than most forms display, since a passport-style photo box is rarely over 300 pixels wide.