21K Tools

What actually happens when you click a short link

A URL shortener does not compress your link the way a ZIP file compresses data. It creates an entirely separate, short address on its own server — and stores a mapping between that short address and your original URL in a database.

When someone clicks the short link, their browser sends a GET request to the shortener's server. That server looks up the short code, finds the destination, and sends back an HTTP response with a status code of either 301 (permanent redirect) or 302 (temporary redirect). The browser then automatically follows that instruction and loads the destination page.

301 vs 302 — why it matters: A 301 tells search engines the redirect is permanent — they may transfer "link authority" to the destination URL. A 302 says "temporary" — search engines keep the authority on the short URL. Most shorteners use 302 by default, which is why short links rarely pass full SEO value.

The entire redirect process — server lookup, response, browser follow — typically completes in 50 to 150 milliseconds, which is why users experience it as instantaneous. The tiny delay between click and page load is actually the redirect step happening.

What the short code actually is

The random-looking string at the end of a short URL (for example, 21k.tools/abc123) is a short code — usually a Base62-encoded ID from the database. Base62 uses letters A–Z, a–z, and digits 0–9, which gives 62 possible characters. Six Base62 characters produce over 56 billion unique combinations, which is why most shorteners use 6–8 character codes even for billions of links.

How click tracking and analytics work

The moment between a click and the redirect is also when the shortener records analytics data. Before issuing the HTTP redirect response, the server logs several pieces of information about the incoming request.

1

Timestamp

The exact date and time of the click is recorded. This allows hourly, daily, and weekly click distribution graphs that show when your audience is most active.

2

IP-based geolocation

The visitor's IP address is matched against a geolocation database to determine their country and approximate city. The raw IP is not stored — only the location data — to protect user privacy.

3

Referrer header

The browser sends a Referer header telling the server which page the user came from. This is how analytics dashboards distinguish "clicked from Twitter" vs "clicked from a WhatsApp message" vs "direct traffic."

4

User agent (device type)

The User-Agent string identifies whether the click came from a mobile browser, desktop browser, or a bot. This is how device breakdowns (mobile vs desktop) in analytics dashboards are produced.

All of this happens server-side, before the redirect — which is why analytics data is captured even if the destination page has no tracking script installed. It is also why short link analytics capture all clicks, including those from users with ad blockers that would normally block JavaScript-based tracking pixels.

Do short links hurt your SEO? The honest answer

This is one of the most common questions about URL shorteners, and the answer is nuanced. Short links do not directly hurt SEO — but they do not help it either, and used incorrectly they can dilute the benefit of inbound links.

Scenario SEO Impact Recommendation
Short link shared on social media Neutral — social links are nofollow anyway ✓ Fine to use
Short link used in print/offline (QR code, business card) None — no crawl path from print ✓ Fine to use
Short link in an email newsletter Neutral — email links are not crawled ✓ Fine to use
Short link used as the canonical URL for a web page Negative — confuses canonical signals ✗ Avoid
Short link in anchor text on a blog or article Weak — 302 redirect doesn't pass link equity ✗ Use full URL instead

The practical rule: use short links wherever the goal is sharing or tracking — social posts, QR codes, print materials, email campaigns. Use the full destination URL wherever the goal is building SEO authority — blog links, editorial mentions, internal links on your website.

UTM parameters — the right way to track campaigns

UTM parameters are tags added to the end of a URL that tell analytics tools like Google Analytics where a click came from. They look like this:

https://yoursite.com/page?utm_source=instagram&utm_medium=social&utm_campaign=summer_offer

The five standard UTM parameters are source (where the traffic comes from, e.g. instagram), medium (the channel type, e.g. social), campaign (the campaign name), term (for paid search keywords), and content (for A/B test variants).

UTM parameters make URLs extremely long — which is exactly why combining them with a URL shortener is such a common workflow. You build a UTM-tagged URL, shorten it, then share the short version. The shortener tracks total clicks. Your analytics tool tracks what happens after the click, broken down by campaign.

Best practice: Always add UTM parameters to the destination URL before shortening. The short link captures click-level data. The UTM tags capture session-level data inside Google Analytics. Together, they give you the complete picture.

Frequently asked questions

All links created on 21K Tools remain active indefinitely — there is no expiry date or inactivity deletion. As long as the service runs, your links will redirect correctly.
Yes. Each shortened link generates a separate, secret analytics URL that is only shown to you at the time of creation. It is not listed publicly, not linked from the short URL, and not guessable — it contains a randomly generated secret code.
Yes — paste the full UTM-tagged URL into the input field. The shortener stores the entire destination URL including all parameters. When someone clicks the short link, they are redirected to the full UTM URL and your analytics tool records the campaign correctly.
A 302 (temporary) redirect is used because it keeps the short URL as the primary address in search engines rather than transferring authority to the destination. This is standard practice for link shorteners used in sharing and tracking contexts, where the short URL itself is the reference being shared.
URLs pointing to malicious, illegal, phishing, or spam content are blocked. Our system automatically screens submitted URLs against known threat databases. Shortened links that are later reported as harmful are deactivated immediately.

Shorten a URL

Free · No sign-up · Analytics included

No sign-up needed. Links are permanent. Analytics URL is private — only you have it.

Quick facts

Redirect type HTTP 302
Redirect speed <100 ms
Link expiry Never
QR code Included free
Click analytics Included free
Sign-up required No
Go to
Tool

Explore Our Tools

Discover our collection of powerful tools to make your work easier. Visit 21k.tools for all available tools and resources.

URL Shortener

Create short, shareable links instantly.

QR Tools

Generate and Scan QR codes smartly.

PDF Tools

Merge, split, and edit PDF files easily.

Unit Converter

convert units from one to another easily .

File Converter

Convert between multiple file formats.

Image Resizer

Resize and optimize images for any use.

Time Calculator

Calculate time in hours, minutes, and seconds

Age Calculator

Calculate age in years, months, and days.

Interest Calculator

Calculate simple and compound interest.

View All Tools