MIT licence

Open-source URL shortener

iShortn is an MIT-licensed link shortener with click analytics, custom domains, dynamic QR codes and bio pages. Run it on your own Cloudflare account, or use the hosted version at ishortn.ink, which runs the same code and has a free plan.

Self-host it or let us run it

Self-host

iShortn deploys as one Cloudflare Worker with a MySQL 8 database and Clerk for sign-in. The self-hosting guide covers the resources, environment variables, database setup, cron jobs and upgrades. You need the Workers Paid plan, because the phishing rescan needs a higher CPU limit.

Hosted

If you'd rather not run a server, the hosted version at ishortn.ink has a free plan: 30 links a month, 1,000 tracked clicks a month, 7-day analytics and 5 dynamic QR codes that never expire. Pro is $8 a month and adds 3 custom domains and the REST API. You can export your links as CSV or JSON on every plan, so you can move to your own instance later.

Compare

Open-source URL shorteners compared

We make iShortn, so weigh our view accordingly. Licences come from each project's LICENSE file and star counts from GitHub, checked 26 November 2026.

Open-source URL shorteners by licence, stack, hosted version, click analytics, QR codes and users, checked
ProjectLicenceStackHosted versionClick analyticsQR codesUsers
iShortnMITTypeScript, Next.js on Cloudflare Workers, MySQLishortn.ink (free plan; Pro $8/mo)YesYes, dynamicAccounts and team workspaces
DubAGPLv3, with commercial-licence ee foldersTypeScript, Next.jsdub.co (free plan; Pro $30/mo)YesYesYes, by plan
YOURLSMITPHPNone officialYesThrough pluginsSeveral logins, shared links
KuttMITNode.jskutt.to (free)YesYesAccounts and admin
ShlinkMITPHPNone (app.shlink.io is a web client for your own server)YesBuilt in, deprecated since 4.5.0API keys with roles
SinkAGPL-3.0TypeScript on CloudflareNoneYesYesSingle site token

About 25,000 GitHub stars for Dub, 12,000 for YOURLS, 11,000 for Kutt, 7,000 for Sink and 5,000 for Shlink. iShortn is newer and smaller.

Which one should you pick?

  • You want a mature PHP shortener on shared hosting: YOURLS. It has the largest plugin ecosystem.
  • You want an API-first service for your own apps: Shlink.
  • You want a polished product with affiliate and partner features and can pay for the hosted plan: Dub. Check the commercial licence on the ee folders before you self-host those parts.
  • You want everything on Cloudflare with no database server: Sink.
  • You want a free hosted plan with analytics and dynamic QR codes, plus the option to self-host the same code on Cloudflare later: iShortn.

What's in iShortn

  • Short links on your own domain, with click analytics by country, city, device, browser and referrer
  • Dynamic QR codes you can edit after printing, with colours, logos and SVG download
  • Link-in-bio pages, password-protected and scheduled links, geo and device targeting
  • Team workspaces, a REST API, CSV import and a browser extension for Chrome and Edge
  • New links checked for phishing when they're created, and live links re-checked against phishing feeds

See all features, bulk import and moving from Bitly.

FAQ

Quick answers

About iShortn's licence, hosting and moving your links.

Is iShortn really open source?

Yes. The code is on GitHub under the MIT licence, and the hosted service at ishortn.ink deploys the same code.

Is there a free open-source URL shortener I don't have to host?

Yes. iShortn, Dub and Kutt all have free hosted versions. iShortn Free includes 30 links a month with click stats and 5 dynamic QR codes.

Can I move from YOURLS or Bitly to iShortn?

Yes. Export your links as a CSV, name the columns url, alias and domain, and upload them with CSV import on Pro. Links on your own domain keep their addresses once the domain points to iShortn. See the bulk import and moving from Bitly guides in the docs.

Try the hosted version free

Create a free account at ishortn.ink, or deploy your own instance from the repo.

  • Free forever plan
  • No credit card required
  • Cancel anytime