Compress Image for Website

By Free Image Tools team · Published 21 November 2026 · Updated 21 November 2026

TL;DR: Upload a photo, set a quality level or a target of under 100 KB or 200 KB, and download a smaller JPG or WebP. Large images slow pages down, so shrinking them before you upload helps your site load faster.
Photo coming soon — a real photo for this tool is being prepared. The tool below works fully without it.

Original
Result

Your files never leave your device — processing happens in your browser.

How to compress an image for your website

Upload a photo by clicking the box above or dragging the file onto it. First, check the max width. The default is 1200 pixels, which suits a blog hero image shown across a normal page. If your image is shown smaller, set a smaller width, and the file will shrink further. Next, choose how to compress it. Move the quality slider down until the preview still looks good to you — for most photos, a quality of 70 to 85 is a good balance. Or pick a target size instead: Under 100 KB for a small image inside an article, or Under 200 KB for a larger hero image. With a target set, the tool tries your quality first, then steps the quality down in a loop until the file fits under the target, or until the quality cannot go any lower. Press Compress image and the result appears next to the original, with both file sizes shown underneath, so you can see exactly how much smaller it became. Choose WebP for the smallest file in most modern browsers, or JPG for the widest support. Press Download compressed image and upload that file to your site instead of the original.

Why large images slow a website down

Every image on a page has to be downloaded before the page is complete, so a page full of large photos takes longer to load, especially on a phone with a slow connection. Visitors may leave before the page finishes, and search engines treat page speed as part of the experience: Google's Core Web Vitals guidance covers how quickly a page loads and becomes usable, and large images are one of the most common reasons a page scores badly. Compressing images is one of the simplest fixes, and it costs nothing. The two things that matter most are size and dimensions. A photo straight from a camera can be several megabytes and several thousand pixels wide, while the same photo shown on a blog is only about 1200 pixels wide. Shrinking it to the size it is actually shown at, and saving it at a sensible quality, often cuts the file to a tenth of its size with no visible difference. Always keep your original photo. Compressed images are meant for the web; if you later need the photo for print, you will want the full-quality original back.

Frequently asked questions

How does this tool reach a target file size?

It tries your chosen quality first, then steps the quality down in a loop until the file is under your target size, or until the quality cannot go any lower. The result size is shown next to the preview, so you can see whether the target was reached.

Should I choose JPG or WebP for my website?

WebP usually gives a smaller file than JPG at similar quality, and most modern browsers support it. JPG is the safer choice if you need the widest support, including very old browsers.

Why does the max width matter?

A photo shown at 1200 pixels wide does not need to be 4000 pixels wide. Shrinking it to the size it is actually shown at makes the file much smaller, and the difference is not visible on the page.

Are my photos uploaded anywhere?

No. Your photos never leave your device. The compression is done in your browser with the Canvas API, and nothing is sent to a server.

Related tools

Share:
Disclaimer: The tools and guidance on this page are for general use. Tools run entirely in your browser and your input never leaves your device. Always keep a backup of your original image before converting or editing it.