URL to HTML link generator

How it worksAn HTML link is written as <a href="https://example.com">Link text</a>. Paste a URL and your text below and the tool writes the tag for you, with optional target="_blank" and rel attributes.
HTML code
Markdown
Preview

Runs entirely in your browser — nothing you type here is uploaded.

Anatomy of an HTML link

<a href="https://example.com/guide" target="_blank" rel="noopener noreferrer" title="Read the guide">Read the guide</a>
  • href — where the link goes. Use a full https:// address for other sites, a relative path (about.html) for your own pages, mailto: for email and tel: for phone numbers.
  • target="_blank" — opens a new tab. Pair it with rel="noopener" so the new page cannot control yours (modern browsers imply it, but older ones do not).
  • rel="nofollow", "sponsored", "ugc" — hints for search engines about paid, user-generated or untrusted links.
  • title — a tooltip. Do not rely on it for important information; touch screens never show it.

Write link text people (and Google) understand

“Click here” tells nobody where the link goes. Describe the destination: “Download the 2026 price list (PDF)”. Screen-reader users often jump from link to link, and search engines use the words inside the link to understand the target page.

Got a page, not a URL?

If what you have is the HTML page itself and you need a URL for it, use the HTML to link converter first — then come back here to build the link tag that points at it.

Questions

How do I make a link open in a new tab?
What is the difference between a URL and a link?
Can I link to a section of a page?
Yes: give the target element an id (id="pricing") and link to https://example.com/page#pricing.