Free tool · SEO and webmaster
UTM builder
Fill in the page address and the campaign tags, and get a finished link with a table of every parameter. It keeps your existing query string and #fragment, tidies case and spaces, and checks the address. Nothing you type leaves your device.
- Free
- No sign-up
- Runs in your browser
- 4 tags added
- 138 characters
- Lowercase
- #fragment kept at the end
- Page
- https://www.example.com/pricing
- Existing query kept
- plan=pro
- Fragment
- #compare
| Parameter | Value | In the link |
|---|---|---|
| utm_source | newsletter | newsletter |
| utm_medium | ||
| utm_campaign | spring_sale | spring_sale |
| utm_content | header_button | header_button |
How to use the UTM Builder
- Type the page address into Website URL. A missing https:// is added for you.
- Fill in Source, Medium and Campaign, and the optional Campaign ID, Term and Content.
- Choose Lowercase everything and what Spaces in values become.
- Check the Parameters table, then press Copy link.
What are UTM parameters, and which ones are required?
UTM parameters are tags added to the end of a link, after a question mark, so that analytics can tell which campaign brought a visit. Google's page on campaign URL parameters says to always include utm_source, utm_medium and utm_campaign, and recommends setting every relevant parameter, including utm_id, because a missing one shows up as "(not set)" in reports. utm_term and utm_content are optional. This builder follows that: it will not build a link until the three required tags are filled in.
Source, medium and campaign answer three questions: where did the click come from, through what kind of channel, and as part of which campaign. The values are yours to choose, and examples such as newsletter, email and spring_sale are only examples. For "https://www.example.com/pricing?plan=pro#compare" the finished link is https://www.example.com/pricing?plan=pro&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=header_button#compare.
| Parameter | Required | What it answers | Example |
|---|---|---|---|
utm_source | Yes | Where the link is placed or who sends the traffic | newsletter |
utm_medium | Yes | The kind of channel | email |
utm_campaign | Yes | The name of the campaign | spring_sale |
utm_id | No, but recommended | An ID that ties the link to a campaign | c-1042 |
utm_term | No | A keyword, for paid search links | running shoes |
utm_content | No | Tells apart links that go to the same place | header_button |
Are UTM values case sensitive, and how should I name them?
Yes. Google's page states that parameter values are case sensitive, so "Newsletter" and "newsletter" are counted as separate sources, and it recommends lowercase throughout to avoid split reporting. That is why Lowercase everything is ticked by default. If you turn it off and type a capital letter, the tool warns you: "utm_source has capital letters. Parameter values are case sensitive, so "Newsletter" and "newsletter" would be reported as two different values."
Pick one naming habit and keep it. Spaces in values are the other common mess: choose Underscore or Hyphen and the same campaign is always written the same way. With %20 the space is kept as an encoded space. Whatever you choose, the characters that have a meaning inside a link, such as &, = and #, are percent-encoded so they cannot break it: a term of "running shoes & socks" becomes running%20shoes%20%26%20socks#compare.
A naming plan matters more than any single link. Decide once which sources you use (for example one value per newsletter, per social network and per partner), which mediums (email, social, paid search, referral) and how campaign names are written, then write that list down for everyone who builds links. A team that uses "fb", "Facebook" and "facebook.com" for the same place ends up with three rows in every report. The Parameters table under the result shows exactly what will be written, so you can check each value against the plan before you copy the link.
Do not put personal data in these values. They are part of the link, visible to anyone who sees it, and they travel into reports. The tool warns when a value looks like an email address.
How does it handle an existing query string and a #fragment?
Many addresses already have a query, such as ?plan=pro, and some end in a #fragment that jumps to a section. The builder keeps your query exactly as typed, adds the UTM tags after it, and puts the fragment last, where the browser expects it: https://www.example.com/pricing?plan=pro&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=header_button#compare. A bare address stays bare: "https://example.com" becomes https://example.com?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale, with no slash added.
If the address already carries utm tags, they are replaced by the ones you enter rather than repeated: https://example.com/?a=1&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale keeps a=1 and drops the old source. The tool only accepts http and https addresses with a domain, and says what is wrong when it does not. Link shortening needs a server, so it is not part of this tool. For the length and wording of the page title or description you link to, the character counter helps, and the URL encoder and decoder shows what percent-encoding does to any piece of text.
Use it with
- URL Encoder Decoder: percent-encode or decode URLs.
- Character Counter: count characters with and without spaces.
- Robots.txt Generator: build a robots.txt file.
Questions
What are UTM parameters and how do I build them?
They are tags after a question mark in a link, such as utm_source=newsletter, that tell analytics where a visit came from. Type the address and the tags here and copy the finished link.
Which parameters are required?
Google's page on campaign URL parameters says to always include utm_source, utm_medium and utm_campaign. utm_term and utm_content are optional, and utm_id is recommended.
Are UTM values case-sensitive?
Yes. According to Google's page, "Google" and "google" count as separate values, and lowercase throughout is recommended. This tool lowercases by default.
What happens to my existing ?query and #fragment?
They are kept. The tags go after your query and the fragment stays last: https://www.example.com/pricing?plan=pro&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=header_button#compare
How do I track a link from an email or social post?
Use a different value per place: for example source newsletter and medium email for the email, and another source for each social post. Then paste the finished link into that message.
Is it safe to put an email address in a UTM tag?
No. Tag values are visible in the link and appear in reports, so do not use personal data. The tool warns when a value looks like an email address.
How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.