virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
tools / bulk utm parser

Bulk UTM parser

Paste URLs, one per line, and the UTM parser extracts utm_source, utm_medium, utm_campaign, utm_content, utm_term and ref from each, plus the clean URL without those tags. Copy the table or download it as a CSV. Nothing you paste leaves your browser.

The parser only reads tags. To look for mistakes in them, paste the same links into the UTM checker.

See the revenue each tagged link brings

Virling reads your UTM tags and links each visit to the payment that followed, so each campaign shows the visitors and revenue it brought. Virling is open source under AGPLv3: self-host it free, or start a 14-day hosted trial.

Start free trial See the demo

How the UTM parser works

  1. Paste your links, one per line. Blank lines are skipped, and lines after the first 2,000 links are not read.
  2. Each line must be a full URL starting with http:// or https://. Other lines are listed with their line number, so you can find and fix them.
  3. The part between ? and # is split into parameters. Names match in any case, and %20 and + in a value are shown as spaces.
  4. When a parameter appears twice, the first value that is not empty is used. A parameter that is missing leaves an empty cell.
  5. Copy the table to paste it into a spreadsheet, or download it as a CSV with the original URL next to the parsed columns.

What each column holds

ColumnRead from
Sourceutm_source, where the link was shared
Mediumutm_medium, the kind of channel
Campaignutm_campaign, the push the link belongs to
Contentutm_content, which link or ad was clicked
Termutm_term, often a paid search keyword
Refref, a short tag some sites add in place of UTM tags
Clean URLThe link without ref and without any parameter starting with utm_

Tags after the # are not parsed, since most analytics tools read tags from the query string only. They stay in the clean URL as part of the fragment.

A worked example

Take the second example link above. The names and values are made up for the example:

https://example.com/?plan=pro&utm_source=linkedin&utm_medium=social&utm_campaign=example-launch#faq
  • Source is linkedin, medium is social and campaign is example-launch.
  • Content, term and ref are empty, since the link does not have them.
  • Clean URL is https://example.com/?plan=pro#faq. plan is not a tracking tag, so it stays.

In the CSV the row looks like this:

url,utm_source,utm_medium,utm_campaign,utm_content,utm_term,ref,clean_url
https://example.com/?plan=pro&utm_source=linkedin&utm_medium=social&utm_campaign=example-launch#faq,linkedin,social,example-launch,,,,https://example.com/?plan=pro#faq

A sample CSV to copy

The parser takes a CSV with one column, the link, and no header row. Copy these made-up links, paste them over the list in the tool, and all five lines are parsed.

https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=october-launch&utm_content=header-button
https://example.com/pricing?utm_source=linkedin&utm_medium=social&utm_campaign=october-launch
https://example.com/pricing?utm_source=LinkedIn&utm_medium=paid-social&utm_campaign=October+Launch
https://example.com/shoes?utm_source=google&utm_medium=cpc&utm_campaign=october-launch&utm_term=blue+shoes
https://example.com/blog/launch?ref=partner-site

What to look for in the columns

Every line of the sample is valid, but the third one would split a report. Read each column from top to bottom:

  • Source: one spelling per place. LinkedIn and linkedin are two sources in tools that compare values exactly. Keep the lowercase one.
  • Medium: only values from your list. Virling counts paidsocial as Paid, but not paid-social, so that ad is grouped by its referrer or source with your unpaid posts. A platform name in this column means the two tags are swapped: see utm_source vs utm_medium.
  • Campaign: one name per push. October Launch and october-launch are two rows in Virling, each with part of the money. Revenue by campaign shows how to read those rows.

Then write the agreed names into the UTM naming template and tag the clean URLs again with the bulk UTM builder.

Common input problems

InputWhat the tool does
A link without https://, such as example.com/signupLists it under the table with its line number and leaves it out of the copied table and the CSV.
A header line such as urlLists the header as not a full URL and parses the lines below it.
A link in quotesLists it as not a full URL. Remove the quotes.
More columns after the link, separated by commas or tabsReads the whole line as one link, so the extra cells become part of the last value or of the clean URL. Paste only the link column.
A column before the linkLists the line as not a full URL. Paste only the link column.
Two links on one lineWith a space between them, lists the line as more than one link. With only a comma, reads them as one link.
The same parameter twiceUses the first value that is not empty.
Capitals, such as UTM_Source=LinkedInReads the name in any case and shows the value as written, LinkedIn.
Tags after the #Does not read them. They stay in the clean URL.
& between tags, copied from HTMLDoes not read the tag after it, and leaves that tag in the clean URL. Replace & with &.
A second ? where & should beTreats the rest as part of the value before it, so those tags are not read as tags.
utm_id and other utm_ namesHas no column for them, and removes them from the clean URL.
The same link twiceKeeps both rows.
More than 2,000 linksReads the first 2,000 and says how many are left out.

Related tools and guides

questions

Bulk UTM parser FAQ

What does a UTM parser do?

It reads the query string of a tagged link and splits out the UTM parameters: source, medium, campaign, content and term. This one also extracts ref and gives you the URL without those tags.

How do I extract UTM parameters from many URLs at once?

Paste the URLs one per line, up to 2,000 at a time. Each URL becomes one row of the table, which you can copy into a spreadsheet or download as a CSV file.

What is removed from the clean URL?

Every parameter whose name starts with utm_, and ref. Other parameters, click IDs such as gclid and the # part stay as they were.

What happens to lines that are not URLs?

They are listed under the table with their line number and left out of the copied table and the CSV. A full URL starts with http:// or https://.

Why do some CSV cells start with an apostrophe?

A cell that starts with =, +, - or @ can run as a formula when a spreadsheet opens it. The parser puts an apostrophe in front so the cell is read as text.

Are my links sent anywhere?

No. The links are read in your browser with plain JavaScript, and the CSV is created on your device.

See the revenue behind every tagged link

Tags tell you where a visit came from. Virling follows it to the payment: it links every visit to the payment it led to, so each campaign shows the customers and revenue it brought from real payments. 14 days free.

Start free trial See the demo