1001Ferramentas
🔗 Text

Remove URLs

Detect and remove http(s)://... or www.... URLs from text. Useful for cleaning comments and messages before analysis.

Clean links before analyzing comments

You exported comments, reviews or a WhatsApp thread to count words, build a term cloud or run sentiment scoring, and a good share of the volume is links. Long addresses inflate the counts and say nothing about what the person actually wrote. Paste the text here and you get the version without links, with leftover spaces collapsed and the ends trimmed.

There are two patterns, and it helps to know where they stop: http or https followed by everything up to the first space, and www dot followed by everything up to the first space. Because the cut only ends at a space, punctuation touching the link goes with it. A sentence ending in an address loses its final period. A link in parentheses leaves the opening bracket alone, and a markdown link leaves the square bracket and the parenthesis behind.

What it misses: a bare domain with no scheme, like exemplo.com.br, stays in the text, and so do ftp addresses. The match is case sensitive, so a link typed in all caps slips through. Email addresses are preserved, which helps when you want to keep contacts and hurts if the goal was anonymizing. There is no option to replace a link with a placeholder, it is simply deleted. The text stays in your browser.

Frequently asked questions

Does it remove links without http, like exemplo.com.br?
No. The address has to start with http, https or www to be recognized. A bare domain in the middle of a sentence stays put.
Why did the final period disappear?
Because the cut only stops at the first space, so any punctuation stuck to the end of the address is removed with it. Put the punctuation back when you proofread.
Can I replace each link with something like [link] instead of deleting it?
No, the tool only removes. If you need a placeholder, do a find and replace in your editor after cleaning.

Related Tools