Remove tracking parameters from a list of URLs
Remove utm_*, fbclid and other tracking junk from any list of links in one paste, while keeping the parameters that matter.
Need this in a pipeline, not a browser tab?
Cleaning links one by one does not scale. One API call does.
Get the All-Access Bundle — $49 onceFree for 10 rows per table · $9 once, no subscription
Runs entirely in your browser. No upload, no account, no analytics.
Deleting utm_* by hand breaks a URL more often than it fixes it. Four things
go wrong, and all four are invisible until a link 404s.
1. Case. UTM_Source and utm_source are different
keys to a server but the same intent to a human. Match case-insensitively.
2. Percent-encoding. fbclid%3D... inside another parameter's
value is not the parameter you think it is. Decode once before matching.
3. Duplicate keys. ?id=1&id=2 is legal and order matters.
A naive key-value rebuild keeps only the last one.
4. Parameters that look like tracking but are not.
ref, src and campaign are sometimes required by the
destination. Removing them silently breaks the link.
The safe list: utm_*, fbclid,
gclid, msclkid, mc_cid, mc_eid,
igshid, _ga, yclid. Everything else, leave it.
Questions
Should I remove ref and src?
Only if you know the destination ignores them. Some affiliate links require ref.
Do I need to keep the hash fragment?
Yes. #section is not sent to the server but it matters to the page.
What about parameters in a redirect URL?
Decode once, strip, then re-encode. Stripping before decoding misses encoded values.