HTML Image Link Generator
Create clickable images with HTML or linked Markdown. Add safe new-tab settings, nofollow or sponsored rel values, and responsive sizing, then copy the code into your site, email, or README.
Create clickable image HTML
Enter both URLs. The code and preview update automatically.
Leave this empty to generate alt="".
Live preview
Your browser loads the remote image directly. Photo2URL does not fetch or store it.
Your clickable image preview will appear here
Add a valid image URL and destination URL to preview the link.
Generated HTML
Enter valid image and destination URLs to generate the code.
How to Make an Image a Link in HTML
A clickable image uses an anchor for the destination and an image element for the picture. Keep the image URL separate from the page URL: the image is what viewers see, while the destination is where the click takes them.
- 1
Enter the image URL
Use a public http:// or https:// address that points directly to an image file.
- 2
Add the destination
Enter the page, product, profile, or other http(s) URL the image should open.
- 3
Describe the image
Optional alt text helps screen readers and appears when the image cannot load.
- 4
Preview and copy
Check the live preview, then copy the generated anchor and image HTML.
Basic clickable image HTML
<a href="https://example.com/product">
<img src="https://example.com/product.jpg" alt="Product photo" />
</a>Paste the copied snippet into an HTML editor or CMS that accepts HTML. The destination and image URLs must remain publicly accessible for the link and image to work.

href decides where a click goes; the inner image's src decides what viewers see. One link target, one image file.Need an image URL? Upload your image with Photo2URL.
4 High-Impact Clickable Image Templates
Copy a production-ready pattern for the places a clickable image has to survive: email clients, GitHub, affiliate placements, and a CMS content column. The generator above adds the same options to any pair of URLs.
Email Signature Banner
A block-level banner that avoids the classic Outlook/Gmail blue border and baseline gap.
<a href="https://example.com" target="_blank" rel="noopener noreferrer">
<img
src="https://cdn.photo2url.com/your-banner.png"
alt="Product launch"
width="600"
style="display:block;border:0;max-width:100%;height:auto;"
/>
</a>GitHub README Linked Badge / Demo Preview
Use nested Markdown in READMEs, or centered HTML when the image needs a demo-style layout.
Nested Markdown
[](https://example.com/demo)Centered HTML
<p align="center">
<a href="https://example.com/demo">
<img src="https://cdn.photo2url.com/demo.gif" alt="Demo" width="600" />
</a>
</p>Affiliate / Sponsored Product Banner
Opens in a new tab and marks the link as paid or affiliate content without leaking referrer data.
<a href="https://partner.example.com/product" target="_blank" rel="nofollow sponsored noopener noreferrer">
<img
src="https://cdn.photo2url.com/affiliate-banner.jpg"
alt="Partner product"
width="728"
height="90"
/>
</a>Blog / CMS Responsive Image Link
A semantic anchor and image pair that scales down inside article columns and mobile layouts.
<a href="https://example.com/article">
<img
src="https://cdn.photo2url.com/article-cover.jpg"
alt="Article cover"
width="1200"
style="max-width: 100%; height: auto;"
/>
</a>Frequently Asked Questions
How do I make an image clickable in HTML?
Wrap the img element in an anchor element. Put the destination page in the anchor's href attribute and the image URL in the img element's src attribute.
Can I use an image URL from another website?
Yes, if the image is publicly accessible and the host allows external display. Some websites use hotlink protection, authentication, expiring URLs, or other restrictions that can prevent an image from loading elsewhere.
Why is my image not showing in the preview?
The browser could not load the image from its host. The URL may be incorrect, private, expired, or blocked by the remote server. The generated HTML itself is not changed by a failed preview.
Where can I get a public image URL?
Upload the file with Photo2URL's Image to URL tool and copy the direct CDN link. You can use any other image host that provides a public direct image URL.