virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
tools / url cleaner

Remove UTM parameters from a URL

Paste one link or a whole list, one per line. The URL cleaner removes every utm_ tag and well-known click IDs such as gclid and fbclid, and keeps every other parameter and the # part unchanged. Everything runs in your browser.

To check the tags on a link instead of removing them, use the UTM checker. To tag a clean link again, use the UTM builder.

UTM tags do their job on the landing page. Virling reads them when the visit starts and links the visit to the payment it led to, so a sale keeps its source without a click ID. 14 days free.

Start free trial

How the URL cleaner works

Each line is read as a link. The part between ? and # is split into parameters, and a parameter is removed when its name starts with utm_ or is in the first list below. Capitals in the name do not matter. The rest is put back in the same order and spelling, without re-encoding anything.

  • The fragment stays. Everything from # on is kept, including any tags someone put there by mistake.
  • Links inside links stay. If a parameter holds another encoded address, as in ?next=%2Fpricing%3Futm_source%3Dx, its value is kept as it is.
  • Bad lines are marked. A line that is not a full link is flagged in the results and left as pasted, in its place. Blank lines are skipped.

A worked example

Take the first example link above: https://example.com/pricing?plan=pro&utm_source=newsletter&utm_medium=email&gclid=EXAMPLE123&ref=partner#faq. The names and values are made up for the example.

  1. utm_source, utm_medium and gclid are removed. plan=pro, ref=partner and #faq stay: https://example.com/pricing?plan=pro&ref=partner#faq.
  2. With the box ticked, ref goes too: https://example.com/pricing?plan=pro#faq.

Parameters that are always removed

ParameterWho sets it
utm_source, utm_medium, utm_campaign, utm_term, utm_contentYou or your marketing tools, as campaign tags. Any other name starting with utm_ goes too
gclid, gclsrcGoogle Ads and Search Ads 360, when auto-tagging is on
gbraid, wbraidGoogle Ads, for clicks between the web and apps
gad_source, gad_campaignidGoogle Ads, to name the ad source and the campaign
dclidCampaign Manager 360 and Display & Video 360
srsltidGoogle Merchant Center auto-tagging, on product results. See what the srsltid parameter is
msclkidMicrosoft Advertising
fbclidMeta, on links clicked on Facebook and Instagram
igsh, igshidInstagram, on links copied from the app or site
ttclidTikTok
twclidX (Twitter)
li_fat_idLinkedIn
epikPinterest
ScCidSnapchat
rdt_cidReddit
yclidYandex Direct
mc_cid, mc_eidMailchimp: the campaign and the recipient
_kxKlaviyo, to identify the person who clicked in an email

Parameters removed only when you tick the box

These names are used for tracking on some sites and for something else on others, so they stay unless you ask.

ParameterWho sets it
ref, ref_src, referrerDirectories, newsletters, referral and affiliate programs, or the site itself. Removing it can drop a partner’s credit
source, src, viaHand-made campaign tags, or a setting the page needs
campaign, cidCampaign tags on some sites, a category or customer number on others
siShare links from some apps, such as YouTube, or a site’s own setting
_glGoogle tags, to carry a visitor’s ID between two linked domains

When tags disappear on their own

Links can also lose parameters without anyone cleaning them. Apple removes tracking information from some links but does not publish which parameters; see iOS Link Tracking Protection and UTM parameters. Redirects, link shorteners and login pages can drop the whole query string; see why UTM parameters are lost after a redirect.

Related tools and guides

questions

URL cleaner FAQ

How do I remove UTM parameters from a URL?

Paste the link above and copy the clean one. By hand, delete every utm_ name and its value from the part after ?, together with the & that joins it to the next one. Keep the other parameters and everything from # on.

Will the link still work without its UTM tags?

Almost always. UTM tags and click IDs are there for measurement, and pages rarely need them to load. Other parameters, such as a product number or a search term, can change the page, so the cleaner keeps them. Open a clean link once before you share it widely.

What are gclid, fbclid and msclkid?

They are click IDs. Google Ads adds gclid, Meta adds fbclid and Microsoft Advertising adds msclkid to the link when someone clicks, so the platform can tie the visit back to that click.

Should I remove UTM tags from my own campaign links?

Not from links you place to measure a campaign: without the tags the visit falls back to its referrer, or to Direct when there is none. Clean a link when you copy it from the address bar to share it, so the next visitor is not counted under the old campaign.

Why is ref kept unless I tick the box?

ref means different things on different sites. It can be a campaign tag, an affiliate code that earns someone a commission, or a setting the page needs. Tick the box when you know it is safe to remove.

Are my links sent anywhere?

No. The cleaning runs in your browser and nothing you paste leaves the page.

See the revenue behind every tagged link

Tags tell you where a visit came from. Virling follows it to the payment, so you see the customers and revenue each channel brings from your real numbers. 14 days free.

Start free trial See the demo