WordPress Media Library Size Calculator
See how many files WordPress writes for every image you upload
Runs in your browser. Nothing is uploaded.
About the WordPress Media Library Size Calculator
Estimate how many files and how much disk space your WordPress media library uses, based on how WordPress sizes each upload and our measured file sizes.
For every upload, WordPress keeps your original and writes a set of smaller copies: six sizes by default, plus a -scaled copy when the image is over 2560 px, plus whatever your theme and plugins register. The calculator counts those files for uploads of the size and shape you enter and estimates the disk space they take. To see every file for one real image, with its crop, drop it into the WordPress Image Size Lab.
Worked example: 2,000 photos straight from a camera
Input (the tool's defaults)
Number of uploads: 2000
Average original file size (KB): 2400
Typical long edge of an upload (px): 4000
Typical shape: 4:3
WooCommerce: off
Extra sizes from your theme and plugins: 0 Result
16,000 files
8 files for every 4000 × 3000 upload
8.3 GB
Without 1536x1536 and 2048x2048: 12,000 files, about 6.6 GB. - 8 files per upload: the original, thumbnail (150 × 150), medium (300 × 225), medium_large (768 × 576), large (1024 × 768), 1536x1536 (1536 × 1152), 2048x2048 (2048 × 1536) and the -scaled copy (2560 × 1920).
- 8.3 GB: about 4.6 GB is the 2,000 originals at the size you entered. The other 3.7 GB, about 1.9 MB per upload, is the seven files WordPress writes. The tool counts 1 KB as 1,024 bytes.
- The last line is what the code panel's filter saves: the 1536x1536 and 2048x2048 files are the two biggest registered sizes, about 0.8 MB per upload here, or 1.6 GB across the 2,000 uploads. The two totals above are rounded on their own, which is why 8.3 minus 6.6 looks like 1.7. It does not touch medium_large, which srcset uses.
Where the byte estimates come from
We uploaded one 5696 × 4784 photo (2,416,996 bytes) to WordPress 7.1.4 with PHP 8.3.36 and GD 2.3.3 at the default quality 82 on 2026-11-05 and recorded each file it wrote, then repeated it with WooCommerce 11.2.2 active on 2026-11-06. The 2048 × 1720 file was 600,786 bytes and the 150 × 150 thumbnail 7,017 bytes. The tool turns those seven files into bytes per pixel and scales them to the dimensions your uploads would get. For that photo it estimates 98,047 bytes for WooCommerce's three sizes; WordPress wrote 98,154.
When to use it
- Before a host move or a backup plan, to see how much of the uploads folder is generated copies.
- Before removing sizes, to see what that saves. The code panel stops the two sizes that have no setting in the admin.
- To see what WooCommerce or a theme's extra sizes add per upload. Across the 28 themes we measured, 16 added no sizes and the most was 5; our guide to WordPress thumbnail sizes lists each theme and the sizes it adds.
Sources
- WordPress Code Reference: add_image_size()
- WordPress Code Reference: image_resize_dimensions()
- WordPress Code Reference: intermediate_image_sizes hook
- WP-CLI Commands: wp media regenerate
Limits
- It is an estimate. Every upload is treated as the same size and shape, and bytes come from one photo saved with GD. Screenshots, flat graphics and very detailed photos compress differently, and Imagick writes different files.
- Extra theme and plugin sizes are each priced as an 800 px wide copy. A theme's real sizes may be bigger or smaller. Uploads 801 px wide or less get no extra files in the count, because WordPress would not make an 800 px copy of them, but a smaller size from your theme would still be made.
- It counts files WordPress writes on upload. Backups, cache plugins, WebP copies made by optimisation plugins and edited images are not included.
- Removing a size stops new files only. Old files stay until you delete them, for example with WP-CLI's wp media regenerate and its --delete-unknown option, after a backup. The guide to a WordPress uploads folder that is too big goes through the cleanup in order.
Guides for this tool
- Why Your WordPress Uploads Folder Is So Large
Your WordPress uploads folder is too large because one big photo becomes up to 8 files, plus theme sizes. Deregister unused sizes, then regenerate.
- WordPress Thumbnail Sizes: Why One Photo Becomes 8 Files
WordPress turns one large photo into up to 8 files: the original, a -scaled copy and 6 sizes. We tested 28 popular themes, WooCommerce and Elementor.
FAQ
Questions
Why is my WordPress uploads folder so big?
Because WordPress keeps more than one file per image. For a big photo, core writes six sizes and a -scaled copy next to the original: 8 files from one upload. In our 2026-11-05 test on WordPress 7.1.4 with 28 popular themes, one 5696×4784 photo became 8 to 13 files. With WooCommerce 11.2.2 active (2026-11-06) the most was 14. Enter your numbers above to see your own estimate.
Is it safe to remove image sizes?
Only sizes nothing on your site asks for. A page that asks for a size an image does not have gets the full-size image instead, which is a bigger download. 1536x1536 and 2048x2048 have no setting in the admin and the code above removes them, but srcset then has no 1536 or 2048 px choice for high-density screens. medium_large (768 px wide) is one of the widths srcset uses, so leave it unless you are sure.
How do I delete the derivative files I already have?
Removing a size stops new files; it does not delete old ones. WP-CLI's wp media regenerate has a --delete-unknown option, which its documentation describes as "Only delete thumbnails for old unregistered image sizes." Back up wp-content/uploads before you run it.