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
- Enter the URL and link text.
- Choose whether it opens in a new tab.
- Ready-to-paste HTML updates instantly.
FAQ
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.