A comprehensive database for everything WordPress related.

TOP
WPKlik Logo Newsletter

Sign up and receive a free copy of How to Create an online Store with WooCommerce (full guide)

How to Get URLs of Images You Upload in WordPress

How to Get URLs of Images You Upload in WordPress

One of the best things about uploading images — and other forms of media — to your WordPress website is that they become always available to you. All you need is a working internet connection and their URL, and you can easily find and display previously uploaded images on other websites or in web browsers.

Out of the two requirements — an internet connection and an image URL, the latter is harder to find if you don’t know where to look for it. There are two ways you can find out which URL leads to the images you upload in WordPress, and we’ll explain both. But first, let’s figure out how those URLs are created.

How Do Images in WordPress Get URLs?

When you upload an image — or any other type of media — to your website, WordPress will assign it a URL. It has a standard way of doing it by listing the domain name, the location of the file, and the file name and extension. So if you know the names of the website and the file, you’re halfway towards having the URL.

The rest of the information you need is the month and the year when you uploaded the file. By default, WordPress will give your images and other media files addresses that look like this:

“domain name”/wp-content/uploads/”year of adding”/”month of adding”/”filename”

So if you uploaded a .png file titled “joy” to example.com on July 6th, 2014, chances are the file will have the following URL:

https://example.com/wp-content/uploads/2014/07/joy.png

Alternatively, you can uncheck the “organize my uploads into month- and year-based folders” option, and have all of your files uploaded into the same folder. This will make it easier to manage URLs, but it will make navigating uploaded content very hard, especially for media-heavy websites.

How to Find Out the Image URL from WordPress’ Backend

If you don’t want to remember lots of file names and spend time typing the links, you’d want to find an easier way to find and copy an image URL. Here’s how you can do it if you’re the website’s owner, or just have access to its backend.

To find the files you uploaded to a WordPress website, you should look for them under the “media” section in the admin panel:

WordPress Media

After you access the Media Library, you’ll be able to see all the media files you’ve uploaded. Clicking on any one of them will show you its preview, as well as the basic information about the photo, such as its name, size, dimensions, and date when it was uploaded.

On the bottom of the page, you’ll see the link to the file in the copy link field:

Copy Link Image

If you copy that link and open it in a new tab, you’ll see the whole image:

Image New Tab

How to Find an Image URL if You Don’t Have Backend Access?

If you’re not a website owner and don’t have access to the admin area of the website, you can still find out the URLs of images uploaded to WordPress websites. And it’s not a hard thing to do, either.

When you’re browsing a website and you see an image you want to find the URL of, all you need to do is right-click the image and choose the “open image in new tab” option:

Image Right Click

You’ll open the image in the same way you would if you copied its link from the Media Library, and the URL will be the same:

Image URL

Let’s Wrap It Up!

Images and other media are important types of content every website should use. The best thing about them is that there’s no reason why you wouldn’t use them more than once — as long as you don’t overdo it, that is. When you are replacing images in WordPress, be careful, since this can change the URLs of your images as well. If this is something you’d want to do, knowing how to get the URL of images on WordPress websites can be very helpful. Good thing it’s easy, too!

We hope this article was helpful. If you liked it, feel free to check out some of these articles as well!

Newsletter

WordPress perfection at your fingertips.

If you enjoyed this article, feel free to subscribe to our newsletter using the form below. You can also follow us on Facebook and Twitter and subscribe to our YouTube channel for WordPress video tutorials.

Leave a Reply