Change Link Rel Attributes

Modify link rel attributes in an HTML document. Convert links between dofollow, nofollow, ugc, and sponsored, or apply a rel combination. Optionally filter links by URL and export the updated HTML.

Or paste HTML manually below.
Space-separated values to target
Space-separated values (dofollow, nofollow, ugc, sponsored, external, author, license, etc.)

No links processed yet.

Change Link Rel Attributes - Explanation & Examples

The Change Link Rel Attributes tool helps you update rel values on links in a full HTML document. You can target links by their current rel type, then convert them to any new rel attribute values — including dofollow, nofollow, ugc, sponsored, external, author, license, noreferrer, noopener, next, prev, alternate, help, tag, or any custom combination.


⭐ What this tool does

  • Finds all <a href> links in your HTML
  • Targets links by current rel type: dofollow, nofollow, ugc, sponsored, external, author, license, noreferrer, noopener, next, prev, alternate, help, tag, or all
  • Converts to any rel value(s): all standard rel types plus custom combinations
  • Includes common preset combinations like nofollow ugc and nofollow sponsored
  • Supports unlimited custom rel values via free-form text input
  • Optionally filters links by URL text
  • Preserves non-managed rel tokens while updating managed values correctly
  • Shows how many links were found and modified
  • Lets you copy output or download updated HTML as .html

🔎 How to use

  1. Paste your HTML or upload an HTML file.
  2. Select which current link type you want to target.
  3. If you select "Custom combination", enter space-separated rel values that ALL must match (AND logic): links with ALL specified values are targeted.
  4. Select the desired output rel mode (or choose Custom combination to enter your own replacement values).
  5. If output is custom, enter space-separated rel values you want to set.
  6. Optionally enter a URL filter to only update matching links.
  7. Click Change and review the modified HTML output.

⚙️ Example 1: Basic Conversion

Input:

<a href="/product/a">A</a>
<a href="/product/b" rel="nofollow noopener">B</a>
<a href="/blog/c" rel="ugc">C</a>

Target: all
Desired output: nofollow ugc
URL contains: /product/

Output:

<a href="/product/a" rel="nofollow ugc">A</a>
<a href="/product/b" rel="noopener nofollow ugc">B</a>
<a href="/blog/c" rel="ugc">C</a>

⚙️ Example 3: Custom Matching with Exact Match

When targeting "Custom combination", the link's rel values must EXACTLY match the values you specify (order doesn't matter).

Input:

<a href="/a">A</a>
<a href="/b" rel="noopener">B</a>
<a href="/c" rel="noopener noreferrer">C</a>
<a href="/d" rel="noreferrer noopener">D</a>

Target current type: Custom combination
Custom rel values to match: noopener noreferrer (EXACT match)
Desired output: external

Output (only C and D are updated because they have EXACTLY noopener and noreferrer):

<a href="/a">A</a>
<a href="/b" rel="noopener">B</a>
<a href="/c" rel="external">C</a>
<a href="/d" rel="external">D</a>

Note: Link B is NOT changed because it only has noopener (not both). Links C and D match because they have EXACTLY noopener and noreferrer (in any order).


Input:

<a href="https://example.com">Example</a>
<a href="https://trusted.com" rel="author">Trusted</a>

Target: all
Desired output: Custom combination
Custom rel input: external author license

Output:

<a href="https://example.com" rel="external author license">Example</a>
<a href="https://trusted.com" rel="author external license">Trusted</a>

⚠️ Notes

  • Converting to pure dofollow removes the rel attribute entirely.
  • Processing is fully client-side in your browser — no data sent to servers.
  • Malformed HTML may be normalized by browser parsing, but link attributes are updated consistently.
  • When using custom mode, enter values as space-separated tokens: nofollow ugc external author
  • Non-managed rel values (like noopener, noreferrer) are preserved when updating managed values.
  • Duplicate rel values are automatically deduplicated.

Frequently Asked Questions

It updates link rel attributes in HTML, so you can convert links to any rel value: dofollow, nofollow, ugc, sponsored, external, author, license, noreferrer, noopener, next, prev, alternate, help, tag, or custom combinations.

The tool supports all HTML rel values, including standard attributes like nofollow, noopener, noreferrer, external, author, license, and custom or proprietary values via the custom mode text input.

Absolutely. Select "Custom combination" and enter any space-separated rel values you need, such as "external author license" or proprietary values for your use case.

Yes. Choose which current link type to target: all links, dofollow, nofollow, ugc, sponsored, external, author, license, noreferrer, noopener, next, prev, alternate, help, or tag. Only matching links are updated.

Dofollow means links with no managed rel values: no nofollow, no ugc, and no sponsored. Search engines treat these links normally.

Yes. You can select preset combinations like "nofollow ugc" or "nofollow sponsored" from the dropdown, or use custom mode for any combination.

Select "Custom combination" from the dropdown, then type space-separated values in the input field: external author license noopener.

Yes. If your desired output requires rel values and a link has no rel attribute, the tool adds one automatically.

The rel attribute is removed entirely to produce a pure dofollow link, as search engines treat missing rel attributes as dofollow by default.

Non-managed rel values already on the link (like noopener, noreferrer, external) are preserved when you add or change other rel values.

Yes. Use the "Only links containing" filter to limit changes to links whose href includes your specified text (e.g., /blog/ or example.com).

Yes. The tool only updates rel values. Other attributes like href, class, id, title, data-* attributes remain unchanged.

Yes. Upload an HTML or text file, process it, and download the updated result as an HTML file or copy it to your clipboard.

After processing, the result line shows: Links found (total), Links checked (after filtering), and Links modified (changed).

No. All processing happens locally in your browser. Your HTML never leaves your device, ensuring complete privacy.

Yes. The tool is designed for fast processing of large HTML files, limited mainly by your browser memory.

SEO-related: nofollow (no link equity), ugc (user-generated), sponsored (paid/ad). Security: noopener, noreferrer. Semantic: external (off-site), author (author page), license (license info), next/prev (pagination), alternate (translated/alternative version), help (help page), tag (category/tag page).

When you select "Custom combination" as the current link type and enter values like "noopener noreferrer", the tool uses exact matching: only links that contain EXACTLY those rel values (no more, no less) are matched and updated. For example, "noopener" will match only rel="noopener", not rel="noopener noreferrer".