Articles · Website upkeep
How to resize photos so your website loads fast
By Armstrong Websites. Published . Updated .
To make photos load fast, do three things before you upload them: resize each photo to the width it will show on screen, save it in the right format, and compress it. A photo straight from a phone is several times wider than any web page needs. Shrinking it first is the single most useful speed fix most small business owners can do on their own.
You do not need paid software. The tools already on your computer do the job.
Why photo size matters
A photo has two sizes. One is its dimensions, measured in pixels, such as 4,000 wide by 3,000 tall. The other is its file size, measured in kilobytes (KB) or megabytes (MB). One megabyte is about 1,000 kilobytes.
A modern phone takes photos around 4,000 pixels wide, and each file is often several megabytes. A website shows that photo at perhaps 800 or 1,600 pixels wide. The extra pixels are never seen, but every visitor still has to download them.
On a slow mobile connection, a page with a few of these photos can take a long time to appear. Why is my website slow and how to fix it covers the other causes of a slow site.
Pick the right width
Resize each photo to suit the spot it fills. These widths are plain guidance that suits most small business sites:
- Full-width banner at the top of a page: about 2,000 pixels wide
- Photo that fills half the page, or sits in the text: about 1,200 pixels wide
- Gallery or product photo: about 1,000 to 1,500 pixels wide
- Small photo, such as a staff portrait or thumbnail: about 600 pixels wide
Your website builder may suggest its own sizes. Squarespace, Shopify, and WordPress themes each publish guidance. If your builder gives a number, follow it.
Always make photos smaller, never larger. Stretching a small photo up makes it blurry.
After resizing and compressing, check the file size. As a working target, keep most photos under 300 KB and large banners under 500 KB. Small photos can be far less.
These are targets, not rules. If a photo looks blotchy or blocky at that size, allow a larger file. If it still looks sharp at half the size, use the smaller one.
Choose the right file format
JPEG (or JPG). Use this for photographs. It makes small files and every browser and builder accepts it.
WebP. This newer format makes smaller files than JPEG at similar quality. Current browsers support it. Use it if your website builder accepts it and your tool can save it.
PNG. Use this for logos, icons, and graphics that need a transparent background. Do not use PNG for photographs. A PNG photo is often many times larger than the same photo as a JPEG.
SVG. Use this for logos. How to get a logo file your website can use explains why.
HEIC. iPhones often save photos in this format. Many websites do not accept it. Convert these photos to JPEG first. The steps below do that as part of the export.
Resize on a Mac
Menu names can change between versions, so look for similar words if yours differ.
- Make a copy of the photo so the original stays safe.
- Open the copy in Preview.
- In the Tools menu, choose Adjust Size.
- Check that the option to scale proportionally is on. Set the unit to pixels.
- Type the new width. The height changes to match.
- In the File menu, choose Export. Pick JPEG as the format.
- Move the quality slider to a little above the middle. Preview shows the file size as you move it.
- Save with a new name.
Resize on Windows
- Make a copy of the photo.
- Open the copy in the Photos app.
- Open the menu with three dots and choose the resize option.
- Choose a custom size and type the new width in pixels. Keep the aspect ratio option on.
- If a quality slider shows, set it a little above the middle. Save as JPEG.
If your version of Photos looks different, Paint also has a Resize button. Choose pixels, keep the aspect ratio on, and type the width.
Compress with a free online tool
Compression shrinks the file further with little or no visible change. Two well-known free tools run in your browser:
Squoosh. A tool from Google. Drop in a photo, choose a format such as WebP or MozJPEG, set the width under the resize option, and move the quality slider. A divider shows the before and after, with the new file size.
TinyPNG. Despite the name, it handles JPEG and WebP as well as PNG. Drop in several photos at once and download the smaller copies.
Search for either tool by name. Free tools change over time, so check current limits on file count and size.
Crop before you resize
Crop each photo to the shape of the space it fills. A banner is wide and short. A staff portrait is often square. A product photo is often square or a little taller than wide.
Cropping first removes parts nobody sees, so the file gets smaller. It also lets you choose what stays in the frame. Left alone, the website builder decides, and it may cut off a head or a sign.
Use the same shape for every photo in a set. A gallery of matching shapes looks tidy and loads evenly.
Name the file before you upload
Rename the file with plain words and hyphens, such as “cedar-deck-armstrong.jpg.” A name like “IMG_4471.jpg” tells nobody what the photo shows.
When you upload the photo, add alt text too. Alt text is a short written description for people who cannot see the photo. How to write alt text for website photos shows how to write it.
What your website builder does for you
Squarespace, Shopify, and Wix make several sizes of each photo you upload and send a suitable one to each visitor. WordPress also makes extra sizes, and plugins can add compression and WebP.
This helps, but it is not a reason to upload huge files. Upload limits, storage space, and the quality of the automatic copies all work better when you start with a sensible file.
Keep your full-size originals in a folder on your computer or in cloud storage. You may need them later for print.
Fix the photos already on your site
Start with the pages that matter most: the homepage, then the service or shop pages. On each page:
- Run the page through PageSpeed Insights, a free Google tool. It lists the photos that are too large.
- Download or find the original of each one.
- Resize, compress, and rename it.
- Upload the new file and swap it in.
- Delete the old file from the page.
- Test the page again.
If your site has a large gallery and you want help with it, write to us through the contact page.
Read next
How often should you update your business website?
Update facts the day they change, check the site once a month, and review every page once a year. Here is a simple schedule a small business can keep.
How to check your website for broken links
Check a small site by clicking each link by hand, then use Google Search Console or a link checker to find the rest. Fix each one with an edit or a redirect.
How to keep your business email out of the spam folder
Send from your own domain, add SPF, DKIM, and DMARC records, and email only people who expect to hear from you. Here is how to set each one up.