Zero Signup ToolsFree browser tools

Generator Tools

HTML Anchor Tag Generator

Build copy-ready HTML anchor tags with the right rel, target, download, hreflang, and referrerpolicy. Single link or bulk mode, with live preview.

Anchor attributes

Detected as url. Accepts http/https URLs, relative paths, fragments (#section), mailto:, tel:, and sms:.

The visible text inside the <a> tag. HTML special characters are escaped automatically.

rel attributes

Toggle the relationship values that apply. rel is space-separated and order does not matter.

Space-separated. Use for tokens not in the list above (for example: prefetch, preload, search, tag).

Generated HTML

<a href="https://example.com/blog-post" target="_blank" rel="noopener noreferrer">Read the full guide</a>

Effective rel

noopener noreferrer

Effective target

_blank

Live preview

Clicks are intercepted so the link will not navigate inside the tool.

Cheat sheet

target="_blank"

Opens the link in a new browsing context. Pair with rel="noopener noreferrer" so the new page cannot tamper with the original.

rel="nofollow"

Tells search engines not to pass ranking signals through the link. Useful for untrusted or low-value outbound links.

rel="sponsored"

Marks affiliate, paid, or sponsored links. Replaces nofollow as Google's preferred signal for advertising.

rel="ugc"

User-generated content. For links inside comments, forum posts, or other reader-submitted text.

download

Browsers offer a Save As dialog instead of navigating. Works only when the resource is served from the same origin.

hreflang

Tells the user agent what language the destination is in. Use a BCP 47 tag (en, en-US, fr, zh-Hant).

referrerpolicy

Controls what is sent in the Referer header to the destination. no-referrer hides it entirely; strict-origin trims to the origin.

mailto: / tel: / sms:

Open the user's default email, phone, or SMS app. Add ?subject=&body= to a mailto for prefilled email.

How to use

  1. Paste the destination into the href field. URLs (http or https), relative paths, fragments (#section), and mailto:, tel:, or sms: links are all accepted.
  2. Set the visible link text. Punctuation and HTML special characters are escaped for you, so the generated tag is always safe to paste.
  3. Toggle the rel values that apply. Use sponsored for paid or affiliate links, ugc for reader-submitted content, and nofollow for untrusted outbound links. noopener and noreferrer are added automatically when target is _blank.
  4. Add optional attributes as needed: title, download with a suggested filename, hreflang (BCP 47), MIME type, referrerpolicy, id, and class.
  5. Copy the generated HTML, or switch to Bulk mode to paste a URL | text pair per line and produce a full list of anchor tags that share the chosen rel, target, and other settings.

About this tool

HTML Anchor Tag Generator builds a complete, copy-ready <a> tag from an editable form. It covers the attributes that actually matter on a real link in 2026: href (URL, relative path, fragment, mailto:, tel:, sms:), the visible link text with automatic HTML escaping, an optional title tooltip, target (_self, _blank, _parent, _top, or a custom frame name), and the full rel vocabulary that search engines and browsers recognize (nofollow, sponsored, ugc, noopener, noreferrer, external, author, license, help, prev, next, bookmark, alternate, me, plus any custom tokens you need). It also handles the download attribute with an optional suggested filename, hreflang for translated destinations, the type attribute for MIME hints on file links, referrerpolicy for tightening what is sent in the Referer header, and standard id and class attributes for styling. Two safety rules run automatically: when target="_blank" is set, noopener and noreferrer are added for you so the new tab cannot tamper with the original window or leak the Referer; and when href is empty, missing rel values combine with target are flagged in a checks panel so you do not ship a broken link. A live preview renders the actual anchor (with clicks suppressed so it cannot navigate), the generated HTML is one click away from the clipboard, and a built-in cheat sheet explains what each attribute means so the markup you copy is correct and accessible. Bulk mode accepts one link per line in a URL | text format and emits a list of <a> tags that share the rel, target, hreflang, type, class, and referrerpolicy settings, which is the workflow bloggers and SEO writers use to mark up tens of outbound links in one shot. Everything runs in your browser, so URLs and link text never leave the page.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsGenerator Tools