Skip to content
UniKit

Set URL parameters

Set or overwrite query parameters on a list of http(s) URLs, keeping paths and #fragments, and reporting how many lines actually changed.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

URL list

Updated URLs

One name=value per line; values are percent-encoded.

Enter URLs and parameters

Values are encoded following URL rules (spaces become +, non-ASCII is escaped). If any line is not a valid http(s) URL the whole run fails instead of silently skipping it.

What this tool does

  • Add the same utm_source / utm_campaign parameters to a batch of landing-page links.
  • Overwrite stale parameters (for example lang=zh → lang=en) while keeping paths and other parameters.
  • Check which lines really changed: changed and unchanged lines are counted separately.

Example

Input

URL: https://example.com/search?q=old
Parameters: q=new

Output

https://example.com/search?q=new

An overwritten parameter keeps its position, and the path and #fragment are untouched; identical values count as unchanged.

Frequently asked questions

How are parameters written?

One name=value per line, e.g. utm_source=unikit. A missing equals sign, an empty name or illegal characters in the name all raise invalid-parameter.

What happens to an existing parameter with the same name?

Its value is overwritten in place; brand-new parameters are appended at the end of the query string. Path, port and #fragment are left alone.

How are "changed" and "unchanged" counted?

The full URL text is compared before and after each line: only a real text difference counts as changed. In the example q=old → q=new changes, whereas a line that already had q=new counts as unchanged (an earlier version counted every line as changed, which was wrong).

How are spaces and non-ASCII values encoded?

Per URL query-string rules: spaces become +, and non-ASCII text is percent-escaped (中文 → %E4%B8%AD%E6%96%87).

What if one line is not a valid URL?

The whole run fails with invalid-url instead of silently skipping that line — silent skips are easy to miss in a batch job. Clean out non-http(s) lines (ftp://, bare domains) first.

Keywords:URLqueryutmset paramurl params

Related tools