Skip to main content
CaseSwitch

UTM URL Generator

Use the CaseSwitch UTM URL Generator to append utm_source, utm_medium, utm_campaign (and optional term/content) to a landing URL. Enter the base URL and campaign fields, then copy the tagged link. Building the string runs in this browser — CaseSwitch does not track the clicks.

Written by the CaseSwitch editorial team. We maintain these tools in the browser so drafts, keys, and images stay on your device.

Last reviewed: 23 July 2026

Uses secure browser randomness when available. Nothing is sent to a server.

Examples

Newsletter link

Input

https://caseswitch.net/blog + source=newsletter medium=email campaign=launch

Output

https://caseswitch.net/blog?utm_source=newsletter&utm_medium=email&utm_campaign=launch

Host without scheme

Input

caseswitch.net + source=twitter medium=social campaign=spring

Output

https://caseswitch.net/?utm_source=twitter&utm_medium=social&utm_campaign=spring

Preserve existing query + content

Input

https://example.com/x?ref=1 + source=partner medium=referral campaign=q1 content=banner

Output

https://example.com/x?ref=1&utm_source=partner&utm_medium=referral&utm_campaign=q1&utm_content=banner

Paid search with term

Input

https://example.com + source=google medium=cpc campaign=brand term=case converter

Output

https://example.com/?utm_source=google&utm_medium=cpc&utm_campaign=brand&utm_term=case+converter

Offline QR campaign

Input

https://example.com/path + source=qr medium=offline campaign=poster

Output

https://example.com/path?utm_source=qr&utm_medium=offline&utm_campaign=poster

How to use

  1. Paste a base URL (with or without https).
  2. Fill source, medium, and campaign (add term/content if needed).
  3. Copy the result and use it in email, ads, or a QR payload.

What this tool is for

Analytics tools attribute campaigns when links carry UTM parameters. This generator merges those fields onto a base URL so newsletters, ads, and QR posters share a consistent taxonomy. It only builds a URL; it does not install analytics or record visits.

How it works

You supply a base URL (a scheme is added as `https://` when missing). Non-empty UTM fields are written with `URLSearchParams`. Existing query keys such as `ref` are kept and UTM keys are set alongside them. Empty UTM fields are skipped.

When to use it

Email campaigns, partner posts, QR codes to a campaign landing page, paid ads that your analytics still reads as UTM, and standardizing naming before a launch.

When not to use it

Do not UTM every internal logged-in app link if it pollutes reports. Do not invent twenty overlapping campaign names. GA4 (or your stack) still needs a documented taxonomy.

How it compares to related tools

URL Encode & Decode is for raw percent-encoding. Slug Generator is for paths. QR Code Generator can encode the finished campaign URL.

Common mistakes

Mixing case (`Email` vs `email`) so reports split. Tagging links that already have UTMs until duplicates appear. Putting spaces in values without checking encoding (the URL API encodes them).

A simple taxonomy

Pick lowercase values and stick to them: `email` not `Email`, `cpc` not `paid-search` on Mondays and `cpc` on Tuesdays. Source is where the traffic comes from, medium is the mechanism, campaign is the initiative name.

UTMs do not track by themselves

The generator only builds a string. Your analytics tag on the destination site records visits. CaseSwitch does not receive those clicks.

Frequently asked questions

Which UTM fields are required?+

In practice source, medium, and campaign are the useful trio. Term and content are optional for ads and A/B creatives.

Does CaseSwitch record these clicks?+

No. We only build the string. Your analytics tool records visits if it is installed on the destination site.

What if the URL already has query params?+

Existing params are kept. UTM keys are set on the same URL (see the ref=1 example).

Do I need https in the input?+

If the scheme is missing, `https://` is assumed when building the URL object.

Should UTMs be lowercase?+

Yes — consistent lowercase prevents split reporting.

Is my campaign URL uploaded?+

No. Generation runs in this browser.

Does this tool send my payload to CaseSwitch?+

No. Formatting, encoding, and naming conversions for this page run in your browser after load — your sample stays on the device.

Related tools