Developer tools
UTM link builder
Build a link with UTM tags: enter a URL, source, medium and campaign, plus an optional term and content, and inspect the exact text output.
The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. Nothing is saved or sent automatically.
Result
Method:
The five utm_ parameters are set or replaced; empty optional ones are removed. Other parameters, the #fragment and upper or lower case in your URL stay as they are. Use the same spelling for source and medium every time, because analytics tools treat “Newsletter” and “newsletter” as different sources. The preview depends on your browser, so check the result on your own page. Copy the code or download it as TXT or CSV; JSON and printable HTML files also keep your inputs. Nothing is saved or sent automatically and entered addresses are never opened.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
The address is built with the browser’s URL functions, so special characters are encoded correctly. The five utm_ parameters are set or replaced; empty optional ones are removed. Other parameters, the #fragment and upper or lower case in your URL stay as they are. Use the same spelling for source and medium every time, because analytics tools treat “Newsletter” and “newsletter” as different sources. The preview depends on your browser, so check the result on your own page. Copy the code or download it as TXT or CSV; JSON and printable HTML files also keep your inputs. Nothing is saved or sent automatically and entered addresses are never opened.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Absolute HTTP(S) URL
- https://example.test/page?x=1#section
- Source: required, max 80
- newsletter
- Medium: required, max 80
- Campaign: required, max 80
- autumn
Result
- Generated URL
- https://example.test/page?x=1&utm_source=newsletter&utm_medium=email&utm_campaign=autumn#section
Frequently asked questions
How do I build a URL with UTM parameters?
Enter the page URL, source, medium and campaign, plus an optional term and content, then generate. For example, newsletter, email and autumn are added as utm_source, utm_medium and utm_campaign.
Which UTM parameters are required?
Source, medium and campaign are required. Term and content are optional, and a blank optional key is removed from the link.
Does the UTM link builder keep existing query parameters and anchors?
Yes. Unrelated query parameters and the fragment are preserved, so page?x=1#section keeps x=1 and #section with the UTM tags inserted before the fragment.
What happens if my URL already has UTM tags?
The builder replaces the five exact utm_ keys with the values you enter and removes blank optional ones.
Which URLs can I tag with the UTM link builder?
Only absolute HTTP or HTTPS URLs without credentials or whitespace are accepted. Letter case is preserved, and each output row is limited to 500 characters.
Does the UTM link builder set up analytics tracking?
No. It does not fetch the URL, install analytics, measure anything or claim ownership of the address. It only builds the link text.