On this page
- Why the library can be empty when files exist
- Step 1: Rule out a simple display problem
- Step 2: Confirm the files are on the server
- Step 3: Check whether pages still show the images
- Step 4: Re-create the library entries
- What recovered images will and will not have
- If the files are gone too
- Avoid an empty library next time
- WordPress media library empty: common questions
- Conclusion
You open Media > Library and find nothing. No thumbnails, no file names, just a message that no media was found. Yet your site may still show images, and your server folders are full of files. A WordPress media library empty screen usually means the files are safe but WordPress lost its list of them. That is fixable.

Why the library can be empty when files exist
The Media Library is not a folder view. It reads a list stored in your database, where each upload is a record with its title, file path, and sizes. The files themselves sit in wp-content/uploads. If the records are gone, the library looks empty even though the files are untouched.
The most common triggers are:
- Restoring an older database backup over a newer one
- A migration that copied files but not every database table
- A database reset or a “clean install” tool
- A plugin conflict that hides attachments
- A failed import that skipped the media records
Step 1: Rule out a simple display problem
Before you assume data loss, check the basics.
- Switch between the grid and list view in the Media Library.
- Clear any filters and set the date filter to “All dates”.
- Disable your plugins one by one, especially media or optimization plugins.
- Switch to a default theme for a minute and look again.
If the library returns, a plugin or theme was the cause, and nothing was lost.
Step 2: Confirm the files are on the server
Connect by FTP or your host’s file manager and open wp-content/uploads. Look for year and month folders with images inside. If you see them, the files survived, and you can restore the library. If the folder is empty, you need a backup or the old server copy.
Step 3: Check whether pages still show the images
Open a post that had images. If the images still show, the pages store the addresses, and the files are working. The library is just missing its records. This is the exact case a recovery tool is built for.
Step 4: Re-create the library entries
A recovery plugin scans the uploads folder and adds back files that WordPress does not know about.
- Install Media Library Recovery Free from the plugin page.
- Go to Media > Media Recovery.
- Let the Media Explorer list your files.
- Select a batch and recover it. The free version handles up to 10 images at a time.
- Open Media > Library to confirm they appear.
For a big library, Media Library Recovery Pro has no file limit and supports video, audio, and documents too. Our guide to advanced search, quick recovery filters, and background processing shows how to work through thousands of files without waiting on the screen.
What recovered images will and will not have
A recovery rebuilds the basics: the file link, title, and type. It cannot bring back information that only lived in the old records, such as alt text, captions, or the original upload date. Plan some time to re-add alt text on important images. Search engines and screen readers use it, and Google explains why in its image SEO best practices.
For a wider walk-through of the process, read our guide to rebuilding the WordPress media database.
If the files are gone too
When both the records and files are missing, you have three options:
- Restore the uploads folder from a hosting or plugin backup.
- Copy files from the old server, if you still have access.
- Download images from a site copy, if a staging site holds them.
Once the files are back in place, run the recovery step above.
Avoid an empty library next time
- Back up the database and the uploads folder together, on the same schedule.
- Never restore only the database without checking the files.
- Test imports and restores on a staging site.
- Keep an extra uploads backup. Our help article on backing up your uploads folder shows how.
WordPress media library empty: common questions
Is my media gone for good?
Not if the files are in wp-content/uploads. The library is only a list of records, and the records can be rebuilt from the files.
Why does the site still show images if the library is empty?
Posts store the file addresses directly. The page can display the images while the library has no list of them.
Will recovered images keep their alt text?
Not if it lived only in the lost records. You can add alt text again after recovery. It is worth doing for key pages.
Can a plugin conflict cause an empty library?
Yes, some plugins change how attachments are queried. Disable plugins one by one to test, before you assume data loss.
Conclusion
A WordPress media library empty screen looks alarming, but if the uploads folder still has your files, you have not lost your images. Rule out display issues, confirm the files exist, and re-create the entries with a recovery plugin.
Start with the free version to get your first batch back.

