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.
Your WordPress uploads folder is large because WordPress never stores one file per image. Every upload triggers a fixed set of resized copies alongside the original: seven of them for a typical landscape camera photo (six for a large 3:4 portrait resized on the server), before any theme or plugin adds more. The fix is to stop generating the sizes you never serve, then regenerate so the old copies get deleted from disk.
Do the arithmetic
Upload one 4000×3000 JPEG and look inside /wp-content/uploads/2026/07/. You won’t find one file. You’ll find these:
photo.jpg: the original, untouchedphoto-scaled.jpg: a 2560px copy WordPress serves instead of the originalphoto-150x150.jpg:thumbnailphoto-300x225.jpg:mediumphoto-768x576.jpg:medium_largephoto-1024x768.jpg:largephoto-1536x1152.jpg: the 2×medium_largephoto-2048x1536.jpg: the 2×large

That’s the original plus seven copies, from core alone. In the byte-level test below, a photo of 2,416,996 bytes (2.31 MB, counting 1 MB as 1,048,576 bytes, as the table below does) took 4,589,977 bytes (4.38 MB) on disk, 1.90 times its own size, before any plugin ran. Themes and plugins add to it. When we uploaded the same photo under each of the 28 themes on wordpress.org’s Popular list with 50,000 or more installs, 16 added no sizes and the rest added up to five (Sydney, 13 files per upload). WooCommerce adds three more (see WooCommerce’s own default product-image sizes if that’s your setup), and OceanWP with WooCommerce made 14 files from one upload. The guide to WordPress thumbnail sizes has the result for each theme. Multiply by a library of a few thousand images and the folder size stops being a mystery.
If you want the exact number for your own library, the WordPress Media Library Size Calculator does the multiplication for you.
What it actually costs on disk, in kilobytes
Pixel dimensions tell you how many files you get, but not where the disk space goes. For that we ran a separate, byte-level measurement on 2026-11-05: WordPress 7.1.4 in WordPress Playground, PHP 8.3, GD image editor, default JPEG quality 82, default 2560px scaled threshold, Twenty Twenty-Five, no plugins. The photo was uploaded through media_handle_sideload(), the same code path a Media Library upload uses. It was a real CC0 photo (5696×4784, 2,416,996 bytes, “Agave Wash” by Alan Schmierer, Wikimedia Commons), and every resulting file was measured with filesize(). The 16 themes that add no sizes all produced byte-identical files, so the run repeats exactly. Every row of that benchmark is in the image size benchmark CSV, listed with our other datasets on the data page.
| File | Dimensions | Size on disk | % of the 8-file total |
|---|---|---|---|
| Original (unresized) | 5696×4784 | 2,360.3 KB (2.31 MB) | 52.7% |
-scaled (served instead of the original) | 2560×2150 | 864.1 KB | 19.3% |
2048x2048 | 2048×1720 | 586.7 KB | 13.1% |
1536x1536 | 1536×1290 | 358.5 KB | 8.0% |
large | 1024×860 | 178.3 KB | 4.0% |
medium_large | 768×645 | 107.6 KB | 2.4% |
medium | 300×252 | 19.9 KB | 0.4% |
thumbnail | 150×150 | 6.9 KB | 0.2% |
| Total (8 files) | 4,482.4 KB (4.38 MB) | 100% |
That measurement also gives a real before/after for the fix in the next section. Deregistering medium_large, 1536x1536 and 2048x2048 (step 2 below) removes exactly those three rows: 1,078,109 bytes (1,052.8 KB). That drops the per-upload total from 4,589,977 bytes to 3,511,868 bytes, 3.35 MB, a 23.5% cut, without touching the original, the -scaled copy, or the three sizes a typical theme still serves. This is arithmetic on the measured per-file bytes, not a separate wp media regenerate run.
Limits on this measurement, stated plainly: one photo, one theme, GD not Imagick, Playground not a real host, no plugins active. Byte counts will shift with a different photo, Imagick, WebP/AVIF output, or a different JPEG-quality filter (raising quality from 82 to 92 made each copy 57% to 102% larger in our compression test). The file count in the earlier list is what holds across setups; the KB figures above are this specific, real run.
Why it happens
When you upload, wp_generate_attachment_metadata() calls wp_create_image_subsizes(), which loops over every registered size (after the intermediate_image_sizes_advanced filter) and writes a file for each one the original is large enough to produce. Core registers thumbnail, medium, medium_large, large, plus the 1536x1536 and 2048x2048 high-density sizes added in WordPress 5.3. Any theme or plugin that calls add_image_size() adds to that same loop, for every future upload. The WordPress image sizes cheat sheet lists the core defaults and WooCommerce’s sizes on one page.
The -scaled file comes from a separate mechanism: the big_image_size_threshold filter, default 2560px. Anything wider or taller gets a scaled copy that becomes the served “full” image, while the original stays on disk. So a large upload keeps both the giant original and the 2560px version. Since WordPress 6.8 that applies to large PNG files too; up to 6.7 they were skipped (read from the 6.7 and 6.8 source). A photo under the cap that carries an EXIF rotation flag gets a -rotated copy instead, with the same effect on disk. Our guide on why WordPress adds -scaled to images covers that mechanism in depth, including when raising or removing the threshold is actually worth it.
You can see exactly what your setup generates for a given image with the WordPress Image Size Lab.
WordPress 7.1 can also create these copies in the browser instead of on the server, in Chrome and Edge 137 and later on an HTTPS or localhost site. In our test on 16 November 2026 (WordPress 7.1.4, Chromium 159, Playground on localhost), a block-editor upload resized in the browser got the same 8 file names and pixel sizes as a Media Library upload, but not the same bytes: for that 3,000 × 2,000 test JPEG, the 7 copies the browser made came to 2,312,011 bytes, against 2,156,024 from GD on the server, about 7% more (4.6% to 9.0% per copy). In another run, a 5,000 × 3,000 image with a 3,840 px threshold, the browser made medium_large 767 × 460 where the server made 768 × 461. The byte figures above come from GD on the server.
How to fix it, in order
1. Measure before you touch anything. Guessing wastes time. From the site root:
du -sh wp-content/uploads
find wp-content/uploads -type f \( -name '*.jpg' -o -name '*.webp' -o -name '*.png' \) | wc -l
du -ah wp-content/uploads | sort -rh | head -20
2. Deregister the sizes you don’t serve. Know what they do first. Your theme may never ask for 1536x1536 or 2048x2048 by name, but WordPress adds both to srcset wherever it prints an image at a matching shape, and high-density screens pick them. Without them, srcset tops out at the 1024px large copy (unless the full size is the src), so on a 2x screen an image shown wider than about 512 CSS pixels gets softer. Many themes never use medium_large either. Before you drop anything, confirm what your theme actually loads for its featured image; see WordPress featured image size if that’s one of the sizes you were about to remove. Then drop the rest:
// functions.php: stop generating sizes this site never outputs
add_action( 'init', function () {
remove_image_size( '1536x1536' );
remove_image_size( '2048x2048' );
} );
// Drop medium_large too, if your theme doesn't use the 768px size
add_filter( 'intermediate_image_sizes', function ( $sizes ) {
return array_values( array_diff( $sizes, array( 'medium_large' ) ) );
} );
This uses the intermediate_image_sizes filter, not the better-known intermediate_image_sizes_advanced, and the reason is the browser path above. In our 16 November test, the older version of this code, with intermediate_image_sizes_advanced, still let a block-editor upload get the 768px medium_large file, because that filter has no effect when the browser makes the sizes: WordPress 7.1 replaces its result with an empty list and lets the browser make every size it lists as missing. The code above stopped all three sizes in the block editor and in the Media Library, and the image still got a srcset. The WordPress hooks index lists intermediate_image_sizes_advanced with this catch.
3. Regenerate to delete the old copies. Deregistering only stops future generation. The files already on disk stay until you regenerate:
wp media regenerate --yes
wp media regenerate deletes each image’s old copies before it rebuilds them, unless you pass --skip-delete. In our WP-CLI 2.12.0 test, a copy made for an old size setting was removed this way. If you’re on the Regenerate Thumbnails plugin instead, tick its option to delete thumbnail files for old unregistered sizes; without that box checked, the old files remain. We have not tested that plugin option.
4. Hunt orphaned files. Switching themes never cleans up the sizes the old theme registered, because those files stay listed under each image until you regenerate. Deleting a post does not delete its images either; they stay in the Media Library. Deleting the image itself is cleaner than its reputation: in our benchmark, deleting each test image as an attachment, the same delete the Media Library runs, left 0 files every time, whether it had 8 files or 14. The one exception we found is an image regenerated after the cap was turned off with __return_false: deleting it left its original on disk, 4 times out of 4, because WordPress no longer had that file on record. After step 3, if du -sh is still far above what the calculator predicts, you have orphans: files on disk that no attachment references.
What not to do
Don’t turn off scaled images to “save space.” It does save some, but only on future uploads and at a cost. With big_image_size_threshold turned off, WordPress stops writing the -scaled copy, which was 884,855 bytes (19.3%) of the upload above. Images already in the library keep theirs, because regenerating after __return_false leaves the old -scaled file in place. And WordPress then serves the full multi-megabyte original wherever a theme shows the full size, which usually makes page weight worse. That’s a bandwidth and quality decision, not a storage cleanup. The Disable WordPress -scaled Images generator explains when it’s actually the right call. And if your real complaint is sharpness rather than storage, read why WordPress images look blurry after upload before touching this setting, because the fix for blur usually isn’t this filter either.
Don’t delete files straight from uploads over SFTP. Each attachment’s subsize list lives in its _wp_attachment_metadata. Deleting files by hand leaves broken references, and regeneration can’t rebuild a size if you’ve removed the original it’s derived from. Delete the original and that image is gone for good.
Don’t set thumbnail/medium/large to 0 in Settings → Media expecting the folder to shrink. Zeroing a size stops future generation but touches nothing already on disk, and the screen has no fields for medium_large, 1536, 2048, or any theme or plugin size.
Don’t blame the database. A heavy uploads folder is image files, essentially never the DB. Optimizing tables won’t move the number.
Still stuck?
If the folder is still larger than expected after regenerating, run your real upload count and registered sizes through the storage calculator and compare its figure to du -sh wp-content/uploads. A big gap means orphaned files from an old theme or a leftover original like the one above, not core, and not something more regenerating will fix. A small gap means the math is simply what it is: up to eight files per upload from core, more with theme and plugin sizes, working exactly as designed.
Sources
- WordPress Developer Resources: big_image_size_threshold, intermediate_image_sizes, intermediate_image_sizes_advanced, remove_image_size(), wp_delete_attachment_files()
- WP-CLI Handbook: wp media regenerate
- Block Editor Handbook: Client-side media processing architecture
- WordPress 7.1.4 source: wp-admin/includes/image.php, wp-includes/media.php, wp-includes/post.php
- WordPress 6.7 source, with the PNG exception: wp-admin/includes/image.php
William Lopez is the founder of Odie Themes. He builds the free WordPress tools and themes on this site and has been on WordPress.org since December 2019.
FAQ
Questions
Why does WordPress create so many copies of every image I upload?
WordPress generates a fixed set of resized copies on every upload. A large landscape JPEG lands as the original plus seven files from core alone: -scaled, thumbnail, medium, medium_large, large, and the two high-density sizes. When WordPress makes the sizes on the server, as in our test, a large 3:4 portrait gets six, because large and medium_large share one 768×1024 file. In our test of 28 popular themes, one upload made 8 to 13 files depending on the theme, and 14 with OceanWP plus WooCommerce.
What is the -scaled version of my image in WordPress?
The -scaled file is a 2560px copy WordPress serves instead of your original whenever an upload is wider or taller than the big_image_size_threshold, 2560px by default. Your untouched original stays on disk too, so a large upload keeps both files.
How do I stop WordPress from generating image sizes I never use?
Deregister them in functions.php using remove_image_size for 1536x1536 and 2048x2048, and drop medium_large with the intermediate_image_sizes filter. Avoid intermediate_image_sizes_advanced for this: in our WordPress 7.1.4 test, it had no effect on block-editor uploads resized in the browser. Deregistering only stops future uploads, so run wp media regenerate --yes afterwards to delete the copies already on disk. Removing the 1536 and 2048 sizes also takes them out of srcset, so images can look softer on high-density screens.
Can I delete files from wp-content/uploads over FTP to free up space?
No. Each attachment's subsize list lives in its _wp_attachment_metadata, so deleting files by hand leaves broken references. Regeneration cannot rebuild a size once you have removed the original it derives from, and deleting an original loses that image for good.
Does setting image sizes to 0 in Settings Media shrink the uploads folder?
No. Zeroing thumbnail, medium, or large stops future generation but touches nothing already on disk. The Settings Media screen also cannot reach medium_large, 1536, 2048, or any size a theme or plugin registered, so most of the files stay exactly where they are.
More guides on this topic
- WordPress Thumbnail Sizes: Why One Photo Becomes 8 Files
- WooCommerce Product Image Size: Defaults and How to Change
- Why WordPress Adds -scaled to Images and How to Stop It
- Stop WordPress Compressing Your Images at 82%
- WordPress Featured Image Size: 1200×630 + How to Find Yours
- Why WordPress Images Look Blurry After Upload, and the Fix