HTML Link Code Generator

Generates an HTML anchor tag from a URL and link text.

Lilu Baba's HTML Link Code Generator builds a properly formatted <a> tag from your URL and link text, with safe new-tab attributes when needed.

How to use this tool

  1. Enter the URL and link text.
  2. Choose whether it opens in a new tab.
  3. Ready-to-paste HTML updates instantly.

HTML Link Code Generator — frequently asked questions

It prevents the opened page from gaining a reference back to your original page — a standard security best practice for target="_blank" links.

Yes — copy it and add any additional attributes or classes you need.