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
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.
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.
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
-
Step 1
Open or drop your images, up to 20 at a time, or press Try an example. They stay on your device.
-
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.
-
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.
Related reading
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 servicesMore free tools
All tools- Website SEO Audit Crawl up to 50 pages and get a health score, every issue and a 30-day plan.
- Redirect Checker Trace 301/302 redirects, chains and loops to the final URL.
- Robots.txt Tester Test a URL against robots.txt and see which rule blocks or allows it.
- AI Bot Log Analyzer See how AI crawlers crawl your site from your server access log.
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