What is anchor link generator?
Every link has a few attributes that matter for SEO and security. Rel values explain the link to search engines, and a new tab setting needs noopener to be safe.
This generator writes the HTML correctly, escapes special characters and adds noopener automatically when you open a link in a new tab.
How to use the anchor link generator
- Enter the URL and the anchor text.
- Choose rel values and the new tab option.
- Copy the HTML or the Markdown.
How the anchor link generator works
The tool creates an a element with href, an optional rel list, an optional target blank and an optional title. Special characters in the URL, title and text are escaped.
Worked example
Common uses of the anchor link generator
- Affiliate links.
- Guest post and sponsored links.
- Blog comments.
- Email and CMS content.
- Documentation.
Tips and common mistakes
Use sponsored for paid or affiliate links and ugc for comments and forums.
Write anchor text that describes the page, not click here.
Background: what to know before you rely on it
Google asks site owners to mark paid links with sponsored, user generated links with ugc, and others they do not endorse with nofollow. These attributes are hints rather than strict orders, but using them correctly protects your site from link scheme problems and helps search engines interpret the link graph. Opening links in a new tab is a design choice with accessibility trade offs, so use it sparingly. Anchor text should be natural and varied; too many exact match anchors can look manipulative.
Private, free and fast
This tool runs entirely in your browser. What you type or choose is not uploaded to a server and is not saved after you close the page, which keeps it fast and private. It is free to use as often as you like. See more in all seo tools, or browse the full list of tools.
Field by field guide
- Link URL: Type your value. The example is https://example.com/guide/.
- Anchor text: Type your value. The example is read the full guide.
- Title attribute (optional): Type your value. The example is .
- nofollow: Tick to turn this option on.
- sponsored (paid link): Tick to turn this option on.
- ugc (user generated content): Tick to turn this option on.
- noreferrer: Tick to turn this option on.
- Open in a new tab: Tick to turn this option on.
Change one field at a time to see how the result responds, and use the worked example above to check that you get the same answer.
Frequently asked questions
When should I use nofollow?
When you do not want to vouch for the linked page.
What is the difference between nofollow and sponsored?
Sponsored specifically marks paid links. Nofollow is the general hint.
Do I need noopener?
Yes, for target blank. Modern browsers add it, but it is good practice.
Can I combine rel values?
Yes, separate them with spaces.
Related tools
On Page SEO Checker
Enter a page URL, or paste its HTML, and optionally a target keyword. The tool runs up to 18 on page SEO...
SEO ToolsHTML Link Extractor
Paste the HTML of a page and the tool lists all links with anchor text, internal or external type and...
SEO ToolsUTM Link Builder
Enter your URL with a source and medium, plus optional campaign details. The tool returns a tagged link...
Text ToolsURL Slug Generator
Type a page title and the tool returns a clean slug in lowercase with hyphens between words, with...
SEO ToolsRobots Meta Tag Generator
Tick the directives you need and the tool writes the meta robots tag and the matching X Robots Tag HTTP...
SEO ToolsMeta Tag Generator
Enter your page title, description and URL and the generator writes the HTML meta tags, including Open...
More free tools people use next
- VAT and GST Calculator: To add VAT or GST, multiply the net price by the rate and add it. To remove it, divide...
- Hash Generator: A hash is a fixed length fingerprint of your text. Enter text to get its SHA 1, SHA 256,...
- FAQ Schema Generator: Write each question on one line and the answer on the next, with a blank line between...
- Keyword Density Checker: Paste your article and the tool lists the most frequent words and phrases with their...
- Profit Margin and Markup Calculator: Margin is profit divided by selling price. Markup is profit divided by cost. Enter cost...
- JSON to CSV Converter: Paste a JSON array of objects to get CSV rows with a header, or paste CSV to get JSON....
- JavaScript Minifier: Paste JavaScript to strip comments and extra whitespace. It is a safe minifier that does...
- Savings Goal Calculator: Enter your goal, current savings, yearly interest and time in years. The tool tells you...
- Open Graph Tag Generator: Enter your page title, description, URL and image to get ready to paste Open Graph and...
- PDF Splitter and Page Extractor: Choose a PDF and enter the pages you want to keep, for example 1 to 3 and 5. The tool...
- Audio Compressor: Choose an audio file and a bitrate. Your browser re encodes it and gives a smaller file....
- Article Schema Generator: Enter your headline, author, dates, image and publisher and the tool writes Article,...
- Local Business Schema Generator: Enter your business details and the tool writes LocalBusiness JSON LD with address,...
- Heading Structure Checker: Paste your page HTML and the tool shows the heading outline and lists problems such as no...
- DNS Lookup Tool: Enter a domain and a record type to see its DNS records and TTL, such as the IP address,...
- Inflation Calculator: Enter an amount, a yearly inflation rate and a number of years. The calculator shows the...
- Email Address Validator: Paste one or more email addresses. The tool checks the format, flags common domain typos...
- YouTube Thumbnail Grabber: Paste a YouTube video link or ID. The grabber shows the public thumbnail in several sizes...
- Internet Speed Test: Press Start test. The tool measures ping and jitter, then downloads and uploads data to...
Results are for information and education. For legal, financial, medical or security decisions, check with a qualified professional. Validate markup with search engine testing tools before publishing.