About the HTML Link Generator
A link looks simple, but its attributes decide how browsers open it and how search engines treat it. This HTML link generator turns a URL and anchor text into a finished anchor tag, plus Markdown and BBCode versions, with options for opening in a new tab and for the rel values nofollow, sponsored and ugc. Paid and affiliate links should be marked as sponsored, and links in user comments as ugc, which keeps a site within search engine guidelines. Descriptive anchor text helps readers and search engines understand where a link leads. For many links at once, use the Bulk Hyperlink Generator, and to tidy addresses first, the URL Cleaner.
Most of the thinking goes into the rel attribute. Nofollow withholds endorsement, sponsored discloses money or commission behind a link, and ugc labels links contributed by visitors, for instance in comment threads. Getting these right keeps a site inside search engine guidelines, which is especially important for review sites and blogs that earn affiliate income. For links that open separately, noopener and noreferrer cut the connection between the two pages; choosing the new-tab option inserts noopener for you, since omitting it can be exploited in older browsers.
As you type, a live sample of the finished link appears, letting you judge whether the wording reads naturally in context before it goes into a page, a newsletter or a forum reply. Characters that would break the markup, such as quotation marks in a title, are escaped automatically.
How to use the HTML Link Generator
- Enter the destinationPaste the address you are linking to; https is added if you leave the protocol out.
- Write the clickable textUse words that tell readers, and search engines, what they will find.
- Pick the optionsChoose whether it opens in a new tab and tick any rel values it needs.
- Copy the resultHTML, Markdown and BBCode versions are produced at the same time.
HTML Link Generator features
- HTML, Markdown and BBCode versions of the link
- nofollow, sponsored, ugc, noopener and noreferrer options
- noopener added automatically for new-tab links
- Optional title attribute
- Live preview of the finished link
- Characters escaped so the markup never breaks
- One-click copy for each format
Common uses
- Inserting a commission link with the correct disclosure attribute
- Producing clean anchor code without memorising the syntax
- Producing one link for both a website and a Markdown README
- Protecting your pages when outbound links open separately
- Training editors on how to label different kinds of links
Writing links in practice: affiliate links in a review, internal links, citing sources, tap-to-call and download links, and accessible link text
Links are the threads that connect a website to its readers and to the rest of the web, and small attributes on them affect search engines, security and accessibility. This guide writes an affiliate link for a product review correctly, then covers internal links, citing sources, phone and email links, download links, link text that makes sense to screen reader users and keeping links healthy over time.
A worked example: an affiliate link in a review
A tech blogger reviews a budget phone and links to it on an online marketplace through an affiliate programme. Google asks sites to mark paid and affiliate links with rel="sponsored", so the link is written as <a href="https://marketplace.example/phone-x" rel="sponsored">see current price</a>. The review also states clearly near the top that it contains affiliate links, because readers deserve to know about the relationship, whatever search engines require.
Internal links
Links between pages on your own site help visitors find related content and help search engines understand which pages matter. They should be normal links, without nofollow, with descriptive text such as our guide to home loan documents rather than click here. A few relevant internal links in each article are more useful than long lists at the bottom.
Citing sources
Linking to the original source of a statistic, rule or quote lets readers verify claims and shows that content is researched rather than invented. For topics such as tax, health and law, link to official sources, such as government departments and regulators, rather than to other blogs repeating the same information.
Tap-to-call and email links
On phones, a link written as tel:+923001234567 lets visitors call with a single tap, which suits shops, clinics and service businesses. Use the international format with the country code. Email links with mailto open the visitor's mail app; showing the address as visible text as well helps people using a computer without a configured mail program.
Download links
Adding the download attribute to a link for a file on your own site, such as a fee schedule PDF, prompts browsers to save it rather than open it. Mention the file type and size in the link text or beside it, for example Fee schedule 2026 (PDF, 240 KB), so visitors on mobile data know what to expect.
Link text for screen readers
Screen reader users often move through a page by listing its links. Text such as here, more or click here becomes meaningless out of context, while descriptive text such as download the admission form explains itself. Descriptive link text is also what search engines use to understand the linked page.
Links in user content
Comments, forum posts and user profiles attract spam links. Marking links in user-generated content with rel="ugc" tells search engines they were not editorially chosen. Combined with moderation and spam filtering, it reduces the reward spammers get from posting on your site.
Keeping links healthy
External pages move and disappear over time. Checking outbound links every few months and updating or removing broken ones keeps articles trustworthy. Broken links frustrate readers and suggest a site is no longer maintained, which undermines confidence in its content.
Common mistakes
- Leaving affiliate links unmarked and undisclosed.
- Adding nofollow to internal links.
- Using click here as link text.
- Writing phone links without the country code.
Related tools
To turn a list of addresses into links at once, use Bulk Hyperlink Generator. For email links with subjects, try Mailto Link Generator, and for chat links, WhatsApp Link Generator.
Relative and absolute addresses
Links between pages on your own site can use relative addresses, such as /fees/, which keep working if the domain changes. Content that travels elsewhere, such as RSS feeds, emails and syndicated articles, needs absolute addresses including https and the domain. Canonical tags should always use absolute addresses, as search engines recommend.
Links that open apps
On phones, links to wa.me addresses open a WhatsApp chat, and links to map services open the maps app with a location. These are among the most tapped links on local business sites. Placing them near the top of contact pages, with clear text such as Chat on WhatsApp, makes it easy for customers to get in touch.
Not too many links
A paragraph with a link every few words is tiring to read and makes each link less noticeable. Link the first relevant mention of a topic in an article rather than every mention, and keep links where they genuinely help the reader find more detail or verify a claim.
Link styling
Links in body text should look like links, usually underlined and in a colour that contrasts with surrounding text. Removing underlines to make a design cleaner often leaves visitors unsure what is clickable. A distinct visited colour also helps readers keep track of what they have already opened.
Privacy
Links are generated in your browser. Nothing is sent to a server or stored.
Frequently asked questions
Which rel value fits which kind of link?
Paid placements and commission links take sponsored, links posted by visitors take ugc, and nofollow covers cases where you mention a page without endorsing it. Crawlers read each one as context about the relationship rather than a command.
Why is noopener added automatically?
A link that opens a new tab hands the new page a reference to yours through window.opener, which can be used to redirect your page elsewhere. Noopener removes that reference; current browsers do it by default, but older ones do not.
Does the wording of a link matter for SEO?
Yes, especially for the page being linked to. Clear, descriptive wording tells search engines and readers what to expect, while click here tells them nothing and frustrates screen reader users scanning a list of links.
Is it good practice to open links in new tabs?
Use it sparingly. Readers lose the ability to go back with one click, and people using assistive software may not realise a new tab appeared. It suits documents or tools people will return from, not ordinary article links.
What is the title attribute for?
It shows a small tooltip when you hover with a mouse in most desktop browsers. It never appears on touch screens and screen readers announce it inconsistently, so never rely on it for important information.
Is anything I type sent to a server?
No. The markup is assembled inside your browser, so draft addresses, client links and affiliate codes stay on your own device and are never recorded.