Remove URLs
Remove URLs from text.
About this tool
Paste text and press Run to delete every link that starts with http:// or https://. The rest of the text stays as written.
How to use
How it works
Each link is cut out from its start to the next space, angle bracket, quote or brace. The spaces around it are left, which can leave a double space. A trailing full stop or comma attached to the link is removed with it.
Worked example
A link in a sentence
- Input
- Read https://example.com/a now.
- Output
- Read now.
- Walkthrough
- The link is removed. The two spaces around it remain.
Limitations
- Only links starting with http:// or https:// are removed; www.example.com stays.
- Leaves doubled spaces.
- Punctuation directly after a link is removed with it.
Questions
How do I remove links from text?
Will it remove www links without http?
Why are there two spaces where the link was?
Features
- Deletes http and https links
- Rest of text untouched
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Learn JSON - Full Crash Course
freeCodeCamp.org
Structured text formats often sit next to plain-text tools.
Watch on YouTubeCSS Flexbox Crash Course
freeCodeCamp.org
Case and spacing tools show up constantly in front-end copy.
Watch on YouTube
- String
MDN
JS string methods that mirror case, trim, and split tools.
- UTF-8 and BOM
W3C
Encoding gotchas when cleaning pasted text.