Anchor Playground

← home

Build and test <a> anchor links with any attributes. Useful for testing protocol handlers, custom schemes, and download links.




Generated HTML:

Anchors are saved to localStorage and persist on refresh.

Your Anchors

No anchors yet.

Build and test <a> anchor links with any combination of attributes. Originally built to brute-force finding how to open applications via custom protocol handlers (e.g. myapp://).

Attributes

target values

Value Behavior
_blank Open in a new tab or window.
_self Open in the same browsing context (default).
_parent Open in the parent frame; falls back to _self if none.
_top Open in the top-level browsing context; breaks out of all frames.

rel values

Value Behavior
noopener Prevents the new page from accessing window.opener. Recommended with _blank.
noreferrer Omits the Referer header and implies noopener.
noopener noreferrer Both of the above. The standard safe combination for target="_blank".
nofollow Tells search engines not to follow or pass ranking credit to this link.
opener Explicitly grants the new page access to window.opener (overrides the default lockdown in some browsers).

referrerpolicy values

Value What is sent
no-referrer No Referer header is sent.
no-referrer-when-downgrade Full URL sent for same-protocol requests; nothing sent on HTTPS→HTTP.
origin Only the origin (scheme + host + port) is sent.
origin-when-cross-origin Full URL for same-origin; only origin for cross-origin.
same-origin Full URL for same-origin requests; nothing for cross-origin.
strict-origin Origin sent for same-protocol; nothing on HTTPS→HTTP downgrade.
strict-origin-when-cross-origin Full URL same-origin; origin cross-origin; nothing on downgrade. Browser default.
unsafe-url Always sends the full URL, including paths and query strings. Never use on sensitive pages.