SEO Optimization

Compress Image for SEO Online

Compress images to improve Core Web Vitals and search rankings. Targets 100KB by default. Switch to WebP output in the toggle below for the smallest next-gen file size.

Last updated: August 2026

100KB

Default Target

JPEG + WebP

Output Formats

LCP

Page Speed

Private

No Uploads

KB

Drop image here to compress to 100KB

JPEG, PNG, WebP, AVIF, HEIC. All processing stays in your browser.

Default target is 100KB. Prioritize the largest visible image on each page first, since it usually determines your LCP score. The format toggle defaults to JPEG, switch it to WebP for the smaller next-gen file size.

How to compress an image for SEO

1

Find your LCP element

Usually a hero or featured image, prioritize that one first.

2

Set your target

100KB by default, ideally under 100KB for a hero image.

3

Switch to WebP

Defaults to JPEG, select WebP for the smaller next-gen file.

4

Drop and download

JPEG, PNG, WebP, AVIF or HEIC accepted as input.

Where image compression affects SEO most

Not every image carries equal weight for SEO. Prioritizing the right images gives the biggest improvement for the least effort.

Largest Contentful Paint element

Identify the largest image visible on initial page load, usually a hero or featured image, and compress it first since it has the biggest effect on LCP.

Blog and article images

Every image in a long-form article adds to total page weight. Compressing each one to under 100KB keeps article pages fast even with many images.

Product and category pages

E-commerce pages often load many product thumbnails at once. Compressing each image reduces the cumulative weight that determines overall page speed.

Mobile search visibility

Google evaluates mobile performance for ranking. Compressed images load faster on mobile networks, directly supporting mobile Core Web Vitals scores.

Looking for the broader speed picture beyond SEO? The Compress for Website Speed page covers the same targets with a focus on overall page load time.

What Google is actually measuring when it times your hero image

Largest Contentful Paint measures the time from when a page starts loading to when the largest visible element finishes rendering on screen. On most pages that element is an image, which is why image file size has such an outsized effect on the score compared to almost anything else you could optimize. The browser doesn't care how fast your server responds if the hero image still takes three seconds to download and decode after the response arrives. A 1.2MB unoptimized hero image on a typical mobile 4G connection can easily take two seconds or more to transfer on its own, before any rendering even happens. Bring that same image down to 80KB and the transfer time drops to a fraction of a second, which is usually enough on its own to move a page from a failing LCP score into a passing one.

It's worth being specific about what compression does and doesn't fix here. LCP has three components Google's own documentation breaks out: the delay before the browser starts fetching the resource, the time the resource takes to load, and the time it takes to render once loaded. Compression directly addresses the load time component, which is often the largest of the three for image-heavy pages, but it doesn't touch the other two. If your hero image is buried behind a slow server response or loaded lazily when it shouldn't be, compressing it further won't fix those separate problems. A well-compressed image that's also marked with high fetch priority and not lazy-loaded addresses all three components at once, which is why compression is usually paired with those markup changes rather than treated as a complete fix on its own.

Why this tool doesn't touch INP or CLS, and why that's fine

Core Web Vitals has two other metrics besides LCP: Interaction to Next Paint, which measures how quickly a page responds to clicks and taps, and Cumulative Layout Shift, which measures whether content jumps around unexpectedly while loading. Image compression has essentially no effect on either of these. INP failures come from JavaScript blocking the browser's main thread during user interactions, which is a code architecture problem, not an asset size problem. CLS failures come from images and other elements loading without reserved space, causing the layout to shift once they appear, which is fixed by declaring width and height attributes on your image tags rather than by changing the image file itself. If your Search Console report shows INP or CLS failures alongside LCP issues, compressing images will help the LCP number and do nothing for the other two. They need separate fixes.

File size is half the picture: serving the right dimensions matters too

A common mistake is compressing an image well but still serving it at a much larger pixel size than it actually displays at. A hero image that renders at 800 pixels wide on most screens but gets uploaded and compressed at its original 4000-pixel width is still downloading four to five times more pixel data than the page needs, even after compression brings the file size down. The browser still has to decode all of that pixel data before it can paint anything, and decoding time counts toward LCP just as download time does. Resizing the image to roughly the dimensions it will actually display at, before or alongside compressing it, removes this hidden cost. The resize tool handles getting an image to the right pixel dimensions before you bring the file size down here, which together produces a meaningfully faster LCP than compression alone on an oversized source.

Common SEO compression mistakes

Assuming the tool outputs AVIF

It doesn't, this tool outputs JPEG or WebP only. For AVIF specifically, use a dedicated AVIF converter on this site as a separate step.

Leaving the format on JPEG when WebP was the goal

The format toggle defaults to JPEG, not WebP. If the whole point was the smaller next-gen file size, check the toggle is actually set to WebP before downloading.

Compressing without resizing an oversized source first

A hero image that displays at 800px wide but was uploaded at 4000px still forces the browser to decode all that extra pixel data, even after compression brings the file size down. Resize to the actual display dimensions first for a meaningfully faster LCP.

Expecting compression to fix INP or CLS issues

Image compression only affects LCP. Interaction to Next Paint and Cumulative Layout Shift come from separate causes, JavaScript blocking the main thread and unreserved layout space, and need their own fixes.

Treating every image on the page as equally important

The single largest visible image, usually the LCP candidate, deserves the most attention. Below-the-fold images matter less for the specific LCP metric, though they're still worth compressing for overall page weight.

Why use ImgTweak?

Runs entirely in your browser
No uploads, ever
JPEG and WebP output
Automatically detects already-small files
Free forever, no account needed
Works on mobile as well as desktop

Frequently asked questions

Does image compression really affect SEO rankings?

Yes, indirectly but measurably. Page speed is a confirmed Google ranking factor, and Core Web Vitals, which include Largest Contentful Paint, are part of how Google evaluates page experience. Images are the Largest Contentful Paint element on roughly 85 percent of desktop pages and 76 percent of mobile pages, and images account for close to half of total page weight on average. Compressing images is one of the most direct ways to improve the metrics Google measures, alongside the user experience signals like bounce rate that come with faster pages.

What is the target LCP score and how does image size relate to it?

Google's good threshold for Largest Contentful Paint is under 2.5 seconds. Since an image is usually the LCP element, its file size has a direct and often dominant effect on this score. A hero image reduced from several hundred kilobytes to under 100KB, combined with a modern format like WebP, is one of the most reliable ways to bring LCP into the good range without any other changes to the page.

Which image format is best for SEO?

WebP is considered a next-generation format by Google's PageSpeed Insights and is recommended over JPEG and PNG for web delivery, offering 25 to 55 percent smaller files than JPEG at equivalent quality with support across more than 97 percent of browsers. This tool outputs JPEG or WebP, select WebP in the format toggle for the smaller file size, since JPEG is the default. AVIF is not an output option on this tool, if you specifically need AVIF, the JPG to AVIF converter on this site handles that conversion separately.

Does alt text matter as much as file size for image SEO?

Both matter, but for different reasons. Alt text helps search engines understand what an image depicts and improves accessibility, which can help an image appear in image search results. File size affects page speed and Core Web Vitals, which influence how the entire page ranks. Neither replaces the other. A well-optimized image has both descriptive alt text and a small, efficient file size.

Should every image on a page be compressed to the same size?

No. The image most likely to be your Largest Contentful Paint element, usually a hero image or the first large image in your content, deserves the most attention and should be as small as possible without visible quality loss, ideally under 100KB. Smaller thumbnails, icons and below-the-fold images can be compressed similarly but have less individual impact on LCP, since they typically load after the initial render.

What is the highest quality this tool can output?

There's no ceiling below 100. The tool checks quality 100 first, and for a typical web image at a 100KB target it's common for that to already overshoot, so the search then narrows down to the highest quality that fits. If your target has real headroom, for example a looser 200KB target on a simple image, you can end up with quality well above what a fixed 90 cap would have allowed.

Can I compress every image on a page at once?

This tool handles one image at a time. For a full page or article with many images, run each one through individually, starting with the largest visible image since that usually has the biggest effect on LCP.

Does EXIF or GPS metadata get removed, and does that matter for SEO?

Yes, EXIF metadata including GPS location and camera details doesn't survive the compression, the image is decoded to raw pixels and re-encoded. This has no meaningful SEO effect either way, Google doesn't use EXIF data as a ranking signal, but it's a useful privacy side effect for any photo you're publishing publicly.

Ready to compress your image?

No sign-up. No upload to server. Drop your image above and download it in seconds.