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.

Enter both URLs. The code and preview update automatically.

Leave this empty to generate alt="".

Link options

Leave both unchecked for a standard link.

Image size

Link options and image size apply to HTML output only.

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.

Enter valid image and destination URLs to generate the code.

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

[![Demo](https://cdn.photo2url.com/demo.gif)](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.