WordPress Media Library Management: Folders, Cleanup, and Thumbnail Optimisation | Simple Automation Solutions

WordPress Development

WordPress Media Library Management: Folders, Cleanup, and Thumbnail Optimisation

After years of publishing, the WordPress Media Library becomes disorganised and bloated. Here is how to add folders, clean unused files, and maintain a lean media library.

SAS

Simple Automation Solutions

··⌛ 9 min read

FileBird
most widely used Media Library folder plugin
Media Cleaner
identifies unused files before deleting
5-10 files
generated per upload across all thumbnail sizes
Filename before upload
cannot change URL without breaking links

The WordPress Media Library starts as a clean grid of images. After a few years of active publishing, it becomes a disorganised archive of thousands of files with no folder structure, inconsistent naming, and significant storage overhead from unused media. Here is how to organise, clean, and maintain your Media Library properly.

The default WordPress Media Library problem

WordPress stores all uploaded media files flat in a single folder structure organised only by year and month of upload: /wp-content/uploads/2026/03/image-name.jpg. There are no native folders, no tagging, and no way to see which media files are attached to content vs unused. On an active site after 3-5 years, this creates:

  • Thousands of files in a single chronological structure with no content-based organisation
  • Multiple copies of the same image uploaded at different times
  • Multiple automatically generated thumbnail sizes per image consuming significant storage
  • Unused media files from deleted posts and pages that still occupy server space
  • No way to find a specific image except by scrolling or searching by filename

Adding folders to the WordPress Media Library

WordPress has no native folder system. Two plugins add folder organisation:

Free / Pro
FileBird
The most widely used Media Library folder plugin. Adds a draggable folder tree to the left side of the Media Library. Create folders, drag media into them, and organise by project, client, or content type. Free tier supports unlimited folders.
Free / Pro
Enhanced Media Library
Adds category and tag taxonomy to media files. More SEO-friendly than FileBird because categories appear in media file URLs and can be used to filter media in Gutenberg and Elementor.
Free
Real Media Library
Virtual folder system with drag-and-drop organisation. Similar to FileBird. Supports bulk operations within folders.
Folders are virtual — files stay in the same physical location

Media Library folder plugins add a virtual organisation layer to the WordPress database. The actual files remain in their year/month upload structure on the server. This means: switching plugins can lose your folder organisation (it is stored in the plugin’s database tables), and the physical file paths (used in your content) do not change.

Cleaning unused media files

Unused media files are those not attached to any post, page, or widget. They accumulate from deleted content, replaced images, and test uploads. Cleaning them frees server storage:

1
Install Media Cleaner

Media Cleaner by Jordy Meow scans your WordPress database and file system to identify media files with no attachment to any content. It shows a list of potentially unused files before deleting anything.

2
Run the scan in analysis mode first

Media Cleaner shows you what it considers unused before deleting. Review the list carefully — some legitimate uses (CSS background images loaded via a stylesheet rather than a post, manually linked images in HTML blocks) may not be detected as attached.

3
Mark files to keep before deleting

Any file you want to retain regardless of attachment status can be marked to exclude from deletion. Mark them before running the cleanup.

4
Delete confirmed unused files

After reviewing, delete the confirmed unused files. Media Cleaner moves them to a trash folder first, allowing recovery if something is deleted in error.

5
Verify your site after cleanup

Check all pages and posts after running a media cleanup to ensure no images have disappeared. Spot-check image-heavy content and product pages.

Managing thumbnail sizes

WordPress automatically generates multiple thumbnail sizes for every uploaded image. The default sizes (thumbnail 150×150, medium 300×300, medium_large 768px, large 1024px) plus any additional sizes registered by your theme or plugins can result in 5-10 image files per upload. On a site with 1,000 images, this means 5,000-10,000 files consuming significant storage.

  • Disable unused thumbnail sizes: use the Imsanity or Regenerate Thumbnails plugins to identify which sizes are actually used in your theme and disable unused ones in Settings › Media.
  • Regenerate thumbnails after theme changes: when you change your theme, existing images may need thumbnails regenerated at the new sizes. The Regenerate Thumbnails plugin handles this.
  • Set a maximum upload size: add add_filter('big_image_size_threshold', function(){ return 1600; }); to your functions.php to automatically downscale any image uploaded larger than 1600px wide, preventing storage of enormous original files.

Media file naming best practices

Descriptive file names improve SEO (Google reads filenames as context signals) and searchability in the Media Library. Best practices:

  • Use descriptive, hyphen-separated words: red-leather-sofa-living-room.jpg not IMG_4521.jpg or photo1.jpg
  • Include relevant keywords: if the image is used on your ‘WordPress development services’ page, name it wordpress-development-services-team.jpg
  • Rename images before uploading — WordPress uses the filename in the URL. You cannot change the URL after upload without breaking existing links.
  • Keep filenames lowercase with no spaces or special characters except hyphens

Media Library backup

The /wp-content/uploads/ folder is where all your media lives. It must be included in your backup. Many backup plugins back up the database but require explicit configuration to include the uploads folder:

  • UpdraftPlus: ensure ‘Files’ is checked in the backup settings alongside ‘Database’. The uploads folder is included in Files.
  • For very large media libraries (10GB+), consider backing up media separately from the database — media changes less frequently and full media backups are expensive on storage. A differential backup strategy (only back up new/changed files) is more efficient.
  • Store media backups off-site (Google Drive, S3, Dropbox) — a media library on the same server as your site is a single point of failure.

Need your WordPress Media Library organised and optimised?

Simple Automation Solutions audits, cleans, and structures WordPress Media Libraries for businesses worldwide — reducing storage overhead and improving content workflow.

Frequently asked questions

Can I change a media file URL after uploading in WordPress?+

You cannot change the URL of an already-uploaded file without either: (1) deleting and re-uploading with the correct filename (breaking any existing links to the old URL), or (2) creating a redirect from the old URL to the new filename using the Redirection plugin. For images already in use in posts, changing the URL requires also updating all post content that references the old URL. Use Better Search Replace to find and replace the old URL with the new one in the database after setting up the redirect. This is why correct naming before uploading is so important.

How much storage do WordPress thumbnails use?+

This varies enormously with the number of registered thumbnail sizes and your image dimensions. A rough calculation: if your theme registers 5 thumbnail sizes and you have 500 images, that is approximately 2,500 thumbnail files. At an average of 100KB per thumbnail file, that is 250MB in thumbnails alone, not counting original files. Sites with many plugin-registered thumbnail sizes (some page builders and WooCommerce register additional sizes) can accumulate gigabytes in thumbnails from a relatively modest number of original images.

Does renaming or deleting unused media affect SEO?+

Deleting images that are not used in any published content has no SEO impact — they are not indexed and not generating traffic. For images that are used in content: renaming or deleting them breaks the image display in that content and potentially causes 404 errors for any direct image links from other sites. Always use image URLs that are already in published content as-is. SEO improvements come from naming images correctly before first upload, not from renaming them after they are in use.

SAS
Simple Automation Solutions
Global WordPress Development Studio · Pakistan

Simple Automation Solutions is a global digital product studio specialising in WordPress and Bubble.io. We serve founders, startups, and businesses worldwide — delivering production-ready websites built to rank, convert, and scale.

Simple Automation Solutions

Business Process Automation, Technology Consulting for Businesses, IT Solutions for Digital Transformation and Enterprise System Modernization, Web Applications Development, Mobile Applications Development, MVP Development

Copyright © 2026