← All articles

Practical guides · 3 min read

How to Shorten a List of URLs from a CSV

Shorten a spreadsheet of URLs in one import. Use a three-row CSV, recover a skipped slug, and check each exhibitor’s destination before printing event signs.

By The 302.sh team ·


An event organizer has one exhibitor page per booth and wants a short address on each sign. A bulk URL shortener can turn the spreadsheet into links in one upload. In 302.sh, CSV import is available on Pro and higher and creates links on 3go.to. Check that this is the domain you want on the signs before preparing the file.

Give each exhibitor a destination and a slug

Start with one row per booth. The required target column holds a complete HTTP or HTTPS URL. The optional slug column holds the text after the slash, such as fair-cedar. Leave that cell blank if you want an automatically generated slug. The optional comment is an internal note, useful for matching each link to a booth number.

This sample includes a common spreadsheet mistake. The organizer copied Lark's slug into Fern's row. See if you can spot it before reading the import result.

target,slug,comment
https://example.com/exhibitors/cedar,fair-cedar,Booth 12
https://example.com/exhibitors/lark,fair-lark,"Booth 18, east hall"
https://example.com/exhibitors/fern,fair-lark,Booth 24

The quotes keep “Booth 18, east hall” in one cell. For your own upload, replace the example destinations with live exhibitor pages, give Fern its own slug and export the sheet as a comma-separated CSV. Keep the header row in each file. Split lists longer than 500 data rows into separate files.

Choose your CSV on the links dashboard

  1. Open Links in the workspace that will own the booth signs.
  2. Open the arrow beside New link and choose Import from CSV.
  3. Select the file. Choosing it starts the import, so review the sheet before selecting it.

If the importer reports a missing target, check the header and the indicated row. It also accepts destination, url or long_url as the destination header. Each data row needs a value there before the file can be submitted.

Recover a skipped row

Suppose you submitted the sample as written and both requested slugs were available at the start. Cedar and Lark would get their links. By the time the importer reaches Fern, Lark already owns fair-lark, so Fern's row is skipped and Lark's destination stays in place.

Imported
2 · Cedar and Lark
Skipped
1 · Fern needs a new slug
Conflicts
1 · Duplicate fair-lark
Three submitted rows produce two new links in this example. The one slug conflict is already included in the skipped count.

Choose Download failed rows (CSV). Fern's row has the error slug_taken. Change its slug to fair-fern and upload the corrected failed-row file. Retrying just that row preserves the two successful links. This also matters when you leave slugs blank, since uploading a successful blank-slug row again can create another short address.

Check the final link against each sign

Copy each saved address from the dashboard into the corresponding spreadsheet row. Open it on a phone and check the exhibitor name on the destination page against the booth number. For a printed QR code, scan the actual proof too. A successful scan of Lark's page at Fern's booth would still send the visitor to the wrong exhibitor.

Ready to make the signs? Open your links dashboard and import your three-row pilot. For imports from a script, the bulk import API reference shows the JSON request and the result returned for each row.

Keep reading