Category: Developer tools

UTM Builder

Community idea by Budi #X3V9Missing a tool?

Create campaign URLs with the five classic UTM parameters

Build a campaign URL with utm_source, utm_medium, utm_campaign, utm_term and utm_content locally. Copy the encoded UTM link.

Campaign URL
https://uselocaltools.com/?utm_source=newsletter&utm_medium=email&utm_campaign=spring-launch
Query parameters
utm_sourcenewsletterutm_mediumemailutm_campaignspring-launch

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

This UTM builder assembles a campaign URL in the browser with the URL API. Enter a base URL plus utm_source, utm_medium, utm_campaign, utm_term and utm_content. Empty fields are omitted, surrounding whitespace is trimmed, and spaces, accents and other special characters are percent-encoded. Existing non-UTM query parameters and the fragment are preserved, while existing UTM parameters are overwritten with the values in the form. The page lists every query parameter on the finished URL and lets you copy the result. It does not support utm_id, GA4 extension fields, custom parameter rows, source or medium presets, naming enforcement, lowercasing, hyphen or underscore rewriting, saved history, bulk generation, CSV export, link shortening, QR codes, destination checks, click tracking or analytics reporting. A base URL without a scheme is invalid. URLs and campaign names stay in the browser and are not uploaded to LocalTools.

How to use it

  1. Enter a complete base URL that includes http:// or https://.
  2. Fill in the UTM fields you need and leave optional fields blank.
  3. Review the finished URL and parameter list, then copy the encoded campaign link.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

What is a UTM builder for?
It adds campaign parameters such as utm_source, utm_medium and utm_campaign to a destination URL so analytics tools can later identify traffic sources.
How should I name UTM parameters?
Use your own campaign convention. LocalTools trims surrounding whitespace and encodes values, but it does not enforce lowercase, replace spaces or validate naming rules.
What happens to query parameters already on my URL?
Existing non-UTM parameters and the fragment stay in place. Existing UTM parameters are overwritten so the finished URL does not carry duplicates.
Does the base URL need to start with https://?
Yes. The browser must be able to parse the base URL, so a URL without http:// or https:// is shown as invalid.
Does LocalTools track clicks or send data to Google Analytics?
No. This tool only builds the URL locally. It does not shorten links, track clicks, report campaigns or connect to analytics services.