Feb 03, 2026
Aris S. & Ariffud M.
10min Read
The WordPress Media Library is the built-in system for storing and managing images, videos, audio files, and documents on your site.
This media manager keeps your files organized and accessible from wp-admin under Media → Library, where you can view them in a grid or list format, browse and search.
The image library includes an editor for cropping photos to exact pixel dimensions, rotating images, and adding alt text or captions without re-uploading files.
For advanced organization, plugins like FileBird add folder structures similar to Windows Explorer, while Enhanced Media Library lets you filter files using custom categories and tags.
Upload limits vary by hosting environment – typically 2MB on shared hosting, higher on managed platforms. You can increase this limit through your php.ini file, .htaccess, or hosting control panel when you need to upload high-resolution photos or videos.
The WordPress Media Library is a centralized repository that organizes all uploaded media files and displays them in a searchable interface within your WordPress dashboard.
In simpler terms, it’s the interface you use to view and edit files stored in your site’s wp-content/uploads folder.
To access the Media Library, open your WordPress admin dashboard and go to Media → Library in the sidebar.

When you upload a file or add an image to WordPress, the platform creates an attachment post type in the database.
This record stores metadata such as alt text, upload date, and uploader details, and links it to the file saved on the server.
The library supports several media file types, each suited to a different content use case:
Next, let’s see how to upload files to the WordPress Media Library.
To upload media to WordPress, open the Media Library in your admin dashboard and choose the files you want to add. Follow these steps:

You can also upload files by dragging and dropping them. Open the Upload New Media page and your computer’s file explorer side by side. Then, drag the files into the Drop files to upload area.
Important The maximum file size you can upload to the WordPress Media Library depends on your hosting provider’s settings. On most Hostinger plans that limit is 2GB.
Uploading media from the dashboard comes in handy when you want to prepare assets in advance. If you’re adding files to WordPress while creating a post or page, it’s faster to upload files directly through the block editor instead.
If you’re writing a post or page, the WordPress Gutenberg block editor lets you upload media without leaving the editor. This approach adds the file directly to your content and saves time.
First, open the post or page editor. Go to Posts → All Posts or Pages → All Pages in the WordPress admin sidebar, then click Edit on the item where you want to add media.
Once you’re in the editor, follow these steps:

WordPress uploads the file to the Media Library and inserts it into your post at the same time. As with the dashboard method, you can also drag and drop a file directly into the Media block.
Keep in mind that some Media blocks don’t support bulk uploads. For example, the Image block allows only one image, while the Gallery block lets you upload multiple files at once.
The WordPress Media Library includes a built-in image editor that lets you crop, rotate, and resize images directly from the dashboard.
To edit an image, open the Media Library by going to Media → Library in the WordPress admin sidebar. Select the image you want to change, then click Edit image to open the editor.
In the editing screen, use the buttons at the top to crop, scale, or rotate the image. You can also undo, redo, or discard your changes at any time.

When you’re finished, click Apply and Save Edits. WordPress updates the image used on your site, but it keeps the original file. If you need it later, you can restore the original by clicking Restore Image in the editor.

If you’re working inside a post or page, you can also edit images directly from the Image block. Click the image, then use the toolbar or the block settings panel in the right sidebar to make adjustments.
Adding captions and alt text to images helps improve search engine optimization (SEO) and accessibility.
Alt text improves accessibility and search visibility, while captions provide context that can support overall page relevance.
Both are important for accessibility because they describe images to screen readers, which helps visually impaired users understand your content.
To add captions and alt text, open the image from the Media Library. In the Attachment Details panel on the right, enter the caption and alt text in their respective fields. WordPress saves these details automatically.

When you insert an image into a post or page, WordPress automatically loads its alt text and caption. These details are stored as image metadata, so they stay attached to the file wherever you use it.
If you upload an image using the Image block in the block editor, you can add alt text from the block settings panel in the right sidebar. Captions, however, still need to be added through the Media Library.

Replacing files in the WordPress Media Library can cause broken links and 404 errors, if you don’t do it properly.
For example, if you delete logo.png and upload a new file with the same name, WordPress assigns it a new database ID. Any post linked to the old file may lose its connection or attachment settings.
To avoid this issue, use a plugin like Enable Media Replace. Here’s how:


This method updates every instance of the file across your site, even if it appears in hundreds of posts.
Keeping your WordPress Media Library organized helps maintain a smooth workflow, especially as your site grows and starts using thousands of media files. Below are practical ways to stay organized.
The WordPress Media Library offers two display modes: list view and gallery view. Knowing when to use each one makes it easier to find and manage your files.
Gallery view is the default option. It displays media in a grid with large thumbnails that you can scroll through continuously. This view works best when you want to visually scan assets and quickly spot a specific image.

That said, gallery view can be resource-heavy because it loads many files at once. In larger libraries, this may slow things down.
List view displays files in a table format. It shows useful details like the author, upload date, and the posts or pages where each file appears. It also includes checkboxes and quick actions that make bulk management easier.
Because list view uses pagination, it loads faster than gallery view. However, browsing a large collection can feel slower since you need to move between pages.
In practice, you’ll likely switch between both views depending on the task. You can toggle between them using the icons at the top of the Media Library.
Adding categories and tags to your media files makes them easier to find, even when you can’t remember the file name. It works much like grouping files into folders for better organization.
By default, WordPress doesn’t support folders, categories, or tags for media. To add this functionality, you’ll need a plugin such as Enhanced Media Library.
This plugin lets you create and manage media categories or tags from a simple dashboard. These labels also act as filters, which helps you narrow down files faster.
You can assign categories or tags from the Attachment Details panel, though bulk editing isn’t supported.

If you prefer a folder-based approach with a more visual interface, FileBird is a better fit. It adds a file explorer-style menu to the Media Library, where you can create folders and move files around just like on your computer.

Use the WordPress Media Library’s bulk selection features to manage multiple files at once.
In gallery view, click Bulk Select at the top of the screen, then choose the images you want to manage. By default, WordPress only lets you permanently delete files in this view.
In list view, select the checkboxes next to the files, choose an option from the Bulk actions menu, and click Apply. You can select all items quickly by clicking the checkbox in the first row of the table.

Besides permanent deletion, list view also lets you attach multiple images to a post or page at once. This option appears only when you select unattached files.
Clear file names make it easier to find specific assets in a large Media Library. They also help search engines understand your page content, which can improve visibility and rankings.
Follow these best practices when naming files:
Try to follow these rules every time you upload a file. Consistent naming is one of the easiest ways to keep your Media Library organized and searchable.
Media Library issues can show up when you upload, manage, or use files in WordPress. Below are some common problems and how to fix them.
Sometimes, the Upload button may be missing from the WordPress Media Library or a Media block.
This usually happens when your user role doesn’t allow media uploads. Administrators, Editors, and Authors can upload files, but Contributors and Subscribers can’t.
If you don’t have the right permissions, WordPress hides the Upload button.
Check your assigned role to confirm whether you’re allowed to upload media. If your role is incorrect, contact the site administrator to update it.
A missing Upload button can also come from a plugin conflict. To troubleshoot, check your browser’s console for errors or temporarily deactivate recently installed plugins to find the cause.
If you can’t upload files to the WordPress Media Library, the issue may be incorrect folder permissions. The wp-content/uploads/ folder should use the 755 permission.
The key number here is 7, which allows WordPress to read, write, and execute files in the folder. Without write access, WordPress can’t upload or modify any files.
Check out our tutorial on the chmod command and Linux permissions to learn what 755 means and how to fine-tune permissions.
You should also set all files inside the uploads folder to 644. This allows WordPress and the web server to read and manage media files without security risks.
Here’s how to update permissions using Hostinger File Manager. If you’re using a different hosting panel or an FTP client, the steps may look slightly different, but the process is similar:


Missing media files usually show up as broken icons on the front end. This issue often happens for a few common reasons:
Once you identify the cause, try these fixes:
After making changes, clear both your site cache and browser cache. Cached data can cause images to appear broken even after you fix the issue.
When you upload large files, you may run into size limits. These limits usually range from a few megabytes to 2 GB, and WordPress shows the exact limit in the Media Library upload screen.

If a file exceeds the limit, WordPress displays an error saying the upload is too large. While your hosting provider sets this limit, you can often increase it using one of these methods:
For step-by-step instructions, check our tutorial on how to increase the maximum file upload size in WordPress.
Optimizing media files helps keep your WordPress site fast and improves search rankings. As your library grows, poor media management can slow things down.
Uploading raw, full-resolution images straight from a camera or stock site is one of the quickest ways to hurt site performance.
Large files use more storage and bandwidth, which leads to slower page loads. That frustrates visitors and can impact Google rankings.
To avoid this, compress files before uploading them. Compression reduces file size while keeping image quality intact.
You should also choose the right file format for each use case. For example, icons work best as ICO files because they support transparency and stay sharp at small sizes. JPEG files don’t offer the same results.
Organizing and optimizing your Media Library is just one part of improving site speed. For a deeper, step-by-step approach, check out our complete guide on how to optimize images in WordPress.
All of the tutorial content on this website is subject to Hostinger's rigorous editorial standards and values.