1. Home
  2. Writing & text tools
  3. Extract URLs and Clean Links

Extract URLs and Clean Links

Get a clean list of the links in a newsletter, a document or a conversation. Tracking parameters are removed and redirect wrappers are unwrapped, so each link points straight to the page.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Extract URLs and Clean Links

  1. Paste the text or HTML.
  2. Choose what to clean.
  3. Copy the list of links.

Features

  • Finds http, https and www links; optional bare domains
  • Removes utm_*, fbclid, gclid, msclkid, mc_eid and 40+ other trackers
  • Unwraps Google, Facebook, Instagram, LinkedIn, Reddit and Outlook Safe Links redirects
  • Keeps brackets that belong to the URL, drops sentence punctuation
  • Filter by website and see how many links each one has

Supported formats

You can open

  • Typed or pasted text
  • TXT
  • HTML file

You get

  • Copied text
  • TXT

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Extract URLs and Clean Links is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Only known tracking parameters are removed; unknown ones stay so that no link breaks.
  • Shortened links (bit.ly and similar) are not expanded, because that would mean visiting them.

Guide

Extracting links from text and removing tracking parameters

Copying links out of a document should be simple, but real text fights back. A sentence ends with a full stop right after the address, a link sits in brackets, Wikipedia addresses contain brackets of their own, and links shared from Facebook or received in Outlook are wrapped in redirect services and padded with tracking codes. This tool finds the links and gives you clean ones.

Addresses starting with http://, https://, ftp:// or www. are recognised anywhere in the text: in sentences, Markdown, HTML source, chat exports or CSV files. Turn on bare domains to also catch example.com/page written without www, for common endings such as .com, .org, .net, .io and country domains. Email addresses are left alone, so the domain of [email protected] is not reported as a link.

Punctuation and brackets

A full stop, comma, colon or closing quote at the end of a link almost always belongs to the sentence, so it is removed. Closing brackets are trickier: in “(see https://example.com/page)” the bracket ends the remark, while in a Wikipedia address like Comma_(disambiguation) it is part of the page name. The extractor keeps a closing bracket only when the link contains a matching opening one.

Removing tracking parameters

Marketing tools add parameters that only record where a click came from: utm_source and the other utm_ tags, Facebook’s fbclid, Google Ads’ gclid, Microsoft’s msclkid, Mailchimp’s mc_eid, HubSpot’s _hsenc, Instagram’s igshid and dozens more. They are removed, while parameters that change the page, such as id, page or q, are kept. The panel under the result lists which tracking parameters were found and how often, which is a quick audit of a newsletter or a shared document.

Unwrapping redirects

Some links do not lead to the page at all but to a redirect service that records the click first. Links copied from Facebook and Instagram go through l.facebook.com, search results through google.com/url, and links in Microsoft 365 email through Outlook Safe Links. With unwrapping on, the real destination is taken from the redirect link and cleaned like any other address. Unwrapping is done by reading the address itself; no website is contacted.

Sorting and filtering

Duplicates are merged after cleaning, so two copies of the same page with different tracking codes become one entry. Order the list as found, alphabetically or grouped by website, or keep only one website’s links with the filter. The website table shows how many links point to each site.

Privacy

Everything happens in your browser. Neither the text nor the links are sent anywhere, and cleaned links share less about you when you pass them on.

A worked example

A link shared from a newsletter often looks like https://example.com/blog/launch?utm_source=newsletter&utm_medium=email&id=42. After cleaning it is https://example.com/blog/launch?id=42: the two utm_ tags are gone, the id that selects the article stays. A link copied from Facebook such as l.facebook.com/l.php?u=… is first unwrapped to the address in its u parameter and then cleaned, so the fbclid code inside it disappears as well.

Collect addresses from the same text with Extract Email Addresses, get the text out of HTML with Strip HTML Tags, or encode a link for use in another URL with the URL Encoder.

Checked against the current version of the Extract URLs and Clean Links on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Why is a link from my newsletter so long?

Email and social platforms append parameters such as utm_source, utm_campaign or fbclid so they can report which message or post a visitor came from. They do not change the page, which is why they can be removed safely.

Can it expand bit.ly or other short links?

No. Finding where a short link leads means requesting it from the shortening service, and this tool never contacts other websites. Paste the short link into your browser to see where it goes.

Does it work with links in Markdown or HTML?

Yes. Links are found inside Markdown brackets, HTML href attributes and plain text alike, and the surrounding brackets or quotes are not included in the result.

Will removing tracking parameters break a link?

Not for the parameters on this list: they only report where a click came from. Parameters such as id, page or q are kept because they change what the page shows.

What are Outlook Safe Links?

Outlook and Microsoft 365 rewrite links in emails to pass through safelinks.protection.outlook.com so they can be scanned. Unwrapping reveals the original address the sender wrote.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.