Dev TooloraLocal dev tools

> Web/API

UTM Link Builder

Add utm_source, medium, campaign, term, content and id to a URL, keeping the rest of the link, with findings for missing or case-sensitive values.

Runs locallyWorks offline
Auto-run
Back to results
Input

Source data

Output

Result

Your result will appear here.

Tool guide

About this tool.

Enter the destination URL and at least the source. Add medium, campaign, term, content or a campaign ID as needed.

Leave Lowercase values ticked to keep naming consistent, or untick it to keep your exact case.

The result starts with the finished link, followed by one line per parameter and a list of findings such as missing recommended parameters or replaced values.

Copy or download the link. Nothing is sent anywhere and the link is not visited.

  • https://example.com/ with source newsletter, medium email, campaign Spring Sale → ?utm_source=newsletter&utm_medium=email&utm_campaign=spring+sale.
  • Paid search with term running shoes → utm_term=running+shoes next to source google and medium cpc.
  • Social post with content hero-banner → utm_content separates two creatives of the same campaign.
  • A link that already has utm_source=old → the old value is replaced and an info finding says so.
  • Lowercase off with source Newsletter → the case is kept and a low finding warns that analytics is case-sensitive.
  • Campaign ID cmp-42 with source partner → utm_id=cmp-42 for tools that join on a campaign ID.

  • The URL is at most 8,192 characters and each parameter value at most 500 characters. The URL must be an absolute http or https address.
  • Source is required. Medium and campaign are recommended and reported as low findings when empty.
  • Values are trimmed and empty optional parameters are left out of the link.
  • Existing utm_ parameters that you fill in are replaced; other query parameters and the hash are preserved.
  • Spaces are encoded as "+", which analytics tools read as a space.
  • The tool builds a link only; it does not check that the page exists or that your analytics property is configured.

FAQ

Questions about UTM Link Builder

Why are values lowercased?

Analytics tools group by the exact text, so Email and email become separate rows. Lowercase is on by default; turn it off only when your reports already rely on mixed case.

Which parameters are required?

Only the destination URL and the source are required. Medium and campaign are recommended, because Google Analytics uses them with the source to classify a visit. Term and content are optional and only matter for paid keywords and for telling creatives apart.

Why does the link show + instead of %20?

The tool rebuilds the link with the URL parser, so the query string uses "+" for spaces. Both "+" and %20 are read as a space by analytics tools.

Are existing query parameters and the hash kept?

Yes. Non-UTM query parameters and the hash stay as they were; only the utm_ parameters you fill in are added or replaced.

Continue with

URL ParserBreak a URL into protocol, host, path and query params.Query String ParserConvert URL query strings to JSON and JSON objects back to query strings.URL Encode / DecodeEncode or decode URL components, complete URLs and form values with explicit space and plus handling.