Live web-analytics field notes Practical guides on web analytics, tracking, SEO, and digital marketing
SiteTracking
FREE TOOL

URL Parser & Query Splitter

Break any URL into its parts, decode or encode it, and check UTM tags for one link or a whole campaign sheet. See which GA4 channel each link lands in. Everything runs in your browser.

UTM checker: paste up to 2,000 links, one per line

Each link gets its parts, its UTM problems and the GA4 channel it should land in. The summary catches values that differ only by case or separator.

URL encoder and decoder

Paste text or a link. Decoding never stops at an error: broken sequences stay visible and get counted.

Result

How to use this URL parser

Short answer: paste one link to see its parts and its UTM check. Paste a hundred to audit a whole campaign sheet. Paste percent codes to read them as text. The tool runs in your browser and sends your links nowhere.

  1. Single URL. Paste a link and you’ll see the scheme, host, path, query and fragment, each parameter decoded, and a clean copy without the query. Below that sits a UTM check with the GA4 channel the visit should land in.
  2. Bulk UTM Check. Paste up to 2,000 links, one per line. Every link gets its channel and its problems. The summary on top flags values that differ only by case or separator.
  3. Encode / Decode. Turn %D0%BF back into a letter, or make a messy link safe to paste into an ad. Double encoding shows up as layers, so you can see what happened.
  4. Export. Download the bulk results as CSV and fix the sheet where your links actually live.

Want more utilities like this one? The rest of my workbench lives on the free tools page.

What is URL parsing?

URL parsing means splitting a web address into its parts: scheme, host, path, query string and fragment. Browsers do it on every click. You need it when one landing page shows up as 40 rows in a report, or when a paid campaign suddenly turns up as Unassigned.

In GA4 the Page location dimension keeps the full address with every parameter. Google documents that Page path + query string and Landing page + query string leave UTM tags out. So the same visit looks different depending on the dimension you pull.

URL structure reference

PartExampleWhat it does
schemehttps:Tells the browser how to fetch the page.
hostwww.example.comThe domain. International domains travel as xn-- codes, and the parser shows the readable form next to them.
port:8080Usually hidden. 443 is the default for https and 80 for http.
path/blog/spring-saleThe page itself. Letters outside plain ASCII travel as percent codes.
query?utm_source=google&ref=navKey and value pairs joined by &. Campaign tags live here.
fragment#pricingA spot on the page. The browser keeps it and never sends it to the web server.

Examples to paste

These inputs show what each part of the tool catches. Copy one into the matching tab.

  • example.com/pricing?utm_source=Facebook&utm_medium=paid_social&utm_campaign=spring_salePaid Social, plus a warning about the capital F.
  • https://example.com/#/signup?utm_source=newsletter&utm_medium=emailAn error: the tags sit inside the fragment.
  • https://example.com/?utm_source=google&utm_medium=cpc&gclid=TeSt123A note that Google Ads auto-tagging decides the channel, with Paid Search as the fallback.
  • https://пример.рф/путь?q=веснаThe readable host next to xn--e1afmkfd.xn--p1ai, and the Cyrillic path in percent codes.
  • https://www.google.com/url?q=https%3A%2F%2Fexample.com%2Fsale%3Futm_source%3DnewsletterThe real link pulled out of the redirect, ready to parse.
  • spring%2520saleIn Encode / Decode, two layers: first spring%20sale, then spring sale.

How the UTM checker picks a GA4 channel

GA4 sorts every session into a default channel with a fixed table of rules. Google publishes the table and the list of known sites behind it. When I checked in November 2026, that list held 819 sources: 592 social, 129 search, 52 shopping and 46 video.

The checker lowercases your source, medium and campaign first. Google says its channel definitions aren’t case sensitive, so Email and email land in the same channel. Then the tool walks the manual traffic rules from the top and stops at the first one that fits.

channel = first rule that fits (source, medium, campaign)
paid medium = ^(.*cp.*|ppc|retargeting|paid.*)$
Paid Social = source on the social list AND paid medium
no rule fits = Unassigned

The paid pattern is where most teams trip. cpc, cpm, ppc, cpa and paid_social all match it. sponsored, ads and boosted don’t, so those ads quietly count as organic. Google keeps the full table on its default channel group help page.

A worked example (with real numbers)

Say a launch week sends 3,000 sessions through five links. Here’s where each one lands.

Tags on the linkSessionsGA4 channelWhy
utm_source=facebook&utm_medium=paid_social1,100Paid Socialfacebook is on the social list and paid_social is a paid medium.
utm_source=Facebook&utm_medium=paid_social400Paid SocialSame channel, but source reports show Facebook and facebook as two rows.
utm_source=linkedin&utm_medium=sponsored700Organic Socialsponsored doesn’t match the paid pattern, so a paid ad counts as organic.
utm_source=x&utm_medium=cpc500Paid Otherx isn’t on Google’s social list, at least as of November 2026.
utm_source=newsletter&utm_medium=e-mail300Emaile-mail is one of the four email spellings Google accepts.

Now add it up. Your Paid Social line shows 1,500 sessions, but you paid for 2,700. The missing 1,200 sit in Organic Social and Paid Other, and nothing in the report tells you why. Hit Load Example in Bulk UTM Check. It holds these five links with campaign names added, plus two classic mistakes, and it flags rows two, three and four in a second.

URL encoding and decoding, in plain terms

A URL can carry only a small set of characters. Everything else travels as percent codes: a % sign plus two hex digits for each byte. A space becomes %20. The Cyrillic letter п takes two bytes in UTF-8, so it becomes %D0%BF.

Pick the mode by what you’re encoding.

ModeUse it forInputOutput
Parameter valueA value that goes inside a link, like a redirect address or a campaign namea&b ca%26b%20c
Whole link, part by partA link with spaces or non-Latin letters that still has to work as a linkhttps://example.com/café?q=a bhttps://example.com/caf%C3%A9?q=a%20b
Form dataForm bodies, where a space is written as a plus signa ba+b

Whole link mode keeps what’s already encoded. %20 stays %20 instead of turning into %2520, which is the classic double encoding you see in broken campaign reports.

Broken sequences such as %E2%8 or a lone % stay as written. The decoder counts them and tells you, where JavaScript’s own decodeURIComponent would just throw an error and give you nothing.

Frequently asked questions

Are UTM parameters case-sensitive in GA4?+

Values are. Google’s own help says utm_source=google is different from utm_source=Google, and each version gets its own row in source and campaign reports. Channel rules are the exception. They ignore case, so both rows still land in the same channel.

Why does my campaign show up as Unassigned?+

No channel rule matched what you sent. The usual cause is a medium GA4 doesn’t know, like influencer, paired with a source that isn’t on Google’s lists. A missing utm_medium does it too. Paste the link above and the checker names the values that failed.

Does GA4 read UTM tags placed after the #?+

Google’s setup guide puts tags after the ?, in the query string, and that’s the only spot this checker treats as valid. Single page apps often build links like /#/signup?utm_source=x. Move the tags in front of the # and test again.

What happens when a link has gclid and UTM tags?+

Google says that with manual and auto-tagging together, GA4 uses the auto-tagged values for source, medium and channel. If the click ID can’t be used, GA4 falls back to the UTM tags. Keep them complete anyway. The checker shows both outcomes.

How do I group landing pages that have different query parameters?+

Use Page path + query string or Landing page + query string in GA4. Google says both leave UTM tags out. Other parameters, like ref, can still split one page into several rows. The Clean URL line in this tool cuts everything from the ? on.

What’s the longest URL GA4 keeps?+

Google’s collection limits say the page_location parameter must be 1,000 characters or fewer. Long campaign names eat that budget fast. The parser shows the length of every link and warns you once it passes 1,000.

Why do my UTM parameters disappear after a redirect?+

Some redirects rebuild the address and drop the query string on the way. This page never fetches your links, so it can’t follow a redirect for you. Click the final link in a private window and paste whatever lands in the address bar. If the tags are gone, the redirect ate them.

Can it read links wrapped by email security or redirects?+

Usually, yes. Link scanners in email clients and redirect pages tuck your original address inside a parameter, often called url, u or q. The parser decodes it and shows a Parse it button under Link Inside This Link.

Is my data safe when I paste URLs here?+

Yes. Parsing, checking and encoding all run in your browser with plain JavaScript. The tool sends nothing anywhere and stores nothing, so your campaign links stay on your device.

Seven rules for campaign links that report cleanly

  1. Always send utm_source, utm_medium and utm_campaign. Google asks for all three, and a missing one shows up as (not set).
  2. Write every value in lowercase. Reports split Facebook from facebook, even when the channel doesn’t.
  3. Use mediums GA4 understands: cpc or paid_social for ads, then email, social, referral and affiliate. Anything else risks Unassigned.
  4. Pick one separator, a hyphen or an underscore, and never use spaces or plus signs.
  5. Keep the tags before the #, start them with one ?, and join them with &.
  6. Never put an email address or a name in a link. Google’s policy forbids personal data in the URLs Analytics collects.
  7. Run the whole sheet through the bulk checker before launch. Fixing a link takes a minute. Fixing a month of reports takes a month.