Tutorials

How to find the right featured image size in WordPress

“What size should my featured image be?” is one of the most common questions I get about my themes, and the honest answer is that it depends on the theme. A featured image can show up as a small square next to the title in theme A and fill the full width of the screen in theme B, and WordPress itself has no single size for it. When you switch from theme A to theme B, featured images in your old posts can look blurry or oddly cropped unless you do something about it.

The good news is that you don’t need to guess, or make do with blurry images. In this tutorial, we’ll find the size your theme shows featured images at, go over the image sizes WordPress creates when you upload a file, and figure out what size to upload. Then we’ll look at what to do when you change sizes on a site that already has images, and why some of your files end up with names like image-1.jpg or image-scaled.jpg.

Find the size your theme uses

The quickest way to find out how big your featured images are on the screen is to measure one on your live site:

  1. Open a post with a featured image in your browser, at the screen size most of your visitors use.
  2. Right-click on the featured image and choose “Inspect”. Chrome, Edge and Firefox have it by default. In Safari, first check “Show features for web developers” under “Safari” → “Settings” → “Advanced”, and the option is called “Inspect Element”.
  3. Hover over the highlighted <img> element. Your browser shows the size the image is displayed at, like 1200 × 675.

Check the archive pages too, like your blog page or a category page. Many themes show featured images at one size on single posts and a smaller one in post lists.

In a block theme

In a block theme, the size is set by the Featured Image block in your templates. To check it, go to “Appearance” → “Editor” → “Templates”, open the “Single Posts” template, and select the Featured Image block. If the block is part of a pattern, click “Edit pattern” in the block settings first. Then open the “Styles” tab in the block settings, where the “Dimensions” panel shows:

  • “Aspect ratio”: the shape the image is cropped to, like 16:9 or square. If it’s set to “Original”, the image keeps its own shape.
  • “Width” and “Height”: a fixed size, if the theme sets one. Most leave these empty, so the image fills the width of its container.
  • Alignment: wide or full width makes the image wider than the text column.

The width of the text column comes from the theme’s theme.json file, as the contentSize setting, and wide-aligned blocks use wideSize. Those two numbers are the widest a featured image will show up on most block themes.

The cropping is done in the browser, not by WordPress. If the block’s aspect ratio is 16:9 and you upload a square image, the visitor sees the middle of it, with the top and bottom cut off.

In a classic theme

Classic themes usually set a featured image size in their functions.php file, with set_post_thumbnail_size() or add_image_size(). WordPress crops each image you upload to that size, so the theme always gets the exact shape it expects. The theme’s documentation often lists the size, and if it doesn’t, the measurement from your browser gets you close.

To look for it yourself, go to “Appearance” → “Theme File Editor”, select “Theme Functions” (functions.php) in the list of files, and search the file for set_post_thumbnail_size. The numbers after it are the width and height. Only read the file there: a typo in functions.php can take your site down, and your changes are lost the next time the theme updates. Some hosts turn the editor off, and in that case, the theme’s files can also be read over SFTP.

The image sizes WordPress creates

When you upload an image, WordPress keeps the original and creates smaller copies of it, called image sizes or thumbnails. By default, those are:

SizeMaximum width and heightCropped
Thumbnail150 × 150Yes, to a square
Medium300 × 300No
Medium Large768 wideNo
Large1024 × 1024No
1536 × 15361536 × 1536No
2048 × 20482048 × 2048No

Only Thumbnail is cropped. The others are scaled down to fit inside the box, so a 3000 × 2000 photo becomes 300 × 200 as Medium. WordPress skips the sizes that are bigger than the image you uploaded, and themes and plugins can register sizes of their own.

You can change the first three under “Settings” → “Media”. The others have no setting.

You don’t need to pick between them when you show an image. WordPress adds all the sizes to the page, and the visitor’s browser downloads the smallest one that still looks sharp on their screen. That’s why a single upload can work in a narrow sidebar on a phone and across a large desktop screen.

What size to upload

With the display size from your theme, the size to upload follows from three rules:

  • Twice as wide as it’s shown. Most phones and many laptops have high-resolution screens that need twice the pixels to look sharp. If your theme shows featured images 1200 pixels wide, upload them 2400 pixels wide.
  • The same shape as the theme crops to. If the theme shows featured images at 16:9, crop your image to 16:9 before you upload it, so you choose what’s cut off rather than the theme. 2400 × 1350 is a good size for a 16:9 featured image.
  • No wider than 2560 pixels. Anything bigger is scaled down when you upload it (more on that below), so larger files only take longer to upload. Some hosts also have a low limit on file size, so if a big photo won’t upload, see how to increase the maximum upload file size.

If you can’t tell, 2400 pixels wide works for nearly every theme. WordPress creates the smaller sizes from it, so it never makes your site slower for visitors on small screens. It’s still a good idea to compress the image before you upload it though, so it doesn’t take too long to download for your visitors. If you use Photoshop, Pixelmator or a different image editor, an image quality of 80 is plenty for images uploaded at twice the display size. You can also use an app like ImageOptim on a Mac, or Squoosh in your browser, to further compress the image before upload. I run the former on every single image I upload.

The featured image is also the image that shows up when someone shares the post on social media, if you use an SEO plugin like Yoast SEO. Facebook and LinkedIn crop it to about 1.91:1, so keep the important part of the image away from the top and bottom edges.

The big image threshold

If you upload an image that’s wider or taller than 2560 pixels, WordPress scales it down to fit within 2560 × 2560 and uses that copy as the full size. The original stays on the server, but it isn’t used on the site, and the new file gets “-scaled” added to its name.

The limit protects your site from huge photos straight from a camera, so it’s best to leave it on. If you need larger images, like for a photography portfolio, a developer can change or turn off the limit with the big_image_size_threshold filter:

// Raise the limit to 4000 pixels.
add_filter( 'big_image_size_threshold', function() {
return 4000;
} );

Returning false instead of a number turns it off completely. The limit was added in WordPress 5.3 in 2019, so if you have images older than that in your Media Library, they may be bigger than 2560 pixels.

Regenerate your images after changing sizes

WordPress only creates image sizes when you upload an image. If you change the sizes under “Settings” → “Media”, or switch to a theme with sizes of its own, the images you’ve already uploaded keep their old sizes. In a classic theme, that can mean blurry or oddly cropped featured images on older posts.

To create the new sizes for your existing images, use the Regenerate Thumbnails plugin:

  1. Install and activate Regenerate Thumbnails.
  2. Go to “Tools” → “Regenerate Thumbnails”.
  3. Leave “Skip regenerating existing correctly sized thumbnails” checked, so the plugin only creates the sizes that are missing. Leave the option to delete thumbnail files for old sizes unchecked: it frees up space, but posts that still use those files end up with broken images.
  4. Click “Regenerate Thumbnails For All Attachments” (the button includes the number of images on your site). If only your featured images need fixing, the button below it, “Regenerate Thumbnails For The Featured Images Only”, is faster.

It can take a while on a site with a lot of images, so leave the tab open until it’s done. When it is, you can deactivate the plugin.

Regenerate Thumbnails hasn’t been updated in a while, so WordPress.org shows a warning that it hasn’t been tested with the latest versions of WordPress. It still works: the way WordPress creates image sizes hasn’t changed, and that’s all the plugin relies on.

If you have command line access to your site, WP-CLI does the same thing with one command:

wp media regenerate

Block themes rarely need this. They crop images in the browser rather than relying on a theme size, so a new theme or aspect ratio works with the images you already have.

Why your files get “-1” or “-scaled” in their names

If you look at your images in the Media Library, some of the file names have something added to the end. Each one means something:

  • “-scaled”: the image was bigger than 2560 pixels, so WordPress made a smaller copy and uses that one.
  • “-1”, “-2” and so on: a file with the same name was already uploaded that month, so WordPress added a number instead of replacing it. This is usually the same image uploaded twice.
  • “-300×200”: one of the smaller image sizes, with its width and height. You’ll see these in the file’s address, not in the Media Library.
  • “-e” followed by a long number: the image was edited with “Edit Image” in the Media Library, like cropped or rotated. The number is when it was edited, and the unedited version is still there.

None of these are errors, and you don’t have to do anything about them. Duplicates with “-1” take up a little extra space, though. To find them, search the Media Library for the file name without the number, and delete the copy that isn’t used. Before you delete an image, check that it isn’t in any of your posts or pages, since a deleted image leaves a broken one behind wherever it was used. WordPress doesn’t list everywhere an image is used, but the “Uploaded to” column in the Media Library’s list view shows the post it was first added to, or “(Unattached)” if it was uploaded straight to the Media Library.

Published November 29, 2026