TapCub is live — analytics, insights and live chat, free on one platform

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.

Compress

75 is a common web setting for photos; 85–90 for prints and detailed images.

KB

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.

No images yet. Choose, drop or paste images, or try the sample photo.

    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.

    What resizing does to a 12-megapixel phone photo
    Max width and heightOutput size (px)Pixels removedMemory once decoded
    Original4,032 × 3,024—46.51 MB
    2,560 px2,560 × 1,920−60%18.75 MB
    1,920 px1,920 × 1,440−77%10.55 MB
    1,200 px1,200 × 900−91%4.12 MB
    800 px800 × 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.

    Runs entirely in your browser. Nothing you type here is uploaded or stored by TapCub.

    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.

    Read the result

    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
    Image compressor illustration: Compress and resize JPG, PNG and WebP images in your browser, convert to WebP or AVIF, compare before and after, and download one by one or as a ZIP
    Image compressor, illustrated

    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.

    How to use it

    Compress images in four steps

    The defaults (WebP, quality 80, at most 1920 pixels) suit most website photos.

    1. 1

      Add images

      Click to choose, drop files onto the box or paste a screenshot. Up to 60 images at once.

    2. 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. 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. 4

      Download

      Download images one by one or all of them as a ZIP. Files keep their names with the new extension.

    How it works

    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 width and height, do not lazy-load the LCP image and consider fetchpriority="high"
    Output formats in this tool
    FormatTypeTransparencyBest for
    WebPLossy or losslessYesWebsite photos and graphics; supported by current browsers
    AVIFLossyYesSmallest files for photos; shown only if your browser can encode it
    JPEGLossyNoEmail, upload forms and anything that refuses WebP
    PNGLossless; lossy with fewer coloursYesScreenshots, logos and UI; choose a palette of 256 colours or fewer to shrink them
    Worked example

    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.

    First luminance step at different qualities
    QualityScaleStep for that coefficient
    90200 − 180 = 20%16 × 0.20 ≈ 3: very fine rounding
    75200 − 150 = 50%16 × 0.50 = 8
    50100%16: the standard table
    305000 ÷ 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.

    Common mistakes

    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.

    FAQ

    Image 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.

    Feedback

    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.

    Rate this tool

    Please don’t include passwords or other sensitive information.

    Only used to reply to this feedback.

    Type, details and email are required.

    We only use this to handle your feedback. See the privacy policy.

    Feedback received

    Thank you! We will read it and reply from hello@tapcub.com if needed.

    Need help right now?

    Chat with our support team, best for urgent problems; you can leave a message when we are offline.

    Chat with support
    Changelog

    Update history

    New features, fixes and data refreshes for this tool, newest first.

    1. · v1.1

      New featureNew “Smallest file” output: tries WebP, AVIF and JPEG for each image and keeps the smallest.

    2. · 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

    Cite this tool

    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.

    URL
    https://tapcub.com/tools/image-compressor
    HTML link
    <a href="https://tapcub.com/tools/image-compressor">Image compressor - TapCub</a>

    See your data clearly. Find your growth.

    Every click, backed by data. Install one line of code and see your first numbers in a minute.

    No credit card · Free plans for analytics and chat · Cookieless analytics