A complete image compression & optimisation platform in your browser
Compress and optimise images at scale — JPG, PNG, WebP, AVIF, GIF and more — with a real Canvas engine, AI content detection, target-file-size mode, modern format conversion, a web-performance analyzer and an SEO center. Reduce file size by 50–80% while keeping every image sharp, all locally, with nothing uploaded.
Real compression engine
A genuine Canvas pipeline re-encodes every image with modern WebP, AVIF, JPG and PNG codecs, Lanczos resizing and quality control — typically cutting file size 50–80% with no visible loss.
AI content detection
Each image is classified locally as a photo, product shot, screenshot, logo, graphic, document, artwork or UI, and the tool recommends the smallest format and quality that keeps it crisp — with an estimated saving up front.
Target file size
Tell the compressor the exact kilobyte budget you need and it lowers quality, then dimensions, until every image fits — perfect for upload limits, email caps and performance budgets.
Visual comparison
Inspect every result with side-by-side, draggable slider, split and amplified difference views at up to 800% zoom, so you can confirm quality before you publish.
Web performance analyzer
See real load-time, LCP, FCP and bandwidth improvements derived from the actual bytes saved, plus a monthly-bandwidth calculator and Core Web Vitals guidance.
Private by design
Every pixel is decoded, processed and re-encoded with the Canvas API on your own device. Your images are never uploaded, stored or seen by anyone, and EXIF/GPS metadata is stripped by default.
Social & store presets
One-click presets for Instagram, Facebook, LinkedIn, Pinterest, YouTube, TikTok, plus Amazon, Shopify, Etsy and eBay, and email — set the right size, format, quality and background at once.
ZIP & PDF export
Download a whole batch as a ZIP, or merge every compressed image into a single multi-page PDF with A4, Letter, A3 or fit-to-image pages. Batch rename keeps exports tidy.
How to compress images online
Add your images
Drag and drop files or a whole folder onto the upload area, paste a screenshot from the clipboard, import from a URL, or pick files from your device. Add one image or thousands at once — JPG, PNG, WebP, AVIF, GIF, BMP, SVG and ICO are all supported, and each is analysed automatically.
Pick a compression mode
Choose Smart, Lossless, Lossy, Extreme, Web, E-commerce or Email. Smart mode reads each image and selects the best format and quality for you; the others tune the engine for a specific goal. The AI panel detects whether an image is a photo, logo, screenshot or graphic and recommends the smallest format that stays sharp.
Fine-tune quality & size
Set a quality level, hit a target file size in kilobytes, optionally resize, convert format, strip metadata, handle transparency and add a watermark. A live before-and-after preview, size estimate and predicted-quality score show the impact before you process anything.
Compress and download
Click Compress to process the whole batch on your device. Compare results with the slider, split and difference views, then download files individually, grab everything as a ZIP, or merge them into one PDF. Nothing ever leaves your browser.
What is image compression?
Image compression is the process of reducing the file size of a picture so that it takes up less storage space and travels across the internet faster, while keeping it looking as close to the original as possible. Every digital image is, at heart, a grid of coloured dots called pixels, and storing the exact colour of every single pixel would produce enormous files. Compression is the clever set of techniques that shrinks that data — sometimes by finding patterns and redundancy that can be stored more efficiently, and sometimes by discarding details the human eye is unlikely to notice. The result is a file that is a fraction of the size yet, to a viewer, often looks identical.
This Image Compressor runs entirely inside your web browser. There is no software to install and, crucially, nothing is uploaded to any server. When you add images, the tool decodes each one onto an HTML canvas, applies your chosen optimisation — quality, format, dimensions and edits — and re-encodes the result using the browser’s built-in, hardware-accelerated image codecs. Because everything happens locally, compression is fast, completely private, and works offline once the page has loaded. The very same engine handles a single screenshot or a folder of ten thousand product photos.
Why does compression matter so much? Images are typically the heaviest things on a web page, the biggest attachments in an email, and the largest files in a phone’s camera roll. An uncompressed or poorly optimised image can be several megabytes; a well-compressed version of the same photo can be under two hundred kilobytes with no visible difference. Multiply that saving across an entire website, a product catalogue or a marketing campaign and the impact on loading speed, search rankings, storage costs and user experience is dramatic. Compression is one of the highest-leverage, lowest-effort improvements you can make to any digital project.
Modern compression is about far more than dragging a quality slider. The best results combine the right format, the right dimensions, sensible quality, clean metadata and an awareness of how the image will actually be used. This tool brings all of those levers together in one place — with a smart mode that makes the decisions for you when you would rather not think about them, and full manual control when you want it.
Lossy vs lossless compression: what is the difference?
There are two fundamentally different families of image compression, and understanding the distinction is the key to choosing the right settings every time. Lossless compression reduces file size without throwing away any information at all — the decompressed image is mathematically identical to the original, pixel for pixel. It works by finding and removing redundancy, such as long runs of the same colour or repeating patterns, and storing them more compactly. PNG, GIF and TIFF are lossless formats, and WebP has a lossless mode. The trade-off is that lossless compression can only shrink a file so far; for a detailed photograph, the savings are modest.
Lossy compression goes much further by permanently discarding some of the image data — specifically, the detail that human vision is least sensitive to. This is how JPG achieves its famously small files, and it is the default behaviour of WebP and AVIF. Because the encoder is selective about what it removes, a moderate amount of lossy compression is usually invisible, while delivering files five to ten times smaller than a lossless equivalent. The cost is that the discarded detail is gone for good, and compressing the same image repeatedly at low quality will gradually degrade it.
So which should you use? Choose lossless when every pixel matters: logos, icons, line art, screenshots of text, technical diagrams, and any image you will edit further. Choose lossy for photographs and complex, colourful scenes where a tiny, imperceptible loss of detail buys an enormous reduction in size — which is the vast majority of images on the web. This tool gives you both: its Lossless mode preserves everything the format allows, while its Lossy, Smart, Web and Extreme modes apply tuned lossy compression with a quality you control. The predicted-quality score even warns you when lossy compression might soften text or sharp edges, so you never degrade an image that should have stayed lossless.
A useful middle ground is near-lossless WebP and AVIF, available in this tool with a single toggle. These modes push the encoder to its quality ceiling, producing files that are visually indistinguishable from the original yet still meaningfully smaller than a true lossless export. For graphics and screenshots where you want maximum fidelity but cannot afford a bloated PNG, near-lossless is often the perfect compromise.
JPG vs WebP vs AVIF: which format compresses best?
Choosing the right format is the single biggest decision in any compression job, because each format makes a different trade-off between file size, quality, transparency and compatibility. Getting it right can halve your file sizes — or more — with no visible loss in quality.
JPG (JPEG) is the universal photographic format, supported by every device, browser and application ever made. Its lossy compression is excellent for photographs and complex scenes, and at a quality of around 80 it produces small files that look great. Its limitations are that it cannot store transparency and that each re-save loses a little quality. JPG remains the safest choice for photos that must open anywhere, for email attachments, and for marketplace product images on a white background.
WebP, developed by Google and now supported by every major browser, is the modern all-rounder. It offers both lossy and lossless modes, supports transparency and animation, and typically produces files 25–35% smaller than JPG at the same visual quality. For most websites and apps it is the best default, which is why this tool’s Smart and Web modes reach for it automatically. WebP combines small files, transparency and broad support in a single format.
AVIF, based on the AV1 video codec, is the newest mainstream format and usually the smallest of all — often 50% smaller than JPG, sometimes more — while keeping impressive quality, transparency and high dynamic range. Browser support is now very good, though encoding is more demanding and slightly slower. Choose AVIF for performance-critical hero images and when you want the absolute smallest files, ideally with a WebP or JPG fallback for older clients.
Head to head on a typical photograph, the ranking from largest to smallest at equal quality is roughly: PNG (lossless, biggest) → JPG → WebP → AVIF (smallest). For graphics with flat colour and sharp edges, that order changes: PNG and lossless WebP win because lossy codecs blur crisp lines. That is exactly why this tool detects the content type and recommends per-image rather than forcing one format on everything. There is no single “best” format — only the best format for a given image and destination.
Core Web Vitals and images: speed that ranks
Images are usually the heaviest assets on a web page, so compressing them is one of the most effective things you can do for performance and search visibility. Google’s Core Web Vitals — a set of real-world speed and stability metrics — are an official ranking signal, and images influence them directly. The Web Performance Analyzer built into this tool translates the bytes you save into the exact metrics Google measures.
Largest Contentful Paint (LCP) measures how long the largest visible element — very often a hero image — takes to render. A heavy hero image is the most common cause of a poor LCP. Compressing and right-sizing that image is frequently the single biggest improvement you can make: cutting a hero from 1.5 MB to 200 KB can shave seconds off LCP on a typical mobile connection. The analyzer estimates your LCP before and after compression so you can see the gain.
First Contentful Paint (FCP) measures when the first content appears, and lighter pages paint sooner. Interaction to Next Paint (INP) reflects responsiveness; smaller images free the main thread and the network sooner, which helps interactivity on image-heavy pages. Cumulative Layout Shift (CLS) measures unexpected movement — compression does not change an image’s dimensions, so it never harms CLS, but you should always set explicit width and height attributes on your <img> tags to keep CLS at zero.
The winning recipe for the web is consistent: convert to WebP (or AVIF for maximum savings), resize so the longest edge matches the largest size the image is actually displayed at, compress to a quality of roughly 75–85, and strip metadata. There is rarely any reason to ship a 6000-pixel photo to a layout that shows it at 1200 pixels — you are sending five times the data for no benefit. This tool applies all of these in one pass and shows you the measurable result.
The SEO benefits of compressing images
Search engine optimisation rewards fast, well-structured pages, and image compression contributes to several ranking factors at once. The most direct benefit is page speed: because Core Web Vitals are a confirmed ranking signal, lighter images that load faster can lift your position in search results, especially on mobile where connections are slower and Google’s mobile-first index applies.
Compression also improves crawl efficiency and user engagement, both of which feed SEO indirectly. Faster pages keep visitors from bouncing, increase time on page and improve conversion — behavioural signals that correlate with better rankings. Smaller images mean a search engine’s crawler can fetch more of your site within its crawl budget, helping large catalogues and media-heavy sites get indexed more completely.
Beyond raw speed, image SEO has a structural side that this tool helps with directly. Descriptive, hyphen-separated file names (red-leather-handbag.webp rather than IMG_4821.jpg) help search engines understand your images and rank them in image search. Meaningful alt text does the same while making your site accessible. Correct dimensions and modern formats signal a well-maintained, performance-conscious site. The built-in SEO Optimisation Center generates an alt-text suggestion, a clean file name, recommended dimensions and format, a ready-to-paste ImageObject structured-data snippet and an image-SEO score for every file — turning a technical checklist into one-click guidance.
Finally, modern format adoption is itself a quality signal. Serving WebP or AVIF instead of bloated PNGs and JPEGs is exactly what Google’s own PageSpeed Insights recommends, and acting on those recommendations removes a common audit warning. Compressing your images is one of the rare SEO tasks that is simultaneously easy, measurable and beneficial to real users — the best kind of optimisation.
E-commerce image optimisation for Amazon, Shopify and more
Online marketplaces have strict, specific image requirements, and getting them wrong means rejected listings or products that look unprofessional next to the competition. They also load these images at scale, so compression directly affects how fast your store feels and how well it converts. The e-commerce presets in this tool encode the rules so you can prepare a whole catalogue correctly in one pass.
Amazon wants main product images on a pure white background (RGB 255,255,255), in a supported format, with the longest side at least 1600 pixels so that zoom works, and with the product filling about 85% of the frame. Shopify recommends square images around 2048×2048 for crisp display across themes. Etsy, eBay, Flipkart, WooCommerce and Walmart each have their own preferred dimensions but share the same core principles: high resolution, square or near-square framing, clean backgrounds and reasonable file sizes.
The e-commerce presets apply the correct dimensions, fit the product inside the frame on a white background, and export as high-quality JPG in one click — across your entire catalogue at once. Crucially, they also compress: a 2000×2000 product photo straight from a camera can be several megabytes, but at quality 85 it compresses to a few hundred kilobytes that still look pristine when zoomed. Faster product pages mean lower bounce rates and higher conversions, which matters as much as meeting the marketplace’s technical minimums.
Combine the presets with batch renaming — so files arrive as sku-001, sku-002 and so on — and you can prepare a hundred product photos for a marketplace in the time it used to take to do one. If you need transparent product cut-outs first, pair this compressor with a background remover, then batch-compress the results onto a white background here. The result is a consistent, fast-loading, marketplace-ready catalogue.
Social media image optimisation
Every social platform displays images at particular aspect ratios and re-compresses whatever you upload, so the smart move is to send a correctly sized, already-compressed file. Uploading the wrong shape leads to awkward cropping that can cut off faces, logos or important detail; uploading an oversized file wastes your bandwidth and lets the platform’s own aggressive compression degrade it more than necessary.
The social presets in this tool encode the current recommended sizes: Instagram posts at 1080×1080 (1:1) and Stories at 1080×1920 (9:16), Facebook and LinkedIn link images around 1200×630, Pinterest pins at 1000×1500 (2:3), YouTube thumbnails at 1280×720 (16:9) and banners at 2560×1440, plus presets for X (Twitter), TikTok, WhatsApp and Discord. Select a preset and the tool sets the dimensions, a sensible background and a web-friendly compressed format automatically.
For format, JPG is the safest choice for photographic social content because every platform accepts it and re-compresses uploads anyway, so shipping a smaller, pre-compressed JPG protects quality and saves upload time. WebP is excellent where a platform supports it. Whatever you choose, compressing and standardising a set of posts to a consistent size and look keeps your feed cohesive, your uploads fast and your images sharp after the platform has had its way with them. Batch-compress a whole content calendar at once and you will never fight the upload spinner again.
A website performance guide for images
Optimising images for a website is the art of making each one as small as possible while keeping it as sharp as it needs to be at the size it is displayed. There are four levers, and the best results come from pulling several together rather than relying on any single one — which is exactly what this tool lets you do in a single batch.
The first lever is format: moving from PNG or unoptimised JPG to WebP or AVIF often halves the file size on its own. The second is dimensions, and it is frequently the biggest saving of all, because file size grows with the square of the pixel count — halving an image’s width and height cuts it to a quarter of the data. Resize to the largest size the image is actually shown at and serve appropriately sized images to different screens. The third lever is quality: a setting of 80 is a reliable default, 60–70 is fine for thumbnails, and 90+ is reserved for hero images where fidelity is paramount.
The fourth lever is everything else: stripping metadata, flattening unnecessary transparency, and choosing the right compression mode. Beyond the file itself, deliver images well — use the <picture> element with WebP/AVIF and a fallback, add width and height to prevent layout shift, lazy-load below-the-fold images, and serve from a CDN with caching. Compression is the foundation, but pairing small files with good delivery is what produces a genuinely fast site. The Web Performance Analyzer in this tool quantifies the foundation by showing the load-time and bandwidth gains from compression alone, so you can prove the value of each optimisation.
Image delivery best practices
Compressing an image well is half the job; delivering it well is the other half. Once you have small, correctly sized files from this tool, a few delivery practices ensure visitors actually receive those benefits. Use responsive images so that each device downloads only the resolution it needs — the srcset and sizes attributes, or the <picture> element, let you offer several sizes and modern formats with graceful fallbacks for older browsers.
Serve modern formats with a fallback. A <picture> element can offer AVIF first, then WebP, then a JPG or PNG, so capable browsers get the smallest file while everyone still sees the image. This combines the savings of cutting-edge formats with universal compatibility — the best of both worlds, and easy to set up once your compressed files are ready.
Lazy-load images that are below the fold with loading="lazy" so the browser defers them until they are about to be seen, prioritising the content that matters first. Always set explicit width and height (or an aspect-ratio) on image elements to reserve space and keep Cumulative Layout Shift at zero. Cache aggressively: serve images from a CDN with long cache lifetimes and fingerprinted file names so repeat visits are instant. Together with the compression this tool provides, these practices turn small files into a genuinely fast, stable visual experience.
Finally, measure and iterate. Run your pages through a performance tool such as Lighthouse or PageSpeed Insights after deploying compressed images, watch your Core Web Vitals in the field, and revisit any image that still flags as oversized. Compression is not a one-time task but part of an ongoing workflow — and because this tool is free, private and browser-based, re-optimising a handful of assets whenever an audit flags them costs nothing but a few seconds.
A professional image optimisation workflow
A good image workflow is repeatable, non-destructive and tuned to its destination. The first principle is to keep your originals. Always compress from a high-quality master and export copies, never overwrite the source — that way you can re-export at different sizes or formats later without compounding quality loss. Lossy formats degrade a little each time they are re-encoded, so go from master to final in a single step whenever possible, which this tool is designed to do.
The second principle is to standardise. Decide on your target format, maximum dimensions, quality and naming convention up front, then apply them consistently. This tool remembers your recently used formats and lets you save favourite profiles, so your house style is one click away every time. Compression modes give you named starting points — Web, E-commerce, Email, Extreme — and the AI recommendation tailors them per image. Batch renaming with sequential numbering keeps large exports tidy and predictable.
The third principle is to verify before you commit. Use the before-and-after preview, the draggable slider and the amplified difference view to confirm that your settings look right on a representative image, then run the full batch. Check the analytics summary afterwards to confirm the space saved, the average compression ratio and that no files failed. The predicted-quality score and live size estimate let you find the smallest acceptable setting without guesswork — the hallmark of a professional, efficient workflow.
The fourth principle is to respect privacy and rights. Strip metadata from images you publish — this tool removes EXIF, GPS and device data by default on every re-encode — and only process images you have permission to use. Because the compressor runs entirely in your browser, your media never leaves your machine, which is the most professional and secure default of all. Set the rules once, trust the engine, verify the output, and you have a pipeline that scales from a single image to an entire media library.
Output formats compared
| Format | Type | Transparency | Animation | Best for |
|---|---|---|---|---|
| WebP | Lossy / Lossless | Yes | Yes (kept on pass-through) | Best web default — small, transparent, broad support |
| AVIF | Lossy / Lossless | Yes | No | Smallest files, performance-critical web images |
| JPG | Lossy | No | No | Photos, email, marketplaces, universal sharing |
| PNG | Lossless | Yes | No | Logos, icons, screenshots, sharp graphics |
| Same | Keeps source | As source | Yes (animated kept) | Compress without changing the format |
| GIF | Lossless (256 colours) | Yes (1-bit) | Yes (preserved on pass-through) | Simple graphics and animation |
* TIFF, HEIC/HEIF, PSD and camera RAW are recognised on input; convert them to a standard format first or use the server API for full pipelines.
Pro tips for smaller, sharper images
Start with Smart mode
Smart mode analyses each image and picks the best format and quality automatically — photos become WebP/AVIF, logos and screenshots stay sharp as PNG. It is the fastest route to a great result.
Hit an exact file size
Switch the target to “file size” and enter a kilobyte budget. The compressor lowers quality, then dimensions, until each image fits — ideal for upload limits and email caps.
Resize for the biggest win
The largest savings usually come from dimensions, not quality. Set a maximum longest edge (e.g. 1920px) so every oversized image is right-sized as it compresses.
Check the difference view
Use the amplified Difference comparison to see exactly where compression changed pixels. If it stays dark, your quality is high enough to push lower.
Keep logos lossless
For logos, icons and screenshots, choose PNG or near-lossless WebP. Heavy lossy compression blurs sharp edges and text — the predicted-quality score warns you when it would.
100% private — your images never leave your device
Every image is decoded, compressed and re-encoded with the browser’s Canvas API on your own machine. There is no upload, no server processing and no storage — which means there is nothing to leak, nothing to delete, and no waiting on a network. EXIF and GPS metadata are stripped automatically, it works offline once loaded, and your files are released from memory the moment you close the tab.
Frequently asked questions
Troubleshooting
A HEIC or TIFF file would not compress
Most browsers cannot decode HEIC/HEIF or TIFF without extra libraries. Convert those files to JPG or PNG first (for example with the HEIC to JPG tool), then add them here. The tool flags unsupported inputs clearly rather than failing silently.
My compressed file is larger than the original
This usually happens when you compress an already-compressed photo to a lossless format like PNG, or set quality very high. Switch to WebP or AVIF, lower the quality a little, or enable resizing. Choosing the “Same” format with a quality below the original also helps.
One image failed in a large batch
Click the retry icon on any failed item, or use Retry Failed to re-run all failures at once. Failures are usually a corrupted file or an unsupported format — the rest of the batch is unaffected.
The page slowed down on a huge batch
Very large images use a lot of memory while on the canvas. The tool limits concurrency and yields between files, but on low-memory devices it helps to compress in groups of a few hundred, or to enable resizing so each image uses less memory.
The WebP or AVIF option is greyed out
Those formats are encoded by your browser’s built-in codec. If your browser cannot encode one, the option is disabled and you can choose JPG, PNG or “Same” instead. AVIF encoding in particular is missing in some older browsers.