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.
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.
| Project | Licence | Stack | Hosted version | Click analytics | QR codes | Users |
|---|---|---|---|---|---|---|
| iShortn | MIT | TypeScript, Next.js on Cloudflare Workers, MySQL | ishortn.ink (free plan; Pro $8/mo) | Yes | Yes, dynamic | Accounts and team workspaces |
| Dub | AGPLv3, with commercial-licence ee folders | TypeScript, Next.js | dub.co (free plan; Pro $30/mo) | Yes | Yes | Yes, by plan |
| YOURLS | MIT | PHP | None official | Yes | Through plugins | Several logins, shared links |
| Kutt | MIT | Node.js | kutt.to (free) | Yes | Yes | Accounts and admin |
| Shlink | MIT | PHP | None (app.shlink.io is a web client for your own server) | Yes | Built in, deprecated since 4.5.0 | API keys with roles |
| Sink | AGPL-3.0 | TypeScript on Cloudflare | None | Yes | Yes | Single 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
eefolders 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.
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