Skip to main content

UTM URL builder

Build a trackable URL with UTM source, medium, campaign, term and content.

  • Clipboard

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Generated UTM URL

Was this tool useful?

How does this tool work?

This builder adds UTM parameters to a destination URL so that visits from a newsletter, a social post or an ad are credited to the right source in Google Analytics, Matomo or any tool that reads these parameters. It keeps existing parameters and encodes every value correctly.

The destination URL must be an absolute http or https address; otherwise an error message appears.

The five fields fill in utm_source, utm_medium, utm_campaign, utm_term and utm_content. Leading and trailing spaces are removed and each value is encoded (a space becomes +).

An empty field removes the corresponding UTM parameter if it was already in the URL; a filled field replaces the old value instead of creating a duplicate.

The URL’s other parameters, such as ?ref=home, and any fragment are kept; the UTM parameters are added after them in a fixed order.

How to use this tool

  1. Paste the destination URL

    The exact address of the target page, with https://.

  2. Fill in source, medium and campaign

    For example newsletter, email and summer-sale-2026.

  3. Add term and content if useful

    The term for a paid keyword, the content to tell apart two links in the same message.

  4. Copy the generated URL

    Use it as it is in your email, post or ad.

Use cases

Track a newsletter

Tell apart, in your analytics, the visits from each send and each button.

Measure a social campaign

Compare visits from the same post shared on LinkedIn, Facebook and Instagram.

Track a QR code or printed material

Find out how many visits come from a poster or brochure by encoding a UTM URL in the QR code.

Examples

Newsletter button

The existing ref parameter is kept and the four UTM parameters are added after it; utm_term, left empty, does not appear.

Input

Destination URL: https://example.com/sale?ref=home
Source (utm_source): newsletter
Medium (utm_medium): email
Campaign (utm_campaign): summer-sale-2026
Content (optional): main-button

Result

Generated UTM URL: https://example.com/sale?ref=home&utm_source=newsletter&utm_medium=email&utm_campaign=summer-sale-2026&utm_content=main-button

Tips and best practices

  • Write values in lower case without spaces: Google Analytics treats Newsletter and newsletter as different, which scatters your data.
  • Keep one convention for the whole team (email, not e-mail or mail) and record it in a shared sheet.
  • Never use UTM parameters on your site’s internal links: they overwrite the visit’s real source and distort attribution.
  • In GA4, pick utm_medium from the recognised values (email, social, cpc, referral…) so visits land in the right channel group.

Sources and references

Frequently asked questions

Which UTM parameters are required?

The tool does not force any, but utm_source, utm_medium and utm_campaign are the three that analytics tools expect to attribute a visit correctly. utm_term and utm_content are optional.

What if the URL already contains UTM parameters?

Each filled field replaces the existing value and each empty field removes the parameter, so you get a URL without duplicates that matches the form.

Do UTM parameters hurt SEO?

No, as long as you keep them for external links. If URLs with UTM parameters get shared and crawled, a canonical tag pointing to the clean URL avoids duplicates.

Why do my spaces turn into +?

That is the standard encoding for query parameters. Analytics tools decode them back to spaces, but hyphens give more readable reports.

Are my URLs sent to a server?

No. The URL is built in your browser.

Related tools

Tools similar or complementary to this one.

Similar tools

Create SEO, Open Graph and Twitter/X tags for a web page.

Web & SEOFeaturedUse this tool

Create a clear robots.txt file to guide web crawlers.

Web & SEOFeaturedUse this tool
TutorialBest practicesBeginner

Optimize images for the Web without losing quality

Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.

30 August 20264 min