Image compressor · JPEG Compress JPEG: smaller JPG files, same format
When a form, an email or a CMS wants JPG and a smaller file, this page keeps the format and re-encodes at the quality you choose, or finds the highest quality that fits a target size in KB. Compare the result side by side before you download.
- Stays on your device
- Quality or target KB
- Batch and ZIP download
Compress JPG images
Output is JPEG at quality 75 and the original size. Tick the target size to aim for a limit in KB, or type a max width for a bigger saving.
Saved to My tools
Open the free tools page next time and it is right at the top under My tools (stored in this browser only).
You can also press Ctrl+D to bookmark this page in your browser.You can also press ⌘+D to bookmark this page in your browser.You can also tap your browser’s Share button (at the bottom in Safari) and choose Add Bookmark or Add to Home Screen.You can also open the ⋮ menu at the top right and tap ☆ to bookmark it, or choose Add to Home screen.You can also tap ··· at the top right and choose Favorite, or open it in your browser and bookmark it there.
View My tools75 is a common web setting for photos; 85–90 for prints and detailed images.
Lowers quality step by step until the file fits. Works for WebP, JPEG and AVIF.
JPEG has no transparency, so transparent areas are filled with this colour.
Only when format and dimensions stay the same.
Fewer colours make smaller PNGs (palette quantisation). Images that already have fewer colours stay pixel-exact.
Mixes palette colours in a fine pattern so skies and shadows do not band. Turn it off for flat graphics and text.
No images yet. Choose, drop or paste images, or try the sample photo.
Before
—
After
—
Saved
—
Before and after
Drag across the image or use the slider. Left of the line is the original, right is the compressed version. Zoom in on edges, text and skies, where compression shows first.
What resizing does to a 12-megapixel phone photo
A 4032 × 3024 photo shrunk to fit a square limit. Pixel count drives file size and decoding memory, so resizing usually saves more than any quality setting.
| Max width and height | Output size (px) | Pixels removed | Memory once decoded |
|---|---|---|---|
| Original | 4,032 × 3,024 | — | 46.51 MB |
| 2,560 px | 2,560 × 1,920 | −60% | 18.75 MB |
| 1,920 px | 1,920 × 1,440 | −77% | 10.55 MB |
| 1,200 px | 1,200 × 900 | −91% | 4.12 MB |
| 800 px | 800 × 600 | −96% | 1.83 MB |
Decoded memory = width × height × 4 bytes (one byte each for red, green, blue and alpha), whatever the file size. File sizes depend on the picture, so the tool measures them instead of guessing.
Done here? Try these next
Use this tool often? Save it to My tools.Saved to My tools. Find it any time at the top of the free tools page. You can also press Ctrl+D to bookmark this page in your browser.You can also press ⌘+D to bookmark this page in your browser.You can also tap your browser’s Share button (at the bottom in Safari) and choose Add Bookmark or Add to Home Screen.You can also open the ⋮ menu at the top right and tap ☆ to bookmark it, or choose Add to Home screen.You can also tap ··· at the top right and choose Favorite, or open it in your browser and bookmark it there.
Problem or suggestion?Send feedbackChat with support
Version v1.1Updated Update history
NewNew “Smallest file” output: tries WebP, AVIF and JPEG for each image and keeps the smallest.
What the JPEG quality number does
JPEG splits the picture into 8 × 8 blocks and stores how much each pattern of detail contributes. Quality decides how coarsely those amounts are rounded.
- Batch: drop up to 60 images
- Quality, max size or a target file size
- Strips EXIF and GPS, nothing uploaded

Lower quality, coarser rounding
Fine detail is rounded away first: texture in grass, noise, the sharp edge of text. Smooth areas survive much lower settings.
Not a percentage
Quality 75 does not keep 75% of anything. It scales the rounding tables; the size it produces depends on the photo.
Diminishing returns
Going from 95 to 85 usually saves a lot; from 70 to 50 saves less and starts to show blocks.
Each save adds loss
Compress from the original, not from an already compressed copy, or artefacts pile up.
For the same look at a smaller size, WebP or AVIF beat JPEG; use them where the destination accepts them.
Compress images in four steps
The defaults (WebP, quality 80, at most 1920 pixels) suit most website photos.
-
1
Add images
Click to choose, drop files onto the box or paste a screenshot. Up to 60 images at once.
-
2
Pick a format and a size
WebP for websites, JPEG where WebP is not accepted, PNG for screenshots that must stay pixel-exact. Set the max width to the largest size the image is displayed at, times two for sharp screens.
-
3
Check the comparison
Open Compare on the image with the biggest saving and drag the divider over edges and text. Lower the quality until you can see a difference, then go back one step.
-
4
Download
Download images one by one or all of them as a ZIP. Files keep their names with the new extension.
Why smaller images make the largest paint faster
Largest Contentful Paint (LCP) is the time until the biggest image or text block in the viewport is drawn. web.dev splits it into four parts: time to first byte, resource load delay, resource load duration and element render delay. When the largest element is an image, its file size sets the load duration.
- Good LCP: 2.5 seconds or less for at least 75% of page visits (web.dev)
- File size depends on pixel count × bytes per pixel; resizing cuts the first, quality and format the second
- This tool draws each image onto a canvas, scales it in steps of at most half for sharper results, then calls
canvas.toBlob(type, quality) - Compression does not fix a slow server or a late-discovered image: set
widthandheight, do not lazy-load the LCP image and considerfetchpriority="high"
| Format | Type | Transparency | Best for |
|---|---|---|---|
| WebP | Lossy or lossless | Yes | Website photos and graphics; supported by current browsers |
| AVIF | Lossy | Yes | Smallest files for photos; shown only if your browser can encode it |
| JPEG | Lossy | No | Email, upload forms and anything that refuses WebP |
| PNG | Lossless; lossy with fewer colours | Yes | Screenshots, logos and UI; choose a palette of 256 colours or fewer to shrink them |
How quality scales the rounding table
The libjpeg-based encoders in Chrome and Firefox scale the standard tables: scale = 5000 ÷ quality below 50, 200 − 2 × quality from 50. The first luminance entry of the standard table is 16.
| Quality | Scale | Step for that coefficient |
|---|---|---|
| 90 | 200 − 180 = 20% | 16 × 0.20 ≈ 3: very fine rounding |
| 75 | 200 − 150 = 50% | 16 × 0.50 = 8 |
| 50 | 100% | 16: the standard table |
| 30 | 5000 ÷ 30 ≈ 167% | 16 × 1.67 ≈ 27: visible blocks in gradients |
Safari uses Apple’s own encoder, so the same number can give a different size there. Judge by the comparison view and the measured file size.
Where image compression goes wrong
Most oversized images on websites are not under-compressed; they are simply too big.
Uploading the camera original
A 4000-pixel photo shown 800 pixels wide makes every visitor download and decode five times the pixels in each direction. Resize before you compress.
Re-compressing a JPEG again and again
Every lossy save adds artefacts. Keep the original and compress from it, not from the last exported copy.
Saving photos as PNG
PNG is lossless, so photos stay huge. Use PNG for flat screenshots; for photos use WebP, AVIF or JPEG.
Lazy-loading the main image
loading="lazy" on the largest image above the fold delays LCP. Lazy-load images further down the page instead.
See whether your images slow real visitors down
Compressing images is the fix; real-user data tells you which pages need it. TapCub's script measures the same Largest Contentful Paint this page explains, on your visitors' devices.
Core Web Vitals at p75
LCP, INP and CLS for each page at the 75th percentile, the same threshold web.dev uses, collected from the first page load of each visit.
Learn moreSlowest pages first
Pages and templates sorted by LCP, so you compress the images that cost the most visitors first.
Learn morePages and sources together
Compare speed with traffic and conversions on the same pages to decide where an image fix matters.
Learn moreImage compression questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
How do I compress a JPEG without losing quality?
Strictly, re-encoding a JPEG always loses a little. At quality 85–90 the difference is very hard to see while the file often shrinks noticeably; if the new file is larger, the tool keeps your original.
What JPEG quality should I use for a website?
Around 70–80 for photos shown at their real size. Use 85–90 for product shots with fine detail and check the comparison view at 100%.
How do I get a JPG under 100 KB?
Tick "Compress to a target size" and type 100. The tool searches for the highest quality that fits; if even the lowest quality is too big, set a max width such as 1200.
Does compressing a JPEG remove EXIF data?
Yes. The new file contains only pixels, so GPS location, camera details and date taken are removed. The rotation is applied to the pixels first.
Is this tool working for you?
Rate it, or tell us what went wrong and what you’d like improved. A person reads every message, and frequent requests go into the next update.
Need help right now?
Chat with our support team, best for urgent problems; you can leave a message when we are offline.
Chat with supportUpdate history
New features, fixes and data refreshes for this tool, newest first.
-
· v1.1
New featureNew “Smallest file” output: tries WebP, AVIF and JPEG for each image and keeps the smallest.
-
· v1.0
LaunchedFirst release.
Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates
Recommend this tool in an article or on your site
This tool is free to cite and share. Copy the URL or link below into your article, tutorial or resource page; to write a review, embed a tool or partner with us, get in touch.
https://tapcub.com/tools/image-compressor<a href="https://tapcub.com/tools/image-compressor">Image compressor - TapCub</a>Measure the speed your visitors actually get
Add TapCub's script and see LCP, INP and CLS for every page from real visits, next to traffic and conversions.