HTML Link Generator
Configure an HTML anchor tag — href, target, rel, title, download, and more — and get the ready-to-paste code with a live preview.
Last updated: May 21, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is HTML Link Generator?
The HTML `<a>` (anchor) element creates hyperlinks between pages, files, email addresses, or any URL. It supports a wide range of attributes that control link behaviour: `target` defines where to open the link, `rel` communicates the link relationship to browsers and search engines, `download` triggers a file download, and `title` provides a tooltip.
This generator lets you configure all standard anchor attributes through a form and generates the correct HTML syntax, including the recommended `rel="noopener noreferrer"` for external links that open in a new tab.
How to Use HTML Link Generator
Enter the destination URL in the href field
Enter the link text that users will see
Choose the target (same tab, new tab, etc.)
Add optional attributes like rel, title, id, class
Enable download if the link should trigger a file download
Copy the generated HTML
Common Use Cases
- Developers hand-writing HTML who need a quick anchor tag with the right attributes.
- Content editors adding links to HTML email templates or CMS fields.
- Developers creating download links that should trigger the browser save dialog.
- Teams ensuring all external links include rel="noopener noreferrer" for security.
Example Input and Output
An external link that opens in a new tab with proper rel attribute.
href: https://example.com
text: Visit Example
target: _blank
rel: noopener noreferrer<a href="https://example.com" target="_blank" rel="noopener noreferrer">Visit Example</a>Privacy
All HTML generation runs in your browser. No data is sent to any server.

