Image Size for the Web: Resize, Compress, Format

Digital camera with a large lens on a table
Photo: β€œCamera Photography” by Oli Dale Β· CC0 1.0 Β· via Openverse (stocksnap)

Images are usually the heaviest part of a web page. Large, unoptimized photos slow loading, frustrate visitors on mobile data and can hurt search performance. Fortunately, a few simple steps often cut file size by 70% or more.

Step 1: Resize to the size you display

A phone camera photo can be 4000 pixels wide, but a blog column might show it at 800. Browsers must still download every pixel. Resize to roughly the maximum display width, with a little extra for high-density screens, such as 1.5 to 2 times. Use the image resizer and compressor, which keeps your aspect ratio by default.

Step 2: Pick the right format

Convert between them with the JPG, PNG and WebP converter or go straight to the WebP converter.

Step 3: Compress sensibly

For JPG and WebP, a quality setting between 70 and 85 usually looks nearly identical to the original while saving a lot of space. Try a few values and compare. Do not repeatedly re-save JPGs, since every lossy save loses detail. Keep an original master copy. The image compressor shows how much smaller the new file is.

Handy size targets

Privacy matters

Many online tools upload your pictures to a server. Ours process files entirely in your browser using the canvas feature, so nothing leaves your device. Note that re-encoding strips most metadata such as location, which is usually a privacy bonus.

More speed tips for site owners