Code · Made a little simpler

UTM Link Builder

Build a campaign URL from a destination, source, medium and campaign name. Replace old campaign keys while retaining unrelated query fields and the fragment. Inspect the decoded values before copying or saving the link.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
utm_source
utm_medium
utm_campaign
Optional UTM fields
utm_id
utm_term
utm_content
utm_source_platform
utm_creative_format
utm_marketing_tactic

Filled fields replace all matching UTM keys, including case variants. Unrelated query fields stay in order.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

UTM Link Builder: how to use it

  1. Paste the full HTTP or HTTPS destination URL and enter Source, Medium and Campaign.
  2. Add optional fields. Open Naming rules to normalize entered UTM values and add typed or imported custom query parameters.
  3. Build the campaign URL. Verify the decoded campaign values and copy the complete URL or download it as text.

Limits and notes

One HTTP(S) destination up to 8,192 characters, excluding embedded credentials or raw whitespace. Campaign values are trimmed and may contain up to 200 characters each. Filled fields replace all ASCII case variants of matching supported UTM keys. The output keeps other query pairs in their original order and encoding after standard URL normalization. The destination is never opened by this tool.

How your privacy works →

UTM Link Builder: common questions

What happens if a URL already has two utm_source values?

Entering Source removes all existing spellings of that UTM key and writes one lowercase utm_source key with your new value.

Can I keep an existing utm_term if I leave Term empty?

Yes. Existing optional UTM fields stay in the URL by default. Choose Remove existing optional UTM fields when blank to clear them.

Will my page anchor and other query parameters survive?

The result keeps the fragment at the end and keeps other query pairs in order, including repeated or percent-encoded values.

How do I apply the same naming policy to multiple campaign links?

Open Naming rules. Set letter case, space handling, separator behavior and a maximum token length. Review the changed values before saving a link.

Tool guides