Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Download Your Entire WordPress Media Library (3 Ways)

Do you want to download all the images and media files from your WordPress website?

By downloading your media library, you can easily store a backup of your media files on your computer or, if you have created another WordPress site, then you can also transfer these images from one site to another.

In this article, we’ll show you how to easily download your entire WordPress media library, step by step.

How to download your entire WordPress media library

Why Would You Want to Download the Media Library?

The WordPress media library stores all the media files that you have uploaded to your site. If you want to create a backup of these media files, then you can easily do that by downloading a copy of the media library and storing it on your computer.

You can always use a fully automated WordPress backup solution to back up your entire WordPress site (including plugins, themes, posts, and the media library).

However, most backup plugins do not offer an easy way to just download and upload your media library.

You could also use your WordPress hosting account file manager or FTP to download the media library, but these methods are a bit complicated and confusing for beginners.

With that being said, we’ll show you some easy ways to easily download your entire media library in WordPress.

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

Method 1. Download Media Library Using The Export Media Library Plugin

For this method, we’ll be using a plugin to download the media files.

First, you need to install and activate the Export Media Library plugin. For more details, see our guide on how to install a WordPress plugin.

Upon activation, go to the Media » Export page from your admin area.

Once you’re on the ‘Export Media Library’ page, simply choose the ‘Single folder with all files’ option from the dropdown menu beside the ‘Folder Structure’ option.

Download the media library using the Export Media Library plugin

Now all your media will be downloaded into one folder. They will be downloaded as the original file types, such as JPG, PNG, or SVG.

If you want your media to be placed into separate folders based on the time of upload, then choose the ‘Nested Folder’ option from the dropdown menu.

After that, simply click the ‘Download Zip’ button, and your entire media library will be downloaded into a zip file on your computer.

Method 2. Download the Entire WordPress Backup Including Media Files

If you want to create a backup for your entire WordPress website including the media library, then this method is for you.

We’ll be using the Duplicator plugin which is the best WordPress backup plugin on the market and enables you to create a complete backup of your WordPress website.

First, you’ll need to install and activate the Duplicator plugin. For more details, see our guide on how to install a WordPress plugin.

Upon activation, you need to visit the Duplicator » Packages page from the admin sidebar and click on the ‘Create New’ button.

Create a new backup by clicking the Create New button

Next, you need to choose a name for your WordPress backup.

It can be anything that will help you identify the backup once it’s downloaded on your computer.

After that, click on the ‘Next’ button to continue.

Choose a backup name

In the next step, your website will be scanned for potential errors.

Once the scan is complete, simply click on the ‘build’ button to create your package.

Note: If an error is highlighted by Duplicator during the scan, you would need to solve that error before rescanning and building your package.

Scan complete

Once the package is built, you need to click on the ‘Download Both Files’ button.

Now, your installer and archive files will be downloaded simultaneously.

Click the Download both files button

Your WordPress website backup including media files will now be downloaded and stored on your computer.

If you want to restore a WordPress backup, you may also want to see our guide on how to restore WordPress from a backup.

Method 3. Download Media Library Using WordPress Settings

In this method, we’ll show you how to download your entire media library from your WordPress backend and import it to another WordPress website.

Note: This method allows you to download the media library without using any plugins. However, we do not recommend this method because it exports your media as an XML file.

This method can come in handy if you want to import your WordPress media library to one of your other websites.

For that, head over to the Tools » Export page from the WordPress admin dashboard.

Now that you’re on the ‘Export’ page, simply check the box beside the ‘Media’ option.

If you don’t want to download your entire library, then you can also select a date range for a specific time frame. With this feature, only the images uploaded during your chosen time frame will be downloaded.

Finally, click on the ‘Download Export File’ button.

Choose media on the export page

Now, your WordPress media library will be saved on your computer as an XML file.

Next, you need to install and activate the WordPress Importer plugin. For more instructions, please see our guide on how to install a WordPress plugin.

This plugin will allow you to import your XML file to another WordPress website.

First, you need to visit the Tools » Import page from the admin sidebar.

Then you can simply click on the ‘Run Importer’ link below the ‘WordPress’ option.

Click on the run importer link

This will take you to the ‘Import WordPress’ page where you need to click on the ‘Choose File’ button.

Now, you can upload your media library XML file from the computer.

Import media

Once you’re done, don’t forget to click on the ‘Upload file and import’ button to upload the media library.

We hope this article helped you download your WordPress media library. You may also want to see our tutorial on how to speed up your WordPress website, and our comparison of the best Instagram plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

45 CommentsLeave a Reply

  1. before it hit download, I have a silly question, does the export media library copy or remove my photos from my site? I just want to save a copy. Nowhere did I read that part???

    • Thank you for letting us know, we’ll be sure to keep an eye out for plugins ot methods we would recommend.

      Admin

    • Thank you for letting us know, we’ll keep an eye out for alternatives we would recommend.

      Admin

    • Thank you for letting us know, we’ll keep an eye out for alternatives we would recommend.

      Admin

    • There are normally multiple plugin options people can use, our recommendation is one we tested on the publish date of the article :)

      Admin

  2. Yep, the plugin recommended here has violations and is NOT available for downloading. Alternatives?

    • We do not have a recommended alternative at the moment but we will be sure to update our article once we find a plugin we would recommend.

      Admin

  3. For the first time, wpbeginner has failed me. The plugin downml is deprecated and is not available for download any more. can you please update the post.

  4. so why don’t people use the built in import/export tool from WP ? why use a plugin when functionality is already there ?

    • The built-in tool does not export the media library, it saves links to where the media is located and when you import the file it will have the option to download the media from where it was previously hosted :)

      Admin

  5. “This plugin was closed on October 23, 2018 and is no longer available for download. Reason: Guideline Violation”… please suggest us any other plugin…

    • Thank you for letting us know, we’ll be sure to look into alternatives for downML

      Admin

    • Thank you for letting us know, we’ll be sure to look into alternatives for downML

      Admin

  6. I also had problems with this plugin. The website for it is no longer alive, and the email contact offered bounced back.

    I have used WP File Manager to do this successfully, although it takes more steps.

    All-in-One WP Migration also lets you choose to only capture media files.

  7. I have a huge media library of 680 MB and the downml plugin displays an error. Is there a way to override tis or is there a plugin that can do this?

  8. So how do you import them and have it show up in the database? What plugin do you use for that?

  9. Hi , My wordpress media library having 771 files while exporting media library using downML plugin error occurs as – Media Library contains 771 files in excess of 174.46 MiB…Now how i export my media files is any other plugins there if anyone know the solution please let me know thanks in advance..

  10. Does not keep foder structure. Does not support öäå charachters (wordpress with utf-8mb4 sql)
    (down)

  11. Thanks for the article. Does anyone know if I can download my entire media gallery via ftp, optimise all photos on my PC and then re-upload without messing up the site? I’ve tried using some WP plugins for optimisation of photos, but I’m still not entirely happy with the result, so I’d like to do them on my PC. But then, I’d like to avoid having to edit all posts and pages in order to add the photos again.

  12. Just used the downML plugin after reading this post. The good news: it worked… the bad news, the zip folder is just the files i.e. it removes the folder path structure. If you need to quickly move things FTP or a better clone plugin is best.

  13. You can also use wp clone which makes a .zip file. If you only want the media just open the zip file and go to the wp-content folder and then uploads. It will all be in the folders that wordpress puts them in

  14. Please do you know of a way to download the Media Library from a WP.COM install?? It is crazy they say to do it manually.

Leave a Reply to WPBeginner Support Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.