Missing rel attribute
target="_blank" without rel="noopener" is a security risk.
Fix: This tool adds noopener noreferrer automatically.
header • up to 320x100 / 728x90
Build a safe anchor tag with href, optional target="_blank", and rel="noopener noreferrer"
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
HTML (HyperText Markup Language) is the core markup language for web pages, defining structure and content that browsers render.
HTML Link Generator builds a safe `<a>` tag from a URL on line 1 and optional link text on line 2. When you enable 'Open in new tab', the tool automatically adds `target="_blank"` and `rel="noopener noreferrer"` to prevent tabnabbing.
It's ideal for documentation, CMS fields, and email templates that expect raw HTML.
https://example.com Visit Example
<a href="https://example.com" target="_blank" rel="noopener noreferrer">Visit Example</a>
target="_blank" without rel="noopener" is a security risk.
Fix: This tool adds noopener noreferrer automatically.
Link text can include < or &.
Fix: The generator escapes < in text automatically.
Yes — when new-tab is enabled, noopener and noreferrer are included.
Yes — put it on line 2. Line 1 is used as a fallback.
Yes — angle brackets are escaped.
No — any string is used as href. Use a URL parser first to validate.
No — everything is client-side.
Pair with URL parser, mailto generator, and HTML formatter. You can also browse the full HTML Generators category for more options.
Parse a URL into scheme, host, port, path, query parameters, fragment, and origin — fully client-side
Generate a ready-to-use mailto: anchor with subject, cc, bcc, and body parameters URL-encoded
Format and beautify HTML markup online with clean indentation and proper tag nesting. Paste HTML and get readable, copy-ready output in seconds.
Generate an <img> tag with src, alt, width, height, loading="lazy", and decoding="async" best practices
Generate title, description, keywords, canonical, OpenGraph, and Twitter meta tags from simple key:value pairs
Encode or decode URL strings
Build an accessible HTML <form> with labelled inputs, selects, textareas, and a submit button
Turn a plain text list into ordered <ol> or unordered <ul> HTML with one item per line
Convert CSV, TSV, or pipe-separated data into a clean HTML <table> with optional <thead>
Encode or decode HTML entities
Convert text to HTML entities or decode HTML entities back to text in a single bidirectional tool
Encode text to HTML entities