Cleaning Up the WordPress Media Library: Folders, Alt Text and Image Provenance

Alt text in WordPress, folders and image provenance: how to clean up your media library safely, write good alt text and read image metadata correctly.

Your WordPress media library grows with every post. After a while, it’s full of files like “IMG_4711.jpg,” old drafts and logos in several versions—and hardly anyone remembers which image is used where. Alt text is often missing too, because WordPress leaves the field empty until someone fills it in.

In this post, I’ll show you how to clean up your media library without breaking anything, what good alt text in WordPress looks like and what an image’s metadata does—and doesn’t—tell you about where it came from.

Why a Cluttered Media Library Becomes a Problem

A messy media library is more than a cosmetic flaw. In everyday work, you’ll notice it in three places:

  • Storage space: When you upload an image, WordPress creates several scaled-down versions, and your theme and plugins often add even more. One photo turns into several files on the server.
  • Backups: Every file ends up in your backup. The bigger the uploads folder, the longer backups and restores take.
  • Search: Out of the box, the media library only offers a search field and filters by file type and date. Without meaningful titles and file names, you’re often left scrolling.

How to Clean Up the WordPress Media Library

Descriptive File Names and the Right Sizes

Keeping things organized starts before you upload. A file name like “blue-ceramic-mug-side-view.webp” tells you right away what’s in the picture, and WordPress uses it as the title of the media item and in the file’s URL. Stick to lowercase letters and hyphens—no accented letters such as German umlauts, and no special characters. Without a plugin, you can’t rename a file in WordPress after uploading it.

Before uploading, resize photos from your camera or smartphone to the width your layout actually needs. WebP is a good default format: the files are often smaller than JPEGs at comparable quality, and current WordPress versions handle it as long as the server supports it. From an image’s sizes, WordPress generates the srcset attribute, so a smartphone loads a small version and a large screen a bigger one. On my own website, every image is stored as WebP in several sizes. You can read more about images and load time in my post on Core Web Vitals.

Folders in the Media Library

On the server, WordPress sorts uploads by year and month by default, but you don’t see any of that in the media library. Folders by topic—such as “Team,” “Case Studies” or “Blog”—require a plugin. Pay attention to whether it only sorts files within the admin or actually moves them on the server. If files are moved, their URLs change, and embedded images may end up broken.

Delete Unused Files Carefully

When cleaning up, care matters more than speed, because a missing image sometimes goes unnoticed for weeks. Work through it in this order:

  1. Make a complete backup of the database and the uploads folder.
  2. Don’t rely on the “Unattached” filter alone. It only tells you that a file isn’t attached to a post. The image may still be used in another post, in a widget, as a logo in the theme or in a page builder.
  3. Think about outside references: newsletters or PDF documents sometimes link directly to an image file.
  4. Delete in small batches, and check your most important pages afterward.

You can control who on your team is allowed to delete files with roles—more on that in my post on WordPress user roles.

Writing Good Alt Text in WordPress

Alternative text—alt text for short—is a brief description in the image’s code. Screen readers read it aloud to blind and visually impaired people, browsers display it when an image doesn’t load, and search engines use it to understand images, including for image search. It’s a basic building block of accessibility, and it takes very little effort.

What Good Alt Text Looks Like

Good alt text describes what’s shown and what job the image does in that spot. It’s short, specific and doesn’t start with “Image of”—the screen reader already says that. Three examples:

  • Product photo: “Blue ceramic mug with a wide handle, side view” instead of “mug” or “buy mug cheap mug mug online.”
  • Linked logo: If the logo leads to the homepage, the alt text names the company and the destination, such as “Acme Inc.—go to homepage.”
  • Chart: Describe the takeaway, not the shape—“Inquiries through the contact form rise over the course of the year” instead of “bar chart.”

Decorative Images and Keyword Stuffing

Purely decorative images—background patterns, dividers, mood shots with no message of their own—get an empty alt text so screen readers skip them. A caption doesn’t replace alt text either: every visitor sees the caption, whereas the alt text stands in for the image itself.

Avoid keyword stuffing. A string of search terms helps neither screen reader users nor image search, and search engines may treat it as an attempt at manipulation. If a keyword fits the description naturally, it’s fine to include it. You’ll find more of the basics in my post on WordPress SEO plugins.

Where WordPress Stores Alt Text

You manage alt text in the media library under “Alternative Text” or directly in the editor’s Image block. When you insert an image, the block editor copies the text into the post. If you change it in the media library later, images you’ve already inserted usually keep the old text. So check your important pages in the editor as well.

Image Provenance and Metadata: What They Show—and What They Don’t

Image files often contain metadata. When it comes to provenance, three standards matter most:

  • IPTC: fields for creator, copyright notice, description and source, used by photographers and stock photo agencies. Newer versions also include a field indicating whether an image was, for example, photographed or generated with AI.
  • XMP: a format in which image editing programs store descriptions, rights information and editing notes—often including the IPTC fields.
  • C2PA: an open standard for provenance information, also known as “Content Credentials.” Cameras, image editors and AI tools can use it to record, with a cryptographic signature, how an image was created and edited.

This information can show who took a photo or whether it’s labeled as AI-generated. But it has its limits. Metadata can be missing, incomplete or stripped—some platforms and image editors delete it when you upload or convert a file, and the scaled-down versions WordPress creates often lack it too. Simple fields like IPTC can also be edited by anyone. A valid C2PA credential shows who signed the information and whether the file was changed afterward; it doesn’t prove that what’s shown is true. And missing information proves neither that an image is genuine nor that it was made by AI.

Metadata also doesn’t replace a license. Keep the license terms from stock agencies and your agreements with photographers, and ideally note the source right when you upload, for example in the media item’s description.

How I Solve This With KakapoWP

For these tasks, I built Kakapo Media, one of nine plugins in the KakapoWP family. Like every plugin in the family, it runs locally on your own server, with no third-party cloud.

  • Folders: You sort files into folders by drag and drop. Nothing gets moved on the server, so your image URLs stay the same.
  • Cleanup: The plugin finds files that aren’t used anywhere anymore. I still recommend making a backup before you delete anything.
  • Alt text: An overview lists every image without alt text, and you fill in the text in bulk instead of one image at a time.
  • Image provenance: Kakapo Media reads an image’s provenance from its metadata (C2PA, IPTC and XMP), rates it on a four-level scale and also shows what the metadata doesn’t prove. No image is sent to an outside service for this.

Kakapo Performance takes care of load times, with features like lazy loading and a page cache. Other media library plugins also offer folders and cleanup tools—what matters is that you understand what a plugin does with your files. I introduce all nine plugins at kakapowp.com.

Frequently Asked Questions

Does every image need alt text?

Every image needs an alt attribute, but not every image needs text in it. Describe images that carry content; purely decorative images get an empty alt text.

How long can alt text be?

As short as possible, as long as necessary—often a single sentence is enough. Complex graphics are better explained in the surrounding text, with the alt text summarizing only the key point.

Does metadata prove that an image was created with AI?

No. It can offer a clue if a tool wrote that information into the file. But if it’s missing, you can’t conclude that an image is genuine—the metadata may simply have been removed.

The Bottom Line

A tidy media library saves storage space, keeps backups lean and helps you find images again. Good alt text in WordPress makes your website more accessible and helps search engines understand your images. Metadata offers clues about where an image came from, but it isn’t proof. Take it one step at a time: back up first, then sort, then delete.

Want to clean up your media library but not sure where to start? I’m happy to go through it with you in a free call—by phone or video. Book a call here.

Marcel Czeranski

Web designer and developer based in Berlin. I build WordPress websites, apps, and plugins—and run my own digital products: Sponties, Fleißstern, Todoly, and KakapoWP.

More about me