Bulk URL Shortener: How to Shorten Hundreds of Links at Once from a CSV

Shortening links one by one is fine for five. For five hundred, put them in a spreadsheet, save it as CSV and import the whole file. Here's how to set the file up so every row comes out right.

MiniSnip Team6 min read
In this article
  1. When you need a bulk shortener
  2. Step 1: Set up the spreadsheet
  3. Step 2: Save it as CSV
  4. Step 3: Import the file
  5. Step 4: Get the short links back
  6. Shortening in bulk from code
  7. Checklist before you import
  8. Which plan you need

The short answer: to shorten many links at once, put them in a spreadsheet with a url column, save it as a CSV file and import it. In MiniSnip, bulk import takes up to 1,000 rows per file, and each row can also set its own alias, title, tags, custom domain and folder. When it's done, export the list to get every short link back in a spreadsheet. Bulk import is on the Pro plan; CSV export starts on Grow.

When you need a bulk shortener

Typing links into a form one at a time works for a handful. It stops working when you have:

  • a product catalog where every product page needs a short link for print, packaging or ads,
  • a newsletter or course with dozens of resources to link,
  • event material: one short link per speaker, session or sponsor,
  • a migration from another shortener, where you want the same aliases on your new domain,
  • QR codes for many locations or items, each with its own link so you can count scans separately.

In all of these, the list already exists in a spreadsheet. A bulk import turns that sheet into short links in one go.

Step 1: Set up the spreadsheet

Make one row per link and a header row with these column names. Only url is required:

Column What goes in it
url The full long address, starting with http:// or https://
alias The words after the slash, such as spring-sale. Leave empty for a random code.
title A name you'll recognise in the dashboard
tags Comma separated, such as print, catalog
domain One of your verified custom domains, such as go.yourbrand.com. Leave empty for the default.
folder A folder name. Folders that don't exist yet are created for you.

A few rules save you from failed rows:

  • Aliases are 3 to 32 characters: letters, numbers, - and _. No spaces.
  • Each alias can be used once per domain. The same alias twice in one file fails the second time.
  • Aliases are case-sensitive, so Sale and sale are different links. Lowercase is easiest to type.
  • Leave alias empty on rows where the address doesn't matter. MiniSnip makes a short random code.

If you're starting a campaign, add UTM tags to the long URLs before importing. The UTM builder helps with the first one, and UTM parameters explained covers what each tag does.

Step 2: Save it as CSV

  • Google Sheets: File → Download → Comma-separated values (.csv).
  • Excel: File → Save As → CSV UTF-8 (comma delimited).
  • Numbers: File → Export To → CSV.

Keep the header row. Columns MiniSnip doesn't know are ignored, so you don't need to delete your own notes columns.

Step 3: Import the file

  1. Open the Links page in MiniSnip and press Import CSV.
  2. Choose the file. MiniSnip reads it and shows how many rows are ready.
  3. Press Import.

Rows that work become short links straight away. Rows that don't are listed with their row number and the reason, for example "Alias already taken" or a domain that isn't verified yet. Fix those rows and import just them again; the links that were already made stay as they are.

Use the folder column to file the batch as it comes in. Each row goes into the folder it names, so one file can fill several campaigns or clients at once. Organizing links with folders has more on that.

On Grow and above, press Export CSV on the Links page to download every link with its short URL, destination, clicks and folder. Open a folder first and the button becomes Export this folder, so you get only that batch. Paste the short links back next to your original list, or hand the file to whoever is printing or posting them.

Every short link also has its own QR code, on every plan, if the batch is going on paper. See how to track QR code scans.

Shortening in bulk from code

If the list comes from another system rather than a spreadsheet, use the API instead. On Pro, send up to 500 links per request to POST /api/v1/links/bulk, with an optional top-level folder for the whole batch. The response lists the links it made and any that failed, with the reason. The API docs have an example, and URL shortener API explains when an API is worth it.

Checklist before you import

  • One link per row, header row included, url column filled.
  • Aliases unique, lowercase, 3–32 characters, no spaces.
  • Custom domain already verified, if you use the domain column.
  • UTM tags added to the long URLs, if this is a campaign.
  • A folder column, so the batch is easy to find, report on and export later.

Which plan you need

  • Free (25 links) and Grow (1,000 links) make links one at a time in the form. Grow adds CSV export.
  • Pro adds bulk import from CSV, the bulk API, and no limit on the number of links.

Want to try it with a small file first? Create an account, make a couple of links by hand, and see how MiniSnip counts clicks so you know what the numbers will mean.

Frequently asked questions

How many links can I shorten at once?

Up to 1,000 rows per CSV import, and up to 500 links per request through the bulk API. For more, split the list into several files or requests.

Can I choose my own alias for each link in a bulk import?

Yes. Fill the alias column with 3 to 32 letters, numbers, dashes or underscores. Leave it empty on any row and MiniSnip makes a random code for that link.

What happens to rows that fail?

They're listed with their row number and the reason, such as an alias that's already taken or a domain that isn't verified. The other rows are still created, so you only need to fix and re-import the failed ones.

Can I bulk shorten links on the free plan?

No. Bulk import is on Pro. On Free and Grow you create links one at a time in the form, and Grow lets you export all your links as a CSV.

Can I put each row into a different folder?

Yes. Add a folder column with a folder name on each row. Folders that don't exist yet are created during the import.