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.
How the UTM parser works
- Paste your links, one per line. Blank lines are skipped, and lines after the first 2,000 links are not read.
- Each line must be a full URL starting with
http://orhttps://. Other lines are listed with their line number, so you can find and fix them. - The part between
?and#is split into parameters. Names match in any case, and%20and+in a value are shown as spaces. - When a parameter appears twice, the first value that is not empty is used. A parameter that is missing leaves an empty cell.
- 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
| Column | Read from |
|---|---|
| Source | utm_source, where the link was shared |
| Medium | utm_medium, the kind of channel |
| Campaign | utm_campaign, the push the link belongs to |
| Content | utm_content, which link or ad was clicked |
| Term | utm_term, often a paid search keyword |
| Ref | ref, a short tag some sites add in place of UTM tags |
| Clean URL | The 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 issocialand campaign isexample-launch. - Content, term and ref are empty, since the link does not have them.
- Clean URL is
https://example.com/?plan=pro#faq.planis 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.
LinkedInandlinkedinare two sources in tools that compare values exactly. Keep the lowercase one. - Medium: only values from your list. Virling counts
paidsocialas Paid, but notpaid-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 Launchandoctober-launchare 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
| Input | What the tool does |
|---|---|
A link without https://, such as example.com/signup | Lists it under the table with its line number and leaves it out of the copied table and the CSV. |
A header line such as url | Lists the header as not a full URL and parses the lines below it. |
| A link in quotes | Lists it as not a full URL. Remove the quotes. |
| More columns after the link, separated by commas or tabs | Reads 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 link | Lists the line as not a full URL. Paste only the link column. |
| Two links on one line | With a space between them, lists the line as more than one link. With only a comma, reads them as one link. |
| The same parameter twice | Uses the first value that is not empty. |
Capitals, such as UTM_Source=LinkedIn | Reads 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 HTML | Does not read the tag after it, and leaves that tag in the clean URL. Replace & with &. |
A second ? where & should be | Treats the rest as part of the value before it, so those tags are not read as tags. |
utm_id and other utm_ names | Has no column for them, and removes them from the clean URL. |
| The same link twice | Keeps both rows. |
| More than 2,000 links | Reads the first 2,000 and says how many are left out. |
Related tools and guides
- UTM checker: find capitals, spaces, duplicates and missing tags.
- UTM builder: build one tagged link from a page URL.
- Bulk UTM builder: tag a whole list of links at once.
- URL cleaner: remove click IDs such as
gclidandfbclidas well as UTM tags. - Which UTM parameters to use to trace revenue: the five parameters and the mistakes that send revenue to Direct.
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.