How to resize images for the web
To resize for web pages, make images no wider than they are shown, usually 1200 to 1600 pixels for a main picture, and save them as WebP or a high-quality JPG. Lighter images make pages load faster, especially on phones.
Prepare an image for your website
- Resize it in Make a photo smaller: set the longest side to the width it is shown at, such as 1600 pixels.
- Convert it with JPG to WebP, or PNG to WebP for graphics with see-through parts.
- Upload the lighter file and check the page on a phone.
The best image format for the web
| Format | Use it for | Note |
|---|---|---|
| WebP | Most photos and graphics | Every modern browser shows it |
| AVIF | The lightest photos | Newer browsers; keep a fallback |
| JPG | Photos, when WebP is not an option | Shows everywhere |
| PNG | Screenshots and graphics with sharp edges | Heavier for photos |
| SVG | Logos and icons | Stays sharp at any size |
Why image size matters on a website
Images are usually the heaviest part of a web page. A photo straight from a phone can be several MB, while the same picture sized for the page is a few hundred KB, so the page appears sooner and uses less of a visitor's data.
Search engines measure how quickly pages load and become usable, so lighter images help your pages rank as well as feel faster.
Retina screens and image width
Phones and many laptops pack two or three screen pixels into each point, so an image shown 800 points wide looks sharpest at around 1600 pixels. Most website builders and content systems then make smaller copies for smaller screens on their own.
Tools for this job
- Make a photo smaller. Get a photo under the size limit a form, email or app asks for, without uploading it.
- Image converter. Change images to JPG, PNG, WebP, AVIF, GIF, BMP, TIFF or ICO, one or a whole batch, without uploading them.
- JPG to WebP. Turn a JPG into a WebP for fast-loading pictures on websites and in apps.
- PNG to WebP. Turn a PNG into a WebP for fast-loading pictures on websites and in apps.
- JPG to AVIF. Turn a JPG into an AVIF for the smallest good-looking pictures on modern websites.
Related guides
- The WebP format, explained. WebP is the image format many websites now use. Learn why, which apps open it, and how to save a WebP as JPG or PNG.
- How to reduce image resolution. Reduce image resolution to make photos lighter for email and the web. Learn the difference between pixels and DPI, and lower resolution without blur.
- Image file formats explained. A plain guide to every common image file format: what each photo format is for, which ones upload forms accept, and how to change a picture format.
Questions
What size should images be for a website?
As wide as they appear, allowing for sharp screens: 1200 to 1600 pixels for main pictures and less for thumbnails.
What is the best image format for the web?
WebP for most images, AVIF for the lightest photos, SVG for logos, and JPG where nothing newer is accepted.
How do I optimize images for the web without losing quality?
Resize to the shown width and save at high quality in WebP. The file shrinks with no visible change.
Are my images uploaded when I resize them here?
No. Utilitab resizes and converts them in your browser on your device.