Adding or swapping an image on your WordPress website is quick once you know where to look. This guide shows you how, including how to resize photos first so your pages stay fast.
Resize before you upload
Large images take ages to load. Even if a photo looks small on your page, the file behind it can still be huge. Getting the size right before you upload keeps your pages fast, which is better for your visitors and for your SEO. It also stops a new image from upsetting your layout.
1. Start with a good-quality image
Always start with a clear, sharp, high-resolution image. If you zoom in and it stays clear rather than going blurry or blocky, you’re starting from a good place. It’s easy to make a large image smaller, but you can’t make a small, blurry image sharp.
2. Resize it to the size it will appear
Resize your image to roughly the size it will appear on screen. There’s no need to upload a 3000px-wide photo for a small thumbnail.
- Around 1200px wide is plenty for a full-width image.
- Aim for each image to be under 200KB.
- On image-heavy pages, try to keep the total for all images under 1MB.
If you’re swapping an existing image and want an exact match, you can find the size it’s displayed at (see how to swap an image below).
Simple ways to resize:
- Mac Preview: Tools > Adjust Size
- Microsoft Paint (Windows): Home > Resize
- Photoshop: Export > Save for Web
- Affinity: Export, then choose the size and format
3. Choose the right file format
The right file type keeps your site fast and your images sharp.
- WebP (recommended): modern and lightweight. Good for almost everything: photos, graphics and icons. Files are smaller and load faster, and all modern browsers support it. Most design tools can export as WebP, or you can use an online converter like CloudConvert.
- JPG (or JPEG): best for photographs and detailed images. Good quality at a smaller file size, but images can look blurry if saved too small.
- PNG: best for logos, icons and images with text or a transparent background. Files are larger than JPG or WebP.
4. Compress the file
Run your image through a compression tool to shrink the file size without losing visible quality. Simply upload your image and let the tool do the work. Play around with the export quality too, so the file is as small as possible without looking worse.
- TinyPNG: a free online tool.
- Squoosh: a free online tool that lets you compare quality before and after.
- ImageOptim: a small Mac app. You drag and drop images into it and it compresses them automatically. This is my personal favourite.
5. Give it a clear file name
It’s tempting to upload whatever name your phone or camera gave the file, but that doesn’t help Google or you when you’re looking for it later. Google looks at image file names to understand what your site is about, so a little effort here goes a long way.
- Use plain English and relevant keywords, for example
tipton-village-hall-exterior.webprather thanIMG_0042.jpg. - Use hyphens instead of spaces or full stops.
- Keep it short, clear and searchable.
How to add a new image to WordPress
Once your image is resized and compressed:
- Log in to your WordPress dashboard.
- Go to the post or page where you want to add the image.
- Click the + icon and select Image.
- Upload your file, or choose one from your Media Library.
- Add alt text: a short description of what the image shows. This helps with SEO and makes your site more accessible to people using screen readers.
How to swap an existing image
When you replace an image, the new one should be the same size as the old one. That way it fills the same space and doesn’t upset your design.
Step 1: find the exact size of the current image
For exact measurements, I use a small Chrome extension called View Image Info.
- Install the View Image Info extension from the Chrome Web Store and make sure it’s switched on.
- Go to the page with the image you want to swap.
- Right-click the image and choose View Image Info.
- In the pop-up window, note down the scaled image size (something like 435 x 500px) and the file type (JPEG, PNG and so on).

Step 2: prepare your new image
- Open your image editing software and create a new document at the exact size you noted down (for example 435 x 500px).
- Set the resolution to 72dpi.
- Place your new image in the document and crop it to fit.
- Export it in the right format (JPEG or WebP for photos, PNG or SVG for logos), keeping the file size as low as you can without losing quality.
- Give it a clear, descriptive file name.
Step 3: compress and upload
- Run the image through a compression tool such as TinyPNG or ImageOptim.
- Open the page in the editor and replace the old image with your new one.
- Add alt text that describes the new image, then save and check the page.
Why it’s worth the extra few minutes
- Speed: large image files slow your pages down, and nobody enjoys waiting for a page to load. This matters even more on phones with a weaker signal.
- SEO: Google takes page speed into account, so a slow site can rank lower.
- Storage: big files take up more space on your hosting, which can matter if your plan has a storage limit.
- Quality: an image that’s too small or saved badly can look blurry or pixelated, which makes your site look less professional.
Useful tools and bonus tips
Image editing software
- Affinity: the image editor I use. It’s a very capable alternative to Photoshop and, since Canva relaunched it in 2025, it’s free to download (some optional AI features need a paid Canva account).
- GIMP: a free image editing program.
Bonus tips
- Use View Image Info or a similar browser extension to check the size of the images already on your site.
- Keep an eye on the total image weight of each page, especially pages with galleries or product grids.
- An image optimisation plugin (for example ShortPixel, Smush or EWWW Image Optimizer) can add extra compression when you upload. Check with me before installing one, as your site may already have something similar set up.
- When in doubt, save as WebP for a good balance of quality and speed.
If you’re getting photos ready for a brand new website, my guide to preparing images for your new website covers what I need from you. And before you use any image you’ve found online, read my advice on image copyright.
Rather leave it to someone else? If I host your website, my Website Care Plan can take updates like this off your hands. You’ll find more guides in my tips for managing your own website.