UTM Parameter Builder

Add campaign parameters such as utm_source, utm_medium, and utm_campaign to the destination URL locally in the browser, preserving existing query parameters and anchors while supporting copying and downloading.

Local browser processing
This page has passed the public directory check; full functionality is available after enabling JavaScript.
User Guide

How to use the UTM parameter builder

The destination URL and campaign parameters are assembled only in the current browser and are not sent to Analytics, this site’s API, or other network services.

  1. Enter the target URL

    Enter a complete http:// or https:// target URL; existing query parameters and anchors will be preserved.

  2. Fill in the campaign fields

    Source, medium, and campaign are required. Campaign ID, keyword, and content provide more detailed attribution distinctions.

  3. Generate and deliver

    After generating, check URL, then copy it into an ad or sharing link, or download the TXT file.

Limitations and Notes

  • The target URL can contain at most 2048 characters, and each UTM field can contain at most 120 characters; empty optional fields will not be included.
  • The tool only assembles parameters. It does not verify whether the campaign name follows your Analytics report naming conventions or send test requests.
  • Existing parameters with the same name, utm_*, will be overwritten by this input; other query parameters and anchors remain unchanged.

FAQ

Does generation access the destination website?

No. The page uses only the browser’s URL and URLSearchParams API to build strings locally.

Why are source, medium, and campaign required?

They are core fields for commonly used campaign attribution; without them, reports are likely to contain incomplete or incomparable data.

What happens to spaces in parameter values?

The browser encodes parameter values according to the URL standard; the encoded form in the result URL can be used directly in links.

Page feedbackFound an issue or have suggestions for improvement?
Feedback features need to be used in the online version

Please enable JavaScript in the online version before submitting; local features of the current tool or example are not affected.

Go to the online version for feedback