Zahid Awais Get a free audit

Free sponsored link code generator

Build the HTML for a paid, user generated or unvouched link with the right rel values, a new tab option and a disclosure line, ready to paste.

By Zahid Awais · Link building tools · Free, private, no sign-up

Sponsored Link Code Generator: what it does and an example result

The free sponsored link code generator writes the HTML for a link with the right rel sponsored, ugc or nofollow value, plus optional noopener, noreferrer, target and title attributes and a plain disclosure line. Each value is explained with the wording from Google's own documentation.

Quick answer

Use rel="sponsored" for links that are paid, advertising or sponsorship, rel="ugc" for comments and forum posts, and rel="nofollow" when neither applies and you do not want to vouch for the page. Google still accepts nofollow on paid links but prefers sponsored. noopener and noreferrer are browser values, not search values.

What is a sponsored link code generator?

A sponsored link code generator is a tool that writes a ready to paste HTML anchor element with the rel values a paid or user generated link needs. You choose what kind of link it is, and the tool sets the matching values, escapes special characters in the URL and text, and can add a disclosure line for readers.

The values come from Google's guide to qualifying outbound links, which describes sponsored, ugc and nofollow. Paid links matter most: Google's spam policies say such links are not a violation "as long as they are qualified with a rel="nofollow" or rel="sponsored" attribute value".

How do you use the Sponsored Link Code Generator?

How to use the Sponsored Link Code Generator: enter details, see the result and copy it
Real screenshot of the Sponsored Link Code Generator with the example input from this page.
  1. Paste the full URL of the page you are linking to and type the anchor text.
  2. Choose what kind of link it is. The menu ticks the matching rel values; you can change them by hand.
  3. Decide whether the link opens in a new tab. noopener is ticked for new tab links automatically.
  4. Add an optional title, and keep or edit the disclosure line for paid placements.
  5. Copy the code and paste it into the HTML view of your editor.

What is the difference between rel sponsored, ugc and nofollow?

sponsored marks paid or advertising links, ugc marks links inside user generated content such as comments and forum posts, and nofollow is for links where neither applies and you do not want Google to associate your site with the page. Google says links marked with these values "will generally not be followed", but it adds that the linked pages "may still be crawled" if Google finds them through sitemaps or other sites.

Can you combine several rel values on one link?

Yes. Google says "You may specify multiple rel values as a space- or comma-separated list", and gives rel="ugc nofollow" as an example. This tool uses spaces, which is the usual HTML style. A common combination is ugc nofollow for a forum post you do not vouch for, and sponsored noopener for a paid link that opens in a new tab.

Do noopener and noreferrer affect SEO?

No source from Google says they do. Google's guide on qualifying outbound links lists sponsored, ugc and nofollow and does not mention noopener or noreferrer. They are browser values described on MDN: noopener stops the new page from reaching yours through window.opener, and noreferrer also hides the referring page, which removes you as the source in the other site's analytics.

Quick reference: rel values and who reads them

ValueUse it forRead by
sponsoredAdvertising, paid placements, sponsorshipsSearch engines
ugcComments, forum posts, user contentSearch engines
nofollowLinks you do not want to vouch for when others do not fitSearch engines (also as a robots meta rule)
noopenerLinks that open a new tabBrowsers
noreferrerLinks where you do not want to send your URLBrowsers
noneNormal editorial links nobody paid forNot applicable

Worked example

Example

Example: a publisher places a paid link to https://example.com/link-building-guide/ with the anchor "link building guide", opening in a new tab. With the default settings the tool writes a disclosure paragraph, then <a href="https://example.com/link-building-guide/" rel="sponsored noopener" target="_blank">link building guide</a>. Switching to "User content you do not vouch for" and unticking the new tab option changes it to rel="ugc nofollow" with no target, and quotes or ampersands in the URL are escaped as &quot; and &amp;.

Learn more

Frequently asked questions

Is rel sponsored the same as nofollow?

No. Both tell Google not to treat the link as an endorsement, but sponsored says why: the link was paid for or is advertising. Google prefers sponsored for paid links and still accepts nofollow, which was the older recommendation for them.

Do I need rel sponsored on guest posts?

Only when the link was paid for in money, goods or services. Google's spam policies list paid articles with optimized anchor text in guest posts as link spam. An unpaid editorial guest post that links naturally does not need it.

Can I use sponsored and nofollow together?

Yes. Google allows several rel values on one link, separated by spaces or commas. rel="sponsored nofollow" is valid, and Google names both values as acceptable ways to flag a paid link, with sponsored preferred.

Should affiliate or advertising links open in a new tab?

That is a user experience choice, not a search rule. If you open them in a new tab, add noopener so the new page cannot control yours. Many sites keep links in the same tab so the back button works as expected.

What should a disclosure line say?

Say plainly that the article or link is sponsored or paid, and put it where readers see it before the link. The default text is a starting point. Check your local advertising rules, which can set their own wording.

Does this generator change links on my site?

No. It only writes HTML code in your browser for you to copy. Nothing is sent anywhere. To check links that are already live, use the nofollow link checker or view the page source.

Sources

Checked 23 Oct 2026. Facts checked against these official pages. Read how I check facts in my editorial policy.

Related free tools

All free tools

rel Attribute Generator

A rel attribute generator is a tool that writes an HTML link with the correct rel value for its situation.…

Nofollow Link Checker

A nofollow link checker is a tool that lists the links on a page and reads each rel attribute. A link with…

Dofollow Ratio Calculator

A dofollow nofollow ratio calculator divides each link type count by the total links to get its percentage,…

Anchor Text Classifier

Labels each anchor as exact, partial, branded, URL, generic, compound or image, with shares.

Want a full audit instead?

Send your website and I will check it for you, free.

Get my free audit
Chat on WhatsApp
Free updates

Get new tools, guides and coupons first

One short email when something new goes live: articles, free SEO tools, package updates, discounts and price alerts. No spam, unsubscribe in one click.