How to Shorten a URL: Web, Mobile and API (Step by Step)

By Saerly Team · SAER Technologies · · 6 min read

Shortening a URL takes less than a minute. This guide walks through doing it on the web, choosing a custom back-half, working from your phone and automating it with an API.


To shorten a URL, copy the long link, paste it into a URL shortener such as Saerly, and click the shorten button; the service gives you a short link you can copy and share right away. If you want a readable link, add a custom back-half (for example saerly.com/summer-menu) before you shorten. Developers can do the same thing automatically by sending the long URL to a shortener's API.

Key takeaways

  • The basic flow is always the same: copy the long URL, paste it, shorten, copy the result.
  • A custom back-half makes a link easier to read, remember and trust.
  • On a phone, use the share sheet or copy from the address bar, then paste into the shortener in your browser.
  • For bulk or automated links, use the API with a token instead of doing it by hand.
  • Always test the short link once before sharing it widely.

Before you start: get the right long URL

A short link is only as good as the URL behind it. Take ten seconds to check these things first:

  • Copy the final page, not a redirect. If you copied the link from an email or an ad, open it and copy the address you actually land on. This avoids redirect chains.
  • Remove junk parameters. Links copied from apps often carry session IDs or tracking codes that are not yours. Strip anything after a ? that you do not need.
  • Add your own tracking if you want it. If you plan to measure the campaign in Google Analytics, add UTM parameters now. Our free UTM builder does this for you without any typing mistakes.
  • Use https. If the page supports it, make sure the URL starts with https://.

Method 1: Shorten a URL on the web

This is the quickest method and works on any computer.

  1. Open the Saerly URL shortener. You do not need an account; guests can create 5 short links per day, and they do not expire.
  2. Paste your long URL into the input box.
  3. Click Shorten.
  4. Copy the short link that appears. You can also download a QR code for it at this point, free.
  5. Open the short link in a new tab to confirm it lands on the right page.

That is it. If you shorten links regularly, a free account raises the limit to 100 links per month and adds click analytics, so you can see how many people opened each one.

Method 2: Use a custom back-half

The "back-half" is the part after the slash. Random codes like saerly.com/x7Kp2q work fine, but a word or phrase is far more useful when people need to read, type or trust the link.

How to add one

  1. Sign in to your Saerly account (custom back-halves are included on the free plan).
  2. Paste the long URL as usual.
  3. In the custom back-half or alias field, type your word, such as diwali-offer.
  4. Shorten. If the alias is already taken, try a variation.

Tips for good back-halves

  • Keep it short and lowercase. /menu beats /OurNewRestaurantMenu2026.
  • Use hyphens, not spaces or underscores. Hyphens are easier to read aloud and see in print.
  • Avoid confusing characters. The letter l, the number 1 and capital I look alike in many fonts.
  • Describe the destination. A link like /size-chart tells people what to expect, which builds trust.

If you want your own brand instead of saerly.com in front, read about branded short links on a custom domain.

Method 3: Shorten a URL on your phone

Most link sharing happens on mobile, especially on WhatsApp and Instagram, so it helps to have a quick routine.

On Android or iPhone

  1. Open the page you want to share in your browser or app.
  2. Tap Share and choose Copy or Copy link. In a browser you can also long-press the address bar and copy.
  3. Open saerly.com in your mobile browser. The shortener works the same as on desktop.
  4. Paste the link, add a back-half if you are signed in, and tap Shorten.
  5. Tap copy, then paste the short link into WhatsApp, an SMS, your Instagram bio or wherever you need it.

Tip: add saerly.com to your home screen from the browser menu so it opens like an app next time.

Sharing to WhatsApp customers

If you run an Instagram shop or a local business that takes UPI payments, a short link to your catalogue or order form looks much cleaner in a broadcast message than a long link. If you send links by text message at scale, a short link also saves precious characters in every SMS.

Method 4: Shorten URLs with the API

If you need to create many links, or create them automatically when something happens in your app (a new order, a new product, a new blog post), use an API. Saerly's REST API is available on the free plan with 200 calls per day.

Step 1: Get an API token

Sign in, open the developer or API section of your dashboard, and create a token. Treat it like a password: keep it on your server, never in front-end code or a public repository. Full details are on the developers page.

Step 2: Send a request

Send a POST request with the long URL and, optionally, a custom alias. Here is a minimal example with curl:

curl -X POST https://saerly.com/api/v1/links -H "Authorization: Bearer YOUR_TOKEN" -H "Content-Type: application/json" -d '{"url": "https://example.com/products/blue-cotton-kurta?size=m", "alias": "blue-kurta"}'

Replace YOUR_TOKEN with your token. The url field is the long address; alias is the back-half you want.

The response contains your new short link, which you can store in your database or send straight to a customer. Leave out alias if you are happy with a random code.

Step 3: Handle errors gracefully

  • Alias taken: retry with a suffix, or let the service generate a code.
  • Invalid URL: validate input before you call the API.
  • Rate limit reached: queue the request and try again later, or upgrade if you regularly need more calls.

For one-off jobs with hundreds of links, paid plans also support bulk shortening from a CSV file, which is often simpler than writing a script.

After shortening: optional settings worth knowing

Once you have an account, a short link can do more than redirect. These are all available on the free plan:

SettingWhat it doesWhen to use it
PasswordVisitors must enter a password before being redirected.Private files, internal documents, paid content shared with a small group.
Expiry dateThe link stops working after a set date.Time-limited offers, event registrations, flash sales.
Click limitThe link stops after a set number of clicks.Limited giveaways or first-come coupons.
QR codeCreates a scannable code for the same link.Posters, packaging, shop counters, menus.

On paid plans you can also edit the destination after creating the link, which is handy if you printed a QR code and the page moves later. Check the pricing page for what each plan includes.

Common mistakes to avoid

  • Shortening a short link. This creates a redirect chain. Always shorten the final URL.
  • Not testing. Open the link once on mobile and desktop before sending it to thousands of people.
  • Using a random code where people will type it. If the link appears on print or video, use a readable back-half.
  • Sharing your API token. Anyone with the token can create links on your account.
  • Ignoring the analytics. The click data tells you which channel worked. Check it after your campaign.

Next steps

Shorten one link now and look at its click data after a day or two. Once you are comfortable, try turning a link into a QR code with our guide on how to create a QR code for a link, or explore what else Saerly offers, from link-in-bio pages to password-protected links.

Frequently asked questions

Can I shorten a URL without creating an account?

Yes. On Saerly, guests can create up to 5 short links per day without signing up, and those links do not expire.

What is a custom back-half?

It is the readable part after the slash in a short link, such as saerly.com/summer-menu. It makes links easier to remember and trust.

How do I shorten a URL on my phone?

Copy the link from your browser or app share menu, open saerly.com in your mobile browser, paste it and tap Shorten. Then copy the short link into WhatsApp, SMS or social media.

Is there an API for shortening links?

Yes. Saerly has a REST API at https://saerly.com/api/v1/links that accepts a URL and optional alias, with 200 calls per day on the free plan.

Can I change where a short link points after I create it?

Editing a destination after creation is available on Saerly paid plans. On the free plan, create a new link if the destination changes.

Try Saerly free

Shorten links, create QR codes and track every click. 100 free links a month — no credit card.

#how to shorten a url#url shortener#custom back-half#short link api#mobile