URL / CRM / Accounting

How to remove a query string from a URL

2026-06-21
Task

URLs arrive with ?utm_source=... and sometimes with #fragment. The result needs a clean URL without parameters.

Short answer

In clean_url, remove everything after ?, then remove ?; use the same pair of rules for #.

How to do it in Eofferix

  1. Upload the table with URLs and open the table editor.
    Clean URL without query string in Eofferix
    The clean_url column shows URLs without parameters and fragments.
  2. Create clean_url from url and add rule pairs for ? and #: Remove after, then Remove substring.
    Rules for removing query string and fragment from URL
    Each pair cuts the string by a separator and then removes the separator itself.
  3. Check rows with only a query string, only a fragment, and no parameters.
  4. Save the template and use clean_url in the export.

Before / after

The data below is a training example and does not belong to real user files.

Before

source data
idurl
1001https://site.example/catalog/item.html?utm_source=ad&utm_campaign=spring
1002https://site.example/files/manual.pdf#page=2

After

result
idclean_url
1001https://site.example/catalog/item.html
1002https://site.example/files/manual.pdf

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up