Skip to content
Urlzee

Bulk URL Shortening: How to Shorten Hundreds of Links at Once

By Urlzee Team · Published · 6 min read

Bulk URL shortening converts a whole list of long links into short links in a single step. You prepare the list in a spreadsheet, one URL per row with an optional custom alias, paste it into a bulk tool, and download a file that pairs each original URL with its new short link.

When is bulk shortening worth it?

It is worth it as soon as you need more than a handful of links that follow a pattern. Creating links one at a time is fine for five. At fifty it is slow and error-prone, and at five hundred it is not realistic.

Typical jobs include:

  • one link per product for a printed catalogue or a set of shelf labels
  • one link per recipient segment in a text message campaign
  • one link per affiliate or creator, all pointing at the same page with different tags
  • one QR code per table, per room, per piece of equipment or per event session
  • moving an existing set of links from another service

The common thread is that you want each link to be separately countable, so that clicks on one can be compared with clicks on another.

How do you prepare a list of URLs in a spreadsheet?

Use two columns: the destination URL and the alias you want. A spreadsheet is the right place to do this because formulas can build both columns for you.

A (destination)B (alias)
https://example.com/products/linen-apronapron
https://example.com/products/oak-boardoak-board
https://example.com/products/tea-towel-settea-towels

Some preparation saves a lot of repair work later:

  1. Use complete URLs. Include https:// so there is no doubt about the scheme.
  2. Remove duplicates. Most spreadsheets have a "remove duplicates" command. Urlzee also skips rows that are exact repeats.
  3. Trim stray spaces. A trailing space copied from another document is the most common cause of an "invalid URL" row. =TRIM(A2) fixes it.
  4. Add tracking tags before shortening, not after. A short link's destination includes its query string, so tags have to be part of the URL you paste in.
  5. Check a sample by hand. Open three or four destinations in a browser before you shorten five hundred of them.

To add UTM parameters to every row with a formula, something like this works in Google Sheets or Excel, where column C holds the campaign's source name:

=A2 & "?utm_source=" & C2 & "&utm_medium=print&utm_campaign=autumn_catalogue"

If a URL already contains a ?, join with & instead. For the rules on what belongs in each tag, see utm_source vs utm_medium vs utm_campaign, and for a ready-made layout see how to build a campaign URL tracking spreadsheet.

How do you shorten the whole list at once?

With Urlzee's bulk URL shortener the steps are:

  1. Sign in. Bulk shortening needs a free account so the links appear in your dashboard and can be managed afterwards.
  2. Copy the two columns from your spreadsheet, or export them as CSV and copy the text.
  3. Paste the list, one URL per line. A custom alias goes after a comma on the same line:
https://example.com/products/linen-apron,apron
https://example.com/products/oak-board,oak-board
https://example.com/products/tea-towel-set
  1. Run the batch. Rows without an alias get a random seven-character ending. Each row is validated and safety-checked separately.
  2. Download the results as CSV and paste the short links back into your spreadsheet next to the originals.

Copying straight from a spreadsheet puts a tab between the columns, and that works too. A header row such as url,alias is recognised and skipped.

Batch size depends on plan: 10 URLs on Free, 500 on Pro and 2,000 on Business. The links you create count toward your monthly allowance of 50, 5,000 or 50,000 links respectively, so a large one-off job may be the reason to upgrade for a month. Current limits are on the pricing page.

Pick a pattern and generate it with a formula, so that anyone on the team can guess a link's alias from the thing it points to.

A good pattern has a fixed order, such as campaign, then item, then channel:

aw26-apron-cat
aw26-oak-board-cat
aw26-apron-sms

On Urlzee an alias can be 3 to 50 characters long, must start with a letter or number, and can contain letters, numbers, hyphens and underscores. Aliases are case sensitive, so use lowercase throughout. A spreadsheet formula such as =LOWER(SUBSTITUTE(B2," ","-")) turns a product name into a usable alias.

Aliases are unique across the whole service, not just your account, so a generic word like sale may already be taken. A campaign prefix makes collisions unlikely. For team-wide rules, see short link naming conventions.

If the links will only ever be scanned from QR codes and never read by a person, skip aliases entirely and let the tool assign random endings.

What errors come up in bulk jobs and how do you fix them?

Most failed rows fall into a small number of categories, and the results tell you which one applies.

ProblemLikely causeFix
Invalid URLStray space, missing domain, line break inside a cellClean the cell with TRIM and re-run the row
Alias already takenSomeone else has that alias, or you ran the batch twiceAdd a prefix or suffix
Alias invalidSpaces, punctuation or fewer than 3 charactersUse letters, numbers, hyphens, underscores
Destination not allowedLink points to another shortener, a raw IP address or a private hostShorten the final public URL instead
Rows left overList is longer than your plan's batch sizeSplit the list or upgrade
Monthly limit reachedThe batch would exceed your link allowanceWait for the allowance to reset or upgrade

Because each row succeeds or fails on its own, the efficient workflow is to run the batch, filter the results for failures, fix those rows in the spreadsheet and submit only them again. Do not resubmit the whole list, or you will create duplicates of the rows that already worked.

Before sending the finished links anywhere permanent, spot-check a few with the link checker to confirm they land on a working page.

When should you use an API instead of a bulk tool?

Use an API when a program, not a person, decides that a link is needed. A bulk tool is a manual step. It suits campaigns that happen now and then. It does not suit a store that needs a short link the moment a new product is published.

With the Urlzee API, a script sends one POST request per link to https://urlzee.com/api/v1/links and reads the short URL from the JSON response. Every account can create an API key, and the plan sets the number of requests available: 100 per month on Free, 10,000 on Pro and 100,000 on Business. The API getting-started guide walks through the requests, and the full reference is in the API documentation.

A rough rule: if you would run the same bulk job more than once a month, automate it.

What should you do after the batch is done?

Keep the results file. The CSV that pairs each destination with its short link is your record of what was printed or sent, and it is what you will search when someone asks "where does this code go?" six months later.

Then add QR codes if the links are headed for print, using the QR code generator, and check the dashboard after launch. Bulk shortening gives every item its own click count, and comparing those counts is the reason to create separate links at all.

Frequently asked questions

How many URLs can I shorten in one batch?
On Urlzee, 10 per batch on the free plan, 500 on Pro and 2,000 on Business. Every link in a batch counts toward your plan's monthly link allowance.
What format does a bulk URL list need to be in?
Plain text with one URL per line. To choose the short link's ending, add a comma and an alias after the URL, which is the same as a two-column CSV exported from a spreadsheet.
What happens if some URLs in the list are invalid?
Each row is validated on its own. Invalid or blocked rows are reported with a reason and the valid rows are still shortened, so one typo does not stop the batch.
Is bulk shortening better done with a tool or an API?
Use a paste-in tool for one-off jobs you run by hand, such as a campaign or catalogue. Use an API when links must be created automatically, for example whenever a product or order is added to your system.