WordPress GuideImages → Size

WordPress image sizes: A complete guide [2026]

wordpress image sizes

Image sizes can make or break your WordPress site—visually and technically. Whether you’re running a blog, portfolio, or ecommerce store, knowing how WordPress handles images will help you deliver a better experience and a faster site.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

What are WordPress image sizes?

When you upload an image to WordPress, it automatically generates multiple versions of that image in different sizes. These are used across various parts of your site to optimize layout and performance.

These sizes help WordPress serve the right image based on where it appears and what device the visitor is using.

Default WordPress image sizes explained

Each default size has its role:

You can choose which size to insert into posts or pages, and WordPress themes often reference these sizes automatically in templates.

How to change default image sizes

You might want to change the default image sizes in WordPress to better match your theme’s layout and design requirements. It also helps prevent unnecessary image cropping or distortion, while improving site performance by avoiding oversized images.

You can update the default sizes in two main ways:

Changing sizes in WordPress settings

Note: Changing these values only affects future uploads. Existing images won’t be resized.

Using functions.php or a custom plugin

If you’re building a custom theme or want more control:

update_option(‘thumbnail_size_w’, 300);
update_option(‘thumbnail_size_h’, 300);

Use a child theme to make sure your changes don’t get overwritten by updates. After changing these values, you’ll need to regenerate your thumbnails.

How to add custom image sizes

Adding custom image sizes gives you more control over how images appear in specific areas of your site, like featured sections, sliders, or custom post types. It ensures consistent dimensions across your layout without relying on manual resizing or CSS adjustments.

You can define additional sizes with add_image_size() in your theme’s functions.php file:

add_image_size( ‘custom-thumb’, 600, 400, true );

The last argument (true) enables hard cropping. You can then use this custom size in your templates:

the_post_thumbnail(‘custom-thumb’);

How to regenerate thumbnails after changes

When you change image sizes or add new ones, old images need to be resized to match. The easiest way to do this is with a plugin. Force Regenerate Thumbnails, for example, lets you delete all old image sizes and regenerate thumbnails for your media library based on your current image size settings.

This step is essential to make sure all image sizes are available for your existing content.

How to resize images in WordPress

You might need to resize an image in WordPress to improve page load speed, ensure it fits your theme’s layout, or fix issues with blurry or distorted visuals. Resizing also helps reduce storage usage and makes your media library more efficient.

Here are your options:

Resize before uploading (recommended)

Resize in the WordPress Media Library

Note: This changes the original full-size image, so back it up if needed.

Resize using a plugin

These plugins are helpful for keeping file sizes under control, especially on multi-author sites.

WordPress theme and plugin image sizes

Some themes and plugins register their own image sizes.

You can disable unused sizes with the intermediate_image_sizes_advanced filter to save storage.

Responsive images and srcset in WordPress

A responsive image automatically adjusts its size and resolution to fit different screen sizes and device types, like desktops, tablets, and smartphones. In WordPress, this is handled using srcset and sizes attributes, which let the browser choose the best image version to load based on the user’s screen.

You might want to customize responsive image behavior to control which image sizes load on different devices, reduce bandwidth for mobile users, or fix layout issues caused by automatic scaling. It also gives you more flexibility in design and performance optimization, especially if your theme uses non-standard breakpoints or custom image placements.

You can customize how WordPress generates these values using filters like wp_calculate_image_srcset. Lazy loading is also enabled by default since WordPress 5.5.

Optimizing WordPress image sizes for speed

Optimizing WordPress image sizes for speed helps your site load faster, which improves user experience, boosts SEO rankings, and reduces bounce rates. Smaller, properly sized images also save server resources and bandwidth, especially important for high-traffic sites or mobile users.

To keep your site fast:

Top plugins for optimizing images and image sizes on WordPress:

These tools automate compression, conversion, and even lazy loading.

Image size troubleshooting

Common issues and fixes:

Best practices for WordPress image sizes in 2026

Ready to get started?

Get the fastest, most secure WordPress.org hosting on the market.

Trust us to help you choose the ideal hosting solution

Loading form…