Black Friday50% off every Pro template and membership with code50% off with Ends in 05days15hrs53min59secShop the sale →

How to Easily Get Uploaded Image URLs in WordPress

Introduction Sometimes, it is necessary for you to get the URLs of images that you uploaded on your WordPress website to use them for various purposes. For example, you may need the URL to add your image to another place…

How to easily Get Uploaded Image URLs in WordPress?

Introduction

Sometimes, it is necessary for you to get the URLs of images that you uploaded on your WordPress website to use them for various purposes. For example, you may need the URL to add your image to another place on your website. You can use the URL when you want to cite the source of any image, or you may also need the image URL to share it on social media platforms. For these reasons, in today’s tutorial, we will guide you on how to get uploaded image URLs in WordPress quickly. Let’s start with the following methods.

How to get image URLs after uploading in WordPress?

Method 1: Find WordPress image URLs from your media library

By default, after an image has been uploaded to WordPress, WordPress will automatically generate a unique URL for that image.

In WordPress, the URL of the uploaded image will include your domain name followed by /wp-content/uploads, date of image upload, and the image file name.

For example, when an image named ” beautifulbackground.jpg” is uploaded to ltheme.com in November 2021, it will have a URL like this:

“www.ltheme.com/wp-content/uploads/2021/11/beautifulbackground.jpg”

To find the URL of an uploaded image on your WordPress site, first log in to your WordPress dashboard. Then click on the Media menu on your dashboard. This will open the media library, where all your uploaded images and other media files are stored.

You will see a search bar at the top right corner of the page. You can use this feature to search for the image whose URL you want to get.

image19 1

When you click on that image, it will open a popup window with the image attachment details. In the right column, you will see the image detail that showcases all information including file name, file type, upload date, file size, dimensions, and image metadata such as image alt text, title, caption, description, image uploaded by, etc.

You will also see the image URL at the end. And the “Copy URL to the Clipboard” option is below the link. Let’s click on this button to get the link.

get uploaded image urls in WordPress 3

You can copy this link and utilize it for various purposes. In addition, when you open the image URL in your browser, you will get the full size of the uploaded image.

Method 2: Find the URLs of WordPress images from the front end

This way allows you to get the URLs of uploaded images in WordPress after they are published.

You only need to open a published page or post that contains the image whose URL you want to get. After that, right-click on the image and choose the “open image in a new tab” option.

photo99

After that, you will see the URL in the address bar in the new tab. You can copy and use it later.

get uploaded image urls in WordPress 1

How to get the URLs of GIFs, videos, and PDFs in WordPress

Similarly, you can easily get URLs of GIFs, videos, and PDFs in WordPress because they are also stored in the WordPress media library.

Go to Media > Library from your dashboard and choose a GIF, video, or document whose URL you want to get.

Then, the attachment details popup window will appear. It’s time to get the file URL by clicking on the Copy URL to clipboard button.

get uploaded image urls in WordPress 2

That was easy, wasn’t it?

Conclusion

We hope this article gave you the easiest methods to get uploaded image URLs in WordPress. If you encounter any problems while using the methods above, don’t hesitate to mention them by leaving a comment below.

Moreover, check out our Free WordPress themes which offer a lot of eye-catching, modern designs for your website. Let’s visit and try one for your site.

Build it with a template

Start from a finished design: Joomla templates, WordPress themes or the AI-ready block themes. Every template has a free version and a live demo.

Free download

We'll send the link, setup tips and update notices, and you can reach us anytime through our AI assistant and contact form.

The download starts at once. We email you the link and ask you to confirm your address. Privacy policy.