Open Source Bitly Alternatives
5 alternatives · Data checked
·
By Alston Antony, founder & editor
Shlink is the best open source alternative to Bitly if you want short links on your own domain. It is self-hosted, actively maintained, and comes with a REST API and CLI. Kutt suits you if you want passwords and OIDC login. shrtnr fits developers who want an MCP server for AI assistants.
Best overall
Best for: Teams that want a self-hosted shortener on their own domain with REST API and CLI
Pick #2
Best for: Self-hosters wanting a modern shortener with custom domains, passwords and OIDC login
Pick #3
Best for: Developers who want a self-hosted shortener with REST API, SDKs and an MCP server for AI assistants
Why people leave Bitly
Bitly is a link shortening service from Bitly, a US company founded in 2006. Marketers, social teams, and businesses use it to turn long URLs into short links, set custom back-halves, and track clicks. It also generates QR codes, builds link-in-bio pages, and offers a REST API for creating and managing links in other tools. It is sold as a hosted service, with paid plans for higher usage and business features.
- Paid tiers for key features. Custom back-halves, deeper analytics, and business features sit behind paid plans. Costs grow as link and QR volume grows.
- Your link data is hosted by Bitly. Links and click data live on Bitly's servers. Self-hosting lets you keep that data and your own short domain under your control.
- Links depend on the vendor. If an account lapses or the service changes, your short links can stop working. Owning the redirect server removes that risk.
- Privacy of click tracking. Click analytics pass through a third party. A self-run shortener keeps visitor data on infrastructure you manage.
Quick comparison
| # | Alternative | License | Stars | Health | Platforms | Fit | Parity | Migration | Imports from Bitly |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Shlink | Permissive | 5.4k | Thriving | Self-hosted | Self-hosted equivalent | 28% | Moderate | – |
| 2 | Kutt | Permissive | 11k | Active | Self-hosted | Self-hosted equivalent | 47% | Moderate | – |
| 3 | shrtnr | Permissive | 33 | Active | – | Self-hosted equivalent | 56% | Moderate | – |
| 4 | Dub | Copyleft | 25k | Slowing | – | Direct replacement | 11% | Moderate | – |
| 5 | openshortlink | Copyleft | 123 | Active | – | Partial replacement | 42% | Moderate | – |
Fit = how much of Bitly's job the tool replaces. Parity = share of Bitly's core features the tool covers fully. Migration = effort to move your data and team over. Health and stars from November 24, 2026. How we rank.
The 5 best open source Bitly alternatives
- 1
Shlink
Self-hosted PHP URL shortener with REST API and CLI for your own domain
5.4k Thriving 83 Permissive Self-hosted equivalentA solid self-hosted shortener for your own domain, with a REST API and CLI, and a last commit in November 2026. Parity with Bitly is only 27.8%, so it suits teams that need plain short links. It has no link-in-bio pages and no built-in UTM builder.
Strengths
- Official Docker image configured through environment variables
- Works with five database engines
- REST API plus a full CLI
- Dist packages for each supported PHP version
Trade-offs
- No link-in-bio pages
- No built-in UTM builder
- Manual install needs PHP 8.4 or 8.5 and several extensions
- You run and update the server yourself
- Best for
- Teams that want a self-hosted shortener on their own domain with REST API and CLI
- Fit
- Self-hosted equivalent · 28% feature parity
- Health
- 83/100 (Thriving) · breakdown
- License
- Permissive (OSI) (MIT)
- Hosting
- Self-hosted
- Migration
- Moderate
- Last commit
- Nov 2026
- Self-hosted
Feature parity with Bitly · 28%
- Yes Custom back-halves
- Yes Custom domains
- No Link-in-bio pages
- Yes REST API
- 2
Kutt
Self-hosted URL shortener with custom domains, passwords and OIDC login
11k Active 56 Permissive Self-hosted equivalentKutt covers custom domains, passwords and OIDC login, with 11,212 stars and 47.2% parity. It fits self-hosters who want a modern, simple shortener. You lose link-in-bio pages, geo and device redirects, and a UTM builder.
Strengths
- Runs on SQLite by default, with Postgres and MySQL supported
- OIDC login and the option to disable registration
- Custom domains, link passwords and expiration times
- Official Docker image and several Compose setups
Trade-offs
- No link-in-bio pages
- No geo/device redirects
- No built-in UTM builder
- Only 3 releases in the last year
- Best for
- Self-hosters wanting a modern shortener with custom domains, passwords and OIDC login
- Fit
- Self-hosted equivalent · 47% feature parity
- Health
- 56/100 (Active) · breakdown
- License
- Permissive (OSI) (MIT)
- Hosting
- Self-hosted
- Migration
- Moderate
- Last commit
- Oct 2026
- Self-hosted
Feature parity with Bitly · 47%
- Yes Custom back-halves
- Yes Custom domains
- Yes Click analytics
- Yes REST API
- Yes Link expiration
- Yes Password-protected links
Quick start
docker compose up - 3
shrtnr
Self-hosted short link service on Cloudflare Workers with REST API, SDKs and an MCP server
33 Active 74 Permissive Self-hosted equivalentBuilt for developers: REST API, SDKs and an MCP server for AI assistants, with 55.6% parity. It has just 33 stars, so the community is small. It also needs a Cloudflare account to run and has no link-in-bio pages.
Strengths
- Native MCP server with tools for links, slugs, bundles, QR codes and analytics
- REST API with OpenAPI 3.1 spec and SDKs for TypeScript, Python and Dart
- Bundles report combined clicks, countries, referrers and devices for a campaign
- Several slugs per link, each with separate click tracking
Trade-offs
- No link-in-bio pages
- No built-in UTM builder
- Needs Cloudflare account to run
- Young project with a small contributor base
- Best for
- Developers who want a self-hosted shortener with REST API, SDKs and an MCP server for AI assistants
- Fit
- Self-hosted equivalent · 56% feature parity
- Health
- 74/100 (Active) · breakdown
- License
- Permissive (OSI) (Apache-2.0)
- Hosting
- Self-hosted
- Migration
- Moderate
- Last commit
- Nov 2026
Feature parity with Bitly · 56%
- Yes Custom back-halves
- Yes Click analytics
- Yes Location and device stats
- Yes QR code generation
- No Link-in-bio pages
- Yes REST API
- 4
Dub
Link shortener with click and conversion tracking for marketing and product teams
25k Slowing 48 Copyleft Direct replacementDub's hosted product and self-run option focus on link attribution and conversion tracking, with about 25,200 stars. Only 11.1% of Bitly's features are confirmed, and maintenance is slowing. Self-hosting is complex and depends on several paid services.
Strengths
- Short links combined with conversion tracking
- Self-hosting guide available
- Core is AGPL-3.0 licensed
- SAML SSO via BoxyHQ
Trade-offs
- Self-hosting is complex and relies on several paid services
- Some features under commercial license
- Self-hosting depends on several external services
- No releases in the past year
- Best for
- Teams wanting link attribution and conversion tracking with a Bitly-like hosted or self-run option
- Fit
- Direct replacement · 11% feature parity
- Health
- 48/100 (Slowing) · breakdown
- License
- Copyleft (OSI) (AGPL-3.0)
- Hosting
- Self-hosted
- Migration
- Moderate
- Last commit
- Oct 2026
Feature parity with Bitly · 11%
- Yes Click analytics
- 5
openshortlink
Serverless link shortener on Cloudflare with geo and device routing for marketers
123 Active 56 Copyleft Partial replacementA Cloudflare-hosted option with multi-domain support, geo and device routing, and teams, at 41.7% parity. It has 123 stars, so it is young. It requires Cloudflare and has no link-in-bio pages, which limits it to marketers already on that platform.
Strengths
- Redirects run on Cloudflare Workers and KV at the edge
- Geo routing for up to 10 countries and device-based routing
- Choose 301, 302, 307 or 308 redirect codes
- CSV import and export with column mapping
Trade-offs
- No link-in-bio pages
- Requires Cloudflare
- AGPL-3.0 license has network-use obligations
- Few contributors recently
- Best for
- Marketers wanting a Cloudflare-hosted shortener with multi-domain, geo/device routing and teams
- Fit
- Partial replacement · 42% feature parity
- Health
- 56/100 (Active) · breakdown
- License
- Copyleft (OSI) (AGPL-3.0)
- Hosting
- Self-hosted
- Migration
- Moderate
- Last commit
- Oct 2026
Feature parity with Bitly · 42%
- Yes Custom back-halves
- Yes Custom domains
- Yes Click analytics
- Yes Location and device stats
Feature parity: Bitly vs the top 5
| Feature | Bitly | Shlink | Kutt | shrtnr | Dub | openshortlink |
|---|---|---|---|---|---|---|
| Custom back-halves | Yes | Yes | Yes | Yes | – | Yes |
| Custom domains | Partly | Yes | Yes | – | – | Yes |
| Click analytics | Yes | – | Yes | Yes | Yes | Yes |
| Location and device stats | Partly | – | – | Yes | – | Yes |
| QR code generation | Yes | – | – | Yes | – | – |
| Link-in-bio pages | Yes | No | – | No | – | – |
| REST API | Yes | Yes | Yes | Yes | – | – |
| Link expiration | – | – | Yes | – | – | – |
| Password-protected links | – | – | Yes | – | – | – |
| UTM parameter builder | Yes | – | – | – | – | – |
yes · partly · no · – not checked.
Cost to switch
What Bitly costs your team in a year, against running an open source alternative yourself.
Enter Bitly's price per seat to compare.
Server prices are typical monthly VPS prices for the RAM the tool needs (2 GB when unknown). Your time to run and update it is not included.
How to choose
You want plain short links on your own domain with an API and command line
→ Shlink
It is self-hosted with a REST API and CLI, and its maintenance status is Thriving.
You need password-protected links and single sign-on
→ Kutt
It supports custom domains, link passwords and OIDC login, and has the highest feature parity of the established options at 47.2%.
You build tools and want to create links from code or AI assistants
→ shrtnr
It ships a REST API, SDKs and an MCP server, and has 55.6% parity with Bitly.
You already run on Cloudflare and need geo and device routing for campaigns
It offers multi-domain support, geo and device routing, and teams, but it requires Cloudflare.
You care about attribution and conversion tracking more than plain redirects
→ Dub
It focuses on link attribution and conversion tracking, though self-hosting is complex and maintenance is slowing.
Moving off Bitly
- None of these alternatives is marked as importing directly from Bitly, so plan on a manual or scripted move.
- Bitly lets you export your link data, and its REST API can list your links. Use either to build a CSV or script of long URLs and back-halves, then recreate them through the REST API of Shlink or Kutt.
- Existing bit.ly short links keep pointing to Bitly. To keep them working you must stay on a Bitly plan; new links on your own domain will not replace them.
- Plan to rebuild link-in-bio pages and QR codes by hand. None of the five offers link-in-bio pages, and click history stays in Bitly.
Frequently asked questions
What is the best open source alternative to Bitly?
Shlink is ranked first. It is self-hosted, has a REST API and CLI, and lets you use your own domain. Kutt is a close second if you want passwords and OIDC login.
Is there a free alternative to Bitly?
Shlink, Kutt, shrtnr, Dub and openshortlink are all open source and can be self-hosted. You pay for your own hosting, and shrtnr and openshortlink also need a Cloudflare account.
Which Bitly alternative can I self-host?
All five can be self-hosted. Shlink and Kutt are the most straightforward. Dub can be self-run, but the setup is complex and depends on several paid services.
Can I import my Bitly links?
No alternative here is marked as importing directly from Bitly. Export your links from Bitly, then recreate them through the REST API of Shlink or Kutt.
Do these alternatives have link-in-bio pages?
Shlink, Kutt, shrtnr and openshortlink do not offer link-in-bio pages. If you rely on them, you will need a separate tool.
Which alternative is best for developers?
shrtnr offers a REST API, SDKs and an MCP server, but it has only 33 stars and needs Cloudflare. Shlink has a REST API and CLI and a much larger community.
2026 edition. Rankings use fit, health, license and popularity; sponsors never change the order. Methodology · Report an error.