Skip to content

Free tools for SEO, AI search, Google Ads and local businesses. No sign-up. See all tools

DigitalSnot

Image Compressor and WebP Converter for website images

Make website images smaller, convert them to WebP, make responsive sizes and copy the img code.

  • Free to use
  • Runs in your browser
  • No sign-up

How to use the Image Compressor and WebP Converter

Read what the guide says

This is the Image Compressor and WebP Converter.

Make website images smaller, convert them to WebP, make responsive sizes and copy the img code.

Open or drop your images, up to 20 at a time,

or press Try an example. They stay on your device.

Or press Try an example to fill in sample details.

Choose the format, a quality or a target size,

and the widest size your page needs. Tick "Make responsive sizes" so phones get smaller files.

Compare before and after, add alt text,

then download the files or the ZIP and copy the code into your page.

It runs in your browser, so nothing you type is uploaded.

Try it free on this page.

Runs in your browser. Your images are not uploaded.

Or drop them here. JPEG, PNG, WebP, GIF or AVIF, up to 20 at a time.

For website images: banners, blog photos, team pictures. For marketplace product photos, use the Product Photo Resizer. After you upload, check the page with the Image SEO Checker.

Save as

WebP suits most photos. A format shows here only when your browser can save it.

Compress by

Lower makes smaller files. 75 to 85 is our suggestion for photos.

px

Wider images are made smaller to this width. Leave it empty to keep the size. Images are never enlarged.

Responsive sizes and code

Several widths of each image, with srcset code, so phones download smaller files.

In pixels, separated by commas. Only widths up to the image's own width are made.

px

The widest the image appears on a computer screen. Used for the sizes code and the "wider than needed" check.

The code loads it straight away with fetchpriority="high" instead of loading="lazy".

For WebP or AVIF: also makes JPEG files and gives <picture> code.

KB

200 KB is our measure for a photo on a web page; Google sets no limit.

Open your images to compress them

You get each image smaller, with its size before and after, a preview to compare, downloads one by one or in one ZIP file, and code to paste into your page. Or press Try an example.

Share this free tool

Embed this tool on your websiteFree. Paste one code; it runs in your visitors' browsers.

Copy this code into a page of your site. The tool sets no cookies and sends nothing your visitors type to us. Change height="760" if it needs more room.

Preview the embed

How to embed a free tool on your website

Read what the video says

Want one of our free tools on your own website?

Here's how to embed it, in about a minute.

Open any of our browser tools, such as the GST Calculator.

Below the tool, find Embed this tool on your website, and open it.

Press Copy code.

The code is a frame with the tool in it, plus a short credit line that links to the tool's page.

In your website's editor, add an HTML block where you want the tool, and paste the code.

In WordPress, that's the Custom HTML block.

If the tool needs more room, change the height in the code.

Publish the page, and the tool works on your site.

Here, it's on a sample page for a made-up sweet shop.

Visitors use it right there. It sets no cookies, and sends nothing they type to us.

The credit line under it links to the tool on DigitalSnot.

You can embed as many of our free browser tools as you like.

About the Image Compressor and WebP Converter

Open one or more images for your website, such as a banner, a blog photo or a team picture. Choose WebP, JPEG or PNG (and AVIF when your browser can save it), a quality or a target file size, and the widest size you need. You get each image smaller, with its size before and after, a preview to compare, downloads one by one or in one ZIP file, and ready <img> or <picture> code with srcset, sizes, width, height, alt and loading. It runs in your browser: your images are never uploaded.

How it works

  1. Step 1

    Open or drop your images, up to 20 at a time, or press Try an example. They stay on your device.

  2. Step 2

    Choose the format, a quality or a target size, and the widest size your page needs. Tick "Make responsive sizes" so phones get smaller files.

  3. Step 3

    Compare before and after, add alt text, then download the files or the ZIP and copy the code into your page.

Which format to choose

Google Search indexes images in BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. web.dev says WebP files are generally smaller than JPEG and PNG, and AVIF can be smaller still, depending on the image. Photos usually do best with lossy compression (WebP, AVIF or JPEG), and logos and line drawings with lossless PNG. WebP and AVIF keep transparency; JPEG cannot. This tool shows the real file sizes, so you can compare formats on your own images.

Sizes, width and height, lazy loading

web.dev advises not serving images larger than they are shown, and using srcset with widths and sizes so each screen downloads a file that fits it. Always set width and height, so the page keeps the space and does not jump while images load. Do not lazy-load the main image at the top of the page (web.dev suggests fetchpriority="high" for it); lazy-load images further down. Google recommends always giving a fallback in src, even with srcset or <picture>; the code here always has one.

What this tool cannot do

It does not crop, edit or retouch images, and it cannot see how wide your page shows them: enter that width for the sizes code and the "wider than needed" check (more than twice the shown width, our measure). Saving through the browser's canvas makes a new file, so EXIF data such as camera details and location is not copied, and an animated GIF becomes a still image. It cannot upload the files to your website; use your site's media library.

Frequently asked questions

Is WebP better than JPEG for my website?

For most photos, yes. web.dev says WebP files are generally smaller than JPEG and PNG, current versions of the major browsers show WebP, and Google Search indexes WebP images. Still check each image: open it here in both formats and compare the size and the preview. Keep JPEG where a website builder, email tool or marketplace does not accept WebP.

What quality should I use?

There is no official number. For photos on web pages, 75 to 85 is our suggestion. Look at the preview, lower the quality until you can see a difference, then go back up a step. Or choose a target file size, such as 150 KB, and the tool finds the highest quality that fits under it.

How wide should a website image be?

As wide as your page shows it, and up to twice that for sharp phone and laptop screens (our measure). A photo in an 800 px column needs a file up to 1,600 px wide. Tick "Make responsive sizes" and use the srcset code: the browser then picks the file that fits each screen, so phones download a smaller one.

Does compressing remove the location from my photos?

Yes. The new file is drawn from the image's pixels, so the EXIF data in the original, such as the camera, the date and any GPS location, is not copied. The tool tells you when an original has location data. The original file on your device does not change.

Are my images uploaded anywhere?

No. Your browser opens, compresses and saves the images on your device; nothing is sent to our server. Close the page and they are gone. Large images can take a few seconds on older phones.

Rather have us do it for you?

Tell us about your business and what you want to fix. We reply within one business day.

Talk to us Our service: Technical SEO services

More free tools

All tools

Want us to fix what the tool found?

Tell us about your business and what you want to grow. We reply within one business day with next steps, not a sales script.

  • A reply within one business day
  • A quick look at your site and search visibility before we talk
  • Your details are only used to answer your enquiry

Prefer email or a call?

hello@digitalsnot.com

+91 70079 75411