Remove URLs

Remove URLs from text.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

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

1
Step 1
Paste the text into Input.
2
Step 2
Press Run.
3
Step 3
Copy the cleaned text, and use Remove Extra Spaces if gaps remain.

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?
Paste it and press Run.
Will it remove www links without http?
No. Only links that start with a scheme such as http are removed; bare www links stay.
Why are there two spaces where the link was?
The spaces on either side stay. Use Remove Extra Spaces.

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 YouTube
  • CSS 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.