Using the WordPress Media Library Correctly: Efficiently Managing Images, PDFs, and Files
The WordPress Media Library is the central storage location for all files you use on your website. This includes images, logos, PDFs, videos, audio files, downloads, and other media. Every image in a post, every PDF on a download page, and many graphics in the design are managed through the media library.
A well-maintained media library saves time, reduces storage consumption, improves loading times, and helps with SEO as well as accessibility. On the other hand, a cluttered media library with unnamed files, missing alt texts, and oversized images can quickly become a problem.
What is the WordPress Media Library?
You can find the media library in the WordPress dashboard under:
Media > Library
There you can see all uploaded files. You can upload, search, filter, edit, delete files, and maintain metadata.
Typical file types in the media library:
- Images such as JPG, JPEG, PNG, GIF, and WebP,
- PDF documents,
- Logos and icons,
- Videos, if uploaded directly,
- Audio files,
- Downloads,
- Documents, if allowed by the system.
However, the media library is often not ideal for large videos. Videos should usually be embedded via specialized platforms or external video services to save storage space and bandwidth.
1. Uploading Files to the Media Library
You can upload new files in two ways:
- directly via Media > Add New Media File,
- directly in the editor when inserting an image, document, or block.
When you upload a file, WordPress stores it in the upload directory of your website. By default, uploads are organized by year and month, for example:
wp-content/uploads/2026/05/
This structure facilitates backups and file management. Therefore, in most cases, it makes sense to leave the month- and year-based organization activated.
2. Choosing Good Filenames Before Uploading
The filename should be cleanly chosen before the upload. While WordPress can change the title and alt text, the actual filename remains visible in the URL.
Good filenames are:
- short,
- understandable,
- lowercase,
- separated by hyphens,
- without umlauts,
- without special characters,
- thematically appropriate.
Examples:
- Good:
wordpress-mediathek-bild-bearbeiten.webp - Good:
curiaweb-logo-rot-weiss.png - Good:
hosting-vergleich-schweiz.pdf - Less good:
IMG_4837.JPG - Less good:
Bildschirmfoto 2026-05-15 um 14.23.11.png - Less good:
schönes großes Final!!!.jpg
3. Optimizing Images Before Uploading
Many images straight out of a camera, smartphone, or graphics program are far too large for the web. A photo with a width of 4000 pixels and several megabytes of file size is unnecessary for most website areas.
Before uploading, you should check:
- What image width is actually required?
- Is the image compressed?
- Does WebP make sense?
- Is the motif cropped correctly?
- Is the image used as a featured image, header image, or content image?
For many blog and content images, widths of around 1200 to 1600 pixels are sufficient. Small icons and logos require significantly less. Header images can be larger depending on the theme, but should still be compressed.
4. Editing Images Directly in WordPress
WordPress offers simple image editing functions directly in the media library. These do not replace a professional graphics program, but are sufficient for basic adjustments.
How to edit an image:
- Open Media > Library.
- Click on the desired image.
- Select Edit Image.
- Use crop, rotate, flip, or scale.
- Save the change.
Typical edits:
- Crop image,
- Rotate image,
- Scale image,
- Correct selection,
- Fix minor alignment errors.
For high-quality image compression, color correction, or WebP conversion, specialized tools or image optimization plugins are often better suited.
5. Understanding Title, Caption, Alt Text, and Description
When you open an image in the media library, you see several text fields. These are frequently confused.
| Field | Meaning | Recommendation |
|---|---|---|
| Title | Internal or visible file title, depending on theme/plugin | Keep it short and understandable. |
| Alternative Text | Description for accessibility and image comprehension | Precisely describe what can be seen in the image. |
| Caption | Optionally visible text below the image | Only use if a visible image caption makes sense. |
| Description | More detailed media description | Optionally useful for internal or media-heavy websites. |
6. Writing Alt Text Correctly
The alternative text, short alt text, is particularly important. It describes the image content for screen readers, search engines, and situations where an image cannot be loaded.
A good alt text is:
- concrete,
- short,
- understandable,
- contextually appropriate,
- not overloaded with keywords,
- not just a filename.
Examples:
- Good:
cPanel interface with open WordPress installation in Softaculous - Good:
Contact form on a WordPress website - Bad:
Image - Bad:
SEO WordPress Hosting Switzerland cheap fast buy
If an image is purely decorative, an empty alt text can also be useful depending on the theme or block. Content-relevant images, however, should be described.
7. Images and SEO
Images can contribute to search engine optimization if they are integrated cleanly. Filename, alt text, matching image size, loading time, and context within the post are important.
SEO-relevant points:
- descriptive filename,
- precise alt text,
- compressed file size,
- suitable image format,
- image is placed within a thematically appropriate text environment,
- no unnecessarily large images,
- no broken image links,
- correct image alignment on mobile devices.
The alt text should not be abused as a keyword list. Describe the image naturally and helpfully.
8. Managing PDFs and Downloads
In addition to images, PDFs are frequently uploaded to the media library, such as price lists, manuals, data sheets, forms, or brochures.
Pay attention to the following for PDFs:
- clear filename,
- current version,
- file size not too large,
- no confidential metadata,
- correct linking,
- accessible structure, if possible,
- remove or replace old versions.
If you frequently offer downloads, a download management plugin can be useful. For a few PDFs, the media library is usually sufficient.
9. Searching and Filtering Files
With many files, the media library quickly becomes cluttered. WordPress offers search and filter functions with which you can find media faster.
Typically, you can filter by:
- file type,
- month,
- upload date,
- search term,
- used media, depending on the view or plugin.
Good filenames help enormously to find files later. A file named hosting-checkliste-2026.pdf is much easier to find than scan-final-neu.pdf.
10. Deleting Unused Media
Old and unused media can occupy a lot of storage space. Nevertheless, you should not delete files blindly. A file can be used in posts, pages, widgets, page builders, theme options, CSS, or external links.
Before deleting, check:
- Is the file used in posts?
- Is it embedded on pages?
- Do the theme or page builder use the file?
- Is it integrated into a menu, widget, or header?
- Is it linked externally?
- Is it part of a download?
- Is there a backup?
11. Replacing Media Instead of Deleting and Re-uploading
If a PDF or image needs to be updated, it is often better to replace the file specifically instead of uploading a new file with a different name. WordPress does not always offer this comfortably by default, but there are plugins that can replace media.
This is useful for:
- price lists,
- PDF manuals,
- product data sheets,
- logos,
- team photos,
- download files.
Advantage: Existing links are preserved as long as the file is replaced under the same URL. Check the browser and website cache afterwards.
12. Keeping an Eye on Storage Space
Images, PDFs, and videos are often among the largest storage consumers of a WordPress website. Especially high-resolution images and old backups in the upload directory can take up a lot of space.
Check regularly:
- size of the upload folder,
- old PDF versions,
- media no longer required,
- very large images,
- videos in the media library,
- automatically generated image sizes,
- backups in the wrong directory.
13. Understanding Image Sizes
When you upload an image, WordPress creates several versions in different sizes depending on the media settings and theme. This makes sense because the original image does not need to be loaded everywhere.
Typical image sizes:
- Thumbnail,
- medium,
- large,
- Original,
- theme-specific sizes,
- WooCommerce sizes, if the shop is active.
These additional image files require storage space. At the same time, they help to deliver suitable image sizes for different areas. The solution is not to prevent all additional sizes, but to use sensible media settings.
14. WebP and Modern Image Formats
Modern image formats like WebP can significantly reduce file size without heavily degrading visible quality. Many current WordPress installations and browsers support WebP.
WebP is particularly suitable for:
- blog images,
- header images,
- product images,
- illustrations,
- large image archives.
For logos, icons, or graphics with transparency, PNG or SVG can also be useful depending on the case. SVG files, however, should only be used with caution and secure configuration, as they can contain code.
15. Do Not Upload Videos Directly Unnecessarily
WordPress can upload videos to the media library, but this is not always recommended. Video files are large and cause high bandwidth usage. For many websites, it is better to embed videos via a video platform.
Direct video uploads can be problematic due to:
- high storage consumption,
- slow loading times,
- high bandwidth,
- lack of adaptive quality,
- larger backups,
- poorer mobile usage.
For short internal videos or small files, the media library may suffice. For larger videos, a specialized solution is usually better.
16. Media Library and Data Privacy
Before uploading files, check whether they contain personal or confidential information. PDFs, screenshots, and images sometimes contain more data than is visible at first glance.
Pay attention to:
- personal data in PDFs,
- visible email addresses or customer data,
- metadata in documents,
- EXIF data in photos,
- internal information in screenshots,
- non-public downloads,
- indexability of sensitive files.
If files should not be publicly accessible, a normal upload to the media library is often not sufficient. In such cases, use protected download areas or appropriate access controls.
17. Media Library and Backups
The upload folder is a central component of your website. If images and PDFs are missing, posts appear incomplete, downloads do not work, and designs can look broken.
A full backup should therefore always include:
- database,
- WordPress files,
- theme files,
- plugin files,
wp-content/uploads/,- important configuration files.
A pure WordPress XML export is not sufficient to safely restore all media files.
18. SEO and GEO: Why Media Maintenance is Important
Well-maintained media help not only visitors but also search engines and AI-supported systems to understand content better. Images with sensible filenames, alt texts, and appropriate embedding provide additional context.
Important for SEO:
- descriptive filenames,
- precise alt texts,
- compressed images,
- no broken image links,
- suitable format,
- fast loading time,
- thematically appropriate context.
For GEO, i.e., Generative Engine Optimization, media are helpful if they clearly support the content. Screenshots, diagrams, product images, or step-by-step images can make explanations easier to understand. It is important that they are correctly labeled, accessible, and technically reachable.
19. Common Mistakes in the Media Library
- Unclear filenames: Files are difficult to find later.
- Umlauts and special characters: Can cause problems during migrations or backups.
- Oversized images: Slow down the website and increase backup sizes.
- Missing alt texts: Worse for accessibility and image comprehension.
- Unused media blindly deleted: Images are suddenly missing in page builders or theme areas.
- PDFs uploaded multiple times: Old versions remain linked.
- Videos uploaded directly: Storage and bandwidth are heavily loaded.
- Sensitive documents stored publicly: Data privacy risk.
Recommended Procedure
- Name files before uploading: Clear names without umlauts, spaces, and special characters.
- Downsize images beforehand: Only upload them as large as they are needed.
- Maintain alt texts: Precisely describe content-relevant images.
- Version PDFs cleanly: Check old documents and replace them if necessary.
- Check the media library regularly: Identify very large or outdated files.
- Delete unused media carefully: Check beforehand whether they are really not being used.
- Monitor storage space: Keep an eye on the upload folder and hosting limit.
- Create backups: Especially before major media cleanups.
- Clear cache after changes: Especially when replacing logos, PDFs, or images.
- Observe data privacy: Do not upload confidential files unprotected.
Frequently Asked Questions about the WordPress Media Library
Where do I find the media library in WordPress?
In the WordPress dashboard under Media > Library.
Can I edit images directly in WordPress?
Yes. You can crop, rotate, flip, and scale images in the media library. For professional optimization, external tools or image optimization plugins are often better.
What is the alt text?
The alt text describes the content of an image. It is important for accessibility, image comprehension, and search engines.
Should I downsize images before uploading?
Yes. Oversized images consume storage space and can degrade loading times.
Can I simply delete unused media?
Only with caution. Files can be used in page builders, theme options, widgets, or external links, even if WordPress shows them as unattached.
Why should I not use umlauts in the filename?
Umlauts, spaces, and special characters can cause problems during migrations, backups, or external systems. It is better to use simple, lowercase filenames with hyphens.
Are PDFs in the media library publicly accessible?
Usually yes, if someone knows the direct URL. For confidential files, you should use protected download areas.
Does the media library count towards hosting storage space?
Yes. All uploaded files occupy storage space in your hosting package, especially images, PDFs, and videos.
More Space and Performance for Your Media
A well-maintained media library saves storage space and improves loading times. With WordPress Hosting from CURIAWEB, you benefit from a fast NVMe infrastructure, Swiss server location, SSL included, and a stable foundation for image-rich websites, blogs, and corporate presences.
View WordPress Hosting from CURIAWEB