Hyperlink Generator & HTML Link Maker
Build HTML <a> tags with target, rel and a11y attributes
Link
UTM values are appended to the URL and encoded automatically.
About
Build an HTML <a> tag from a form: link URL, visible text, target window, rel attributes (noopener/noreferrer for safe _blank links), an optional CSS class, id, and aria-label. Outputs clean, copy-ready HTML. Runs in your browser.
Examples
Build a safe external link
url: https://example.com
label: Example
target: _blank
rel: noopener noreferrer<a href="https://example.com" target="_blank" rel="noopener noreferrer">Example</a>target=_blank always pairs with rel=noopener noreferrer to prevent tab-nabbing and stop the external site from reading your page's URL via window.opener.
Generate a mailto link
url: mailto:hello@example.com?subject=Hi
label: Email us<a href="mailto:hello@example.com?subject=Hi">Email us</a>mailto: opens the user's mail client with the address and an optional subject pre-filled. URL-encode any special characters in the subject or body.
About this tool
A hyperlink is the web's basic unit of navigation: an anchor element whose href attribute points to another address and whose visible text tells readers where they will land. Hand-writing <a href="https://example.com" target="_blank" rel="noopener noreferrer">Example</a> is error-prone — quotes, ampersands and attribute order all have to come out right.
This builder turns that markup into a form. Enter the destination URL and link text, pick a target window, and toggle the rel attributes you need: noopener, noreferrer and nofollow. Optional class, id and aria-label attributes cover styling and screen-reader labels, and a live preview renders the link exactly as a browser will.
The href field accepts any scheme — https://, mailto:, tel: or a same-page #anchor. A built-in UTM builder appends utm_source, utm_medium and utm_campaign parameters with proper URL encoding, so campaign links arrive in your analytics intact.
How to use this tool
Enter the destination
Type the URL into the href field, including its scheme: https://, mailto:, tel: or a #anchor.
Add text and attributes
Set the visible link text, choose a target window, and switch on the rel attributes your case calls for.
Append campaign parameters (optional)
Fill in utm_source, utm_medium and utm_campaign; they are encoded and added to the URL automatically.
Copy the tag
Copy the generated <a> tag and paste it into your page, template or CMS.
Use cases
Composing safe external links
Generate <a> tags for outbound links with the right target and rel combination in one step, instead of remembering the noopener noreferrer rule every time.
Building email and phone links
Produce clean mailto: and tel: anchors with properly URL-encoded fields so special characters don't break the link.
Adding accessible link attributes
Set aria-label and title on links to non-descriptive URLs so screen readers describe the destination clearly.
Common mistakes
Mistake:Using target="_blank" without rel="noopener noreferrer".
Fix:Without noopener, the new page can read window.opener and redirect the original tab (tab-nabbing). Without noreferrer, it leaks the originating URL in the Referer header.
Mistake:Forgetting to URL-encode mailto fields.
Fix:Special characters in the subject or body of a mailto link must be percent-encoded (& -> %26, space -> %20), or the user's mail client will misinterpret the link.
Mistake:Using javascript: links for navigation.
Fix:javascript: URLs break middle-click, accessibility, and CSP. Use a real <a href> or a button with a click handler instead.
Frequently asked questions
How do I make a link open in a new tab?
Choose _blank in the Target selector. Keep the noopener switch on as well — the tool recommends it for _blank links so the new tab cannot reach the opening page.
What is rel="noopener noreferrer" for?
noopener blocks the new tab from accessing the opening page through window.opener, closing a tab-nabbing hole; noreferrer also stops the browser from sending the referring URL. Both matter whenever you use target="_blank".
How do I create an email (mailto) link?
Enter mailto:hello@example.com as the URL — the anchor is built like any other link and opens the visitor's mail client. tel:+15551234567 works the same way for phone numbers.
Can I use the link in Markdown?
The output is HTML, which most Markdown renderers accept as-is. Pure Markdown syntax would be [Link text](https://example.com), but target and rel have no Markdown equivalent.
Related guides
References & standards
Related tools
Meta Tag Generator
Generate SEO-friendly <meta> tags for your website.
HTML Minifier
Minify HTML by stripping comments and collapsing whitespace, while preserving pre/code/script/style content
URL Encoder/Decoder
Encode and decode URLs with multiple modes, auto-detection, file upload, and comprehensive analysis
Broken Link Checker
Extract http(s) links from pasted HTML and check them via proxy