Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Get the URL of Images You Upload in WordPress

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to find the link or URL of the images you have uploaded in WordPress?

Sometimes, you may need to get the link to an image to display it in other areas of your website or social media platforms.

In this article, we will show you how to easily get the URL of images that you upload to your WordPress site.

How to Get the URL of Images You Upload in WordPress

Video Tutorial

Subscribe to WPBeginner

If you prefer written instructions, just keep reading. We have several topics covered in this article, and you can use the quick links below to navigate through them:

How to Find the URL of an Image in WordPress (Step by Step)

When you upload images, WordPress automatically creates a unique URL for them using the default WordPress media uploader.

Usually, a WordPress image URL includes your domain name followed by /wp-content/uploads/, the date of the image upload, and the image file name.

For example, an image named ‘travelaccessories.jpg’ uploaded to example.com in January 2023 will have a URL like this:

www.example.com/wp-content/uploads/2023/01/travelaccessories.jpg

Now, let’s take a look at how to get the URL of images uploaded to your WordPress website.

First, you need to log in to your WordPress admin area and click on the Media menu. Once done, it will open your media library, where all your images and other media files are stored.

Next, you can use the search feature to enter the image name that you want to find the link for.

Search Image in WordPress Media Library

Once you click on the image, it will open a popup window with the image attachment details. You will see the image details in the right column and an image preview on the left.

The right column displays all image details, including the file name, file type, upload date, file size, dimensions, and image metadata like image alt text, title, caption, description, image uploaded by, and more.

You will also see the image URL at the end. It is the link in the ‘Copy Link’ box.

Find WordPress Image URL

You can simply copy the link and use it anywhere you like.

If you open the image URL in your browser, then you can see the full-size original version of the image uploaded.

How to Find Your WordPress Image URL From the Front End

The method shown above lets you get the URL of any image uploaded to your WordPress blog, whether it is published live or not.

If you want to get the URL of images already published on your site, then you can get it from the front end itself. It is much easier!

Just open a page or post where the image is published and find the image. After that, right-click on the image and select the ‘Open image in new tab’ option.

Open WordPress Image in a New Tab

Once the image opens in the new tab, look at the URL in the address bar.

That is your WordPress image URL.

Get the URL of Images in WordPress

Now, you can copy the image address and use it anywhere you want. Note that you can also find this URL by clicking on ‘Copy image address’ instead.

How to Find Multiple WordPress Image URLs

If you want to find the image URLs for multiple images, then there is a quick and easy way to do this. Rather than manually searching for each image, you can view the page source.

Simply visit the WordPress post or page on the front end. Then, right-click on the page itself and select ‘View page source’.

View page source to see WordPress image URL

This will open a new tab in your browser where you will see the source code for the page.

Here, you can manually look for and copy each image URL on the page.

Copying a WordPress image URL

How to Get the URL of GIFs, Videos, and PDFs in WordPress

As we mentioned earlier, other media files like GIFs, videos, and documents like PDFs are also saved in the WordPress media library. You can easily find the URL of these files by following the same steps as shown above.

Go to Media » Library from your dashboard, and then click on a GIF, video, or document whose file URL you want to see. After that, the Attachment Details popup window will appear.

GIF URL in WordPress

You can get the attachment URL next to the ‘Copy Link’ option in the right column.

For more tips and tricks to organize your images and files in WordPress, check out these guides below:

We hope this article helped you to learn how to get the URL of images you upload in WordPress. You may also want to see our guide to basic image editing in WordPress and our expert picks for the best WordPress image compression plugins.

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. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

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

17 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. GARY MCKENZIE says

    How do you change the image url from example.com/wp-content/uploads/2023/01/image.jpg to example.com/image.jpg

    • WPBeginner Support says

      You would need to disable images being uploaded to folders under Settings>Media as that would be why your images are being included in the different dated folders.

      Admin

  3. Jiří Vaněk says

    You can also directly copy the address of the image using the right mouse button. Is it more practical or better to open it in a new tab as you show in the instructions?

    • WPBeginner Support says

      We recommend opening in a new tab to ensure the image loads properly but you could manually copy the image url like that and check the URL in a new tab.

      Admin

  4. yligman says

    Hallo Mr Wpbeginner

    Please i need information for url post wp. Localhost host and live hosting. Is there anyway for fix url for all url link domain?

    Regards

    Yligman

  5. Rahul says

    Hello,

    I there any way to bulk export the image url ? I am using the website for eCommerce where multiple images of product are required so,

    • WPBeginner Support says

      We do not have a recommended method for what it sounds like you’re wanting at the moment.

      Admin

  6. Jordan says

    Does google analytics track this part of your website? So I’m linking ” ” on another website. When I test going to the link im not seeing the traffic in google analytics.

  7. Marco Panichi says

    And the next question is: where I can find all the versions created after the upload?
    I mean, the large, medium, thumb sized version of the image.

Leave a Reply to Marco Panichi 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.

WPBeginner Assistant
How can I help you?

By chatting, you consent to this chat being stored according to our privacy policy and your email will be added to receive weekly WordPress tutorials from WPBeginner.