Link tag (<a>) generator
About this tool
Generate <a>
link tags from your input. The preview below
is fully interactive (it will navigate or open a new tab). All processing stays in your browser; nothing is sent anywhere.
Text
href
target
rel
Advanced attributes (click to expand)
download
download (filename)
If a filename is provided, it takes precedence and the checkbox is ignored.
aria-label
hreflang
type
referrerpolicy
class
id
Preview (the link is live;
target="_blank"
opens a new tab)Destination (href) is not set
Security tip: when opening a new tab (target="_blank"
), always add noopener.
This tool enables rel=noopener automatically whenever you choose _blank
.
Advanced attribute notes (implementation details)
download
(checkbox on) outputs a boolean attribute with no value (e.g.,<a … download>
). The saved filename depends on the browser/server response.download (filename)
outputsdownload="your-name"
when provided; it overrides the checkbox above.aria-label
is omitted when empty; otherwise it becomes the screen-reader description.hreflang
/type
/referrerpolicy
/class
/id
are output only when set.rel
outputs the checked tokens separated by spaces. Choosingtarget="_blank"
auto-enables noopener (you can still disable it).