Ready to process

This tool is free to use

If it saved you some time, consider buying me a coffee to support future updates.

Buy me a coffee

What does LinkPurge do?

LinkPurge processes a block of HTML and manages its anchor links in bulk, based on the mode you pick: strip every link entirely (keeping the visible text), remove duplicates so each URL only links once, randomly sample one instance of each repeated URL, or strip everything except in-page "#" jump links.

In every mode, unwrapping a link keeps its text content in place — nothing readable is deleted, only the <a> tag itself. This is useful for cleaning up over-linked content pulled from a CMS export, a scraped page, or content that's accumulated redundant links over several edits.

Frequently asked questions

Is LinkPurge free to use?

Yes, completely free with no account or usage limit.

What's the difference between the four modes?

"Strip All Links" removes every link. "First Instance Only" keeps the first occurrence of each URL and removes repeats. "Random Sampling" keeps exactly one randomly chosen instance of each repeated URL instead of always the first. "Preserve Anchors" removes external links but leaves in-page "#" jump links untouched.

Is my HTML uploaded anywhere?

No. All processing happens locally in your browser using the DOM — nothing is sent to a server.

Does it delete the link text too?

No — when a link is removed, its visible text stays in place. Only the <a> wrapper is stripped, not the words inside it.

What counts as a "duplicate" link?

Two links are considered duplicates if they have the exact same href value. Links with no href are left untouched in duplicate-detection modes since there's nothing to compare.

Related tools