Easily change link target attributes in HTML. Convert links to _self, _blank, _parent, or _top, optionally filter by URL, and optionally add rel attributes like noopener noreferrer.
No links processed yet.
The Change Link Target tool lets you quickly update link target attributes in HTML. Convert links to _self, _blank, _parent, or _top, apply optional URL filtering, and optionally add a rel attribute in one pass.
<a href> links in your HTML_self, _blank, _parent, _top, no target, or all)_self, _blank, _parent, _top, or a custom target valuerel values like noopener noreferrerInput:
<a href="/about">About</a>
<a href="https://example.com" target="_self">External</a>
<a href="https://example.com/blog" target="_blank" rel="nofollow">Blog</a>
Settings:
Current target to replace: _self
New target: _blank
URL contains: example.com
Only with existing target: Yes
Add rel automatically: noopener noreferrer
Output:
<a href="/about">About</a>
<a href="https://example.com" target="_blank" rel="noopener noreferrer">External</a>
<a href="https://example.com/blog" target="_blank" rel="nofollow noopener noreferrer">Blog</a>
_blank with rel tokens like noopener noreferrer for safer external links.