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.
No links processed yet.
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.
<a href> links in your HTMLnofollow ugc and nofollow sponsored.htmlInput:
<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>
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>
rel attribute entirely.nofollow ugc external authornoopener, noreferrer) are preserved when updating managed values.