Beginners Guide to the WordPress Media Library

The WordPress Media Library is a core feature of WordPress that allows you to import, export, and organize images, videos, and graphics for your website. 

The tool also allows basic management features such as photo editing, bulk organization, and media search. 

If your WordPress website will be media-heavy – for example, a photography, portfolio, or blog website –  then mastering the WordPress Media Library is a must for success. 

Continue reading to learn more about:

Enjoy fast, secure hosting optimized for your WordPress site with our WordPress Hosting plans

First, let’s show you around the Media Library. Navigate to Media > Library in your WordPress dashboard

Once in the Media Library, you will see all of the media you’ve uploaded to your website. This includes media uploaded while creating a page or post, or media uploaded directly through the Media Library. The types of files you’re able to upload includes:

  • Images (.jpg, .jpeg, .png, .gif, and .ico).
  • Audio files (.mp3, .m4a, .ogg, and .wav).
  • Videos (.mp4, .m4v, .mov, .wmv, .avi, .mpg, .ogv, .3gp, and .3g2).
  • PDFs
  • Word documents
  • Excel spreadsheets
  • PowerPoint presentations
  • Adobe Photoshop documents

You can toggle between list or grid view by clicking the list or grid icon in the far left of the Media Library menu. The dropdown All media items allow you to sort your media by Images, Audio, Video, Documents, Spreadsheets, Archives, Unattached, and Mine.

The second dropdown, All dates, can refine the search of the first dropdown or serve as a lone date search for all media. The dates are organized by month and year.

Next, you can click Bulk Select to delete files in bulk. This feature can be used with search options within the dropdowns or the search field – which allows you to search by file name.

  • bulk select in the wordpress media library
  • sort options for wordpress media library
  • sort by date with wordpress media library
  • wordpress media library

Importing and Exporting Media

Importing Media

You can easily add media through the Media Library or within a page or post. To add media via the Media Library:

  1. Navigate to Media > Add New
  2. Drap and drop files from your computer or click Select Files to upload files from your computer.
  3. Once uploaded, your image or file will appear as a thumbnail below the file upload box. If you uploaded an image, you can also choose to Edit it on this screen. We’ll walk you through editing below. 
  4. If you navigate to Media > Library, you will see your newly added file.
  • upload image to media library
  • uploaded image in media library

You can also upload media while creating or editing a post or page. This convenience feature helps streamline your workflow by allowing you to import files where you are instead of having to go to the Media Library.

To upload files within a page or post:

  1. Click on the + icon within the editor or in the upper left corner.
  2. Search media or the name of the media you would like to add in the search box of the block library. For this example, we chose Image
  3. Once the Image block appears, click Upload.
  4. Select an image from your computer. It will be automatically uploaded and added to the post. 
  5. Click Publish or Update to save your changes. 
  • image added to post in wordpress

Exporting Media

If needed, you can also export the media uploaded to your website. 

  1. Navigate to Tools > Export
  2. Scroll down and click the radio button next to Media.
  3. Click Download Export File.

Of note, your file will export as an XML file, which makes importing to another WordPress site easy. 

exporting media files from WordPress

Editing Images 

You can make minor edits to your images with the Media Library. This includes the image blocks within pages and posts as well. 

In the WordPress Media Library

While in the Media Library (Media > Library), click on an image you would like to edit and then click Edit. Here you’ll have the option to Crop, Rotate left, Rotate right, Flip vertical, or Flip horizontal. In the right sidebar, you can scale the image and set an aspect ratio for greater control of the cropping/scaling of an image.

  • editing image in media library
  • image edit option in media library

In Pages and Posts

While editing a page or post, though presented differently, you have the same image editing options as the media library. Clicking on the image will show options above and to the right of the file. 

Above the image, a toolbar will allow you to crop and realign the image. While in the toolbar to the right, you will be able to resize the image. 

editing image in wordpress post or page

With the basics of the WordPress Media Library covered, learn more WordPress tips and tricks on our WordPress Education Channel!

Was this article helpful? Let us know!