What is a direct image link, and how do you get one?
A direct image link is a URL that points to the image file itself (it
opens just the picture), not to a web page that contains the picture. You need one whenever another site has to
load the image: forum posts, Markdown, HTML <img> tags and many embeds. Here is how to tell the two
apart and how to get a direct link for free.
Page link vs direct link
| Direct link | Page link | |
|---|---|---|
| Opens | Only the image | A web page with the image, a title and buttons |
| Usually ends in | .jpg, .png, .gif, .webp | No file extension |
Works in [img], Markdown and <img> | Yes | No: shows a broken image |
| Best for | Embedding on another site | Sending to a person in chat or email |
Example: https://example.com/s/a8Kd2 is a page link; https://example.com/i/a8Kd2.jpg is
a direct link to the same image.
How to tell if a link is direct
- Open it in a new tab. If you see only the image on a plain background, with no header, text or buttons, it is direct.
- Look at the end of the URL. A file extension like
.jpgor.pngis a strong hint, though not a guarantee. - Test it where you'll use it. Paste it into the forum's preview. A broken-image icon means it is a page link, or the host blocks embedding.
Why forums and Markdown need a direct link
When you write [img]…[/img] on a forum,  in Markdown, or
<img src="…"> in HTML, the reader's browser downloads whatever is at that address and tries
to draw it as a picture. A page link returns a whole HTML page, which is not an image, so the browser shows a
broken icon. A direct link returns the image bytes, so it renders.
How to get a direct image link
Option 1: Upload it to an image host
The simplest route. On ImgBasket:
- Drop, paste or choose the image. No account needed.
- When the upload finishes, copy Direct for the raw file, or pick a ready-made code: Markdown, HTML or BBCode.
- Paste it where you need it.
The image is served as the original file without being recompressed, and its page stays out of search results and public galleries.
Option 2: Copy it from an image already online
For an image on a public website, right-click it and choose Copy image address (Chrome, Edge) or Copy Image Link (Firefox, Safari). That gives you its direct URL.
Two caveats: many sites block other domains from loading their images ("hotlink protection"), so the link may break on your forum later. And the image belongs to someone else, so check you are allowed to reuse it. Uploading your own copy avoids both problems.
Option 3: Cloud drives (usually not ideal)
Share links from Google Drive, Dropbox or OneDrive normally open a preview page, not the file. Some can be tweaked into direct links, but those tricks change without notice and the provider may throttle or block heavy use. They are fine for sending a file to a person, less reliable for embedding.
Direct links for videos and ZIP files
The same idea applies to other files. A direct video link (for example, ending in .mp4) can go
in an HTML <video> tag or a player that accepts a URL. A direct ZIP link starts the
download straight away, which is handy for curl, wget or a download button on your
own site. ImgBasket gives you a direct link for every upload.
Frequently asked questions
Why does my image show as a broken icon on a forum?
Most often you pasted a page link instead of a direct link, or the original site blocks hotlinking. Upload the image to an image host and use its direct link or BBCode.
Does a direct link have to end in .jpg?
No. Some hosts serve images from addresses without an extension. What matters is that the address returns the image file, not a web page.
Is a direct link private?
Anyone who has the link can open it. On ImgBasket links are long and random, never listed and kept out of search, and you can add a password or an expiry if you need more control.
Can I change the image later and keep the same link?
No. Each upload has its own link. Upload the new version and share its link.