Bulk UTM builder
Paste a list of URLs, one per line, and fill in utm_source, utm_medium and utm_campaign once to tag every link. Or paste a CSV with url, source, medium, campaign, content and term columns to give each row its own tags. Copy all the links or download them as a CSV. Nothing leaves your browser.
A value in a CSV cell wins over the field above; an empty cell uses the field. Tags already on a URL stay unless a value replaces them.
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 bulk UTM builder works
- Paste your links, one per line. Each line must be a full URL starting with
https://. - Fill in the source, medium and campaign once. They are added to every link, the same way the UTM builder does for one link: spaces become hyphens and values are lowercased unless you untick the box.
- To tag rows differently, paste a CSV instead. The first line names the columns:
urlis required, andsource,medium,campaign,contentandterm(orutm_sourceand so on) are optional. - Copy all the tagged links, or download a CSV with the original URL, the tagged URL and the result for each row.
Query strings already on a link are kept, and the tags go before any #fragment, so https://example.com/#features becomes https://example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=october-launch#features. A line that is not a full URL, or a row left without a source, is flagged in the results and left out of the copied links, not dropped silently.
A sample CSV to copy
Five links of one made-up launch. Copy it, paste it over the list in the tool, and all five rows are tagged. Then replace the links and names with yours.
url,source,medium,campaign,content https://example.com/pricing,newsletter,email,october-launch,header-button https://example.com/pricing,newsletter,email,october-launch,footer-link https://example.com/pricing,linkedin,social,october-launch, https://example.com/pricing,linkedin,paidsocial,october-launch,video-ad https://example.com/,google,cpc,october-launch,
The source stays the same for the LinkedIn post and the LinkedIn ad, and the medium tells them apart: see utm_source vs utm_medium. The campaign is the same on every row, so the launch is one row when you read revenue by campaign.
Common input problems
| Input | What the tool does |
|---|---|
A link without https://, such as example.com/signup | Flags it as not a full URL and leaves it out of the copied links. The CSV download keeps the row with its error. |
mailto: and other links that are not web pages | Flags them the same way. Only http and https links are tagged. |
No url column, a title row above the header, or no header | Does not read the text as a CSV. A header line is flagged, and in each row the commas and the cells after them become part of the link. Make the header the first line and call the link column url. |
| Semicolons or tabs between columns | Also not read as a CSV, so the values end up inside the link. Cells copied straight from a spreadsheet are separated by tabs: save the sheet as a comma-separated CSV and paste that. |
| A comma inside a cell | Starts a new cell, so the values after it move one column to the right. Wrap the cell in double quotes. |
A column it does not know, such as owner or campaign name | Ignores the column. With no campaign column, the Campaign field above the list is used. |
| An empty cell | Uses the field with the same name above the list. If that is empty too, the tag is not added. |
| No source in the row, the field or the link | Flags the row with No utm_source: add a source and leaves it out of the copied links. |
| A link that already has UTM tags | Replaces each tag that has a new value and keeps the others. |
| Capitals and spaces in a value | Turns spaces into hyphens, and lowercases unless you untick the box. Paid Social becomes paid-social, which Virling does not count as Paid. Write paidsocial. |
| Two links on one line | Usually reads them as one link and tags it without a flag. Put each link on its own line. |
| The same link twice | Keeps and tags both rows. |
| Blank rows | Skips them. |
Name tags consistently and check the results
- Agree the names before you tag. Pick one source per platform and a short, fixed list of mediums. The UTM naming template gives you a table to fill in and share.
- Lowercase with hyphens.
Newsletterandnews letterbecome separate rows in most reports; this builder writesnewsletterandnews-letter. TikTok macros such as__CAMPAIGN_ID__must stay in capitals, so make those links with the TikTok ads UTM builder. - Use
utm_contentto tell links apart. When one email or page has several links, give each a content value such asheader-buttonorfooter-link. - Do not tag links between your own pages. The tag replaces the visitor's real source.
- Start from clean links. Remove old tags and click IDs with the URL cleaner before you paste your list.
- Printing a link instead? The QR code generator with UTM tags makes one tagged code per placement.
- Check the list before it goes out. Paste the tagged links into the UTM checker to catch capitals, spaces, missing mediums and tags after the
#. To read the tags back into columns, use the bulk UTM parser.
For which parameters to use and why, read which UTM parameters to use to trace revenue.
Bulk UTM builder FAQ
How do I add UTM tags to many links at once?
Paste the links one per line, fill in the source, medium and campaign, and copy all the tagged links. For different tags per link, paste a CSV with a url column and a column for each tag.
What CSV format does it accept?
A header row with a url column, plus any of source, medium, campaign, content and term, separated by commas. Cells with commas can be wrapped in double quotes, as spreadsheet exports do.
What happens to links that already have a query string or a #fragment?
The existing parameters are kept and the UTM tags are added after them. A fragment stays at the end of the link, after the tags, so analytics tools still read them.
What if a line is not a valid URL?
It stays in the results, marked as not a full URL, and is left out of the copied links. The CSV download keeps it with its error so you can fix it.
Are my links sent anywhere?
No. The links are built 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.