Shlink is the best open source URL shortener for most teams because it is MIT licensed, actively maintained and built API first, with custom domains and visit tracking. YOURLS suits PHP hosting with plugins, Kutt suits a modern dashboard, and Dub suits teams that also want hosted attribution.
Key takeaways
Every tool here is genuinely open source under a stated license, checked in Dec 2026.
Shlink, YOURLS, Kutt and Chhoto URL use the MIT license with no paid edition.
Dub is open core: AGPLv3 core code with commercial enterprise directories.
Self-hosted software is free to license, but hosting, backups and updates still cost time or money.
Polr is GPL-2.0 and open source, but its last tagged release was in Jan 2021.
Open source URL shorteners give you control that hosted tools cannot: your domain, your database, your redirect rules and code you can inspect. The trade is responsibility. You run hosting, TLS, backups, updates and abuse controls, and license terms differ in ways that matter if you modify or redistribute the software. This ranking favors maintained projects with clear licenses and practical hosting paths, and it flags open-core and dormant projects plainly. License and project details were checked against official project and repository sources in Dec 2026. Operational planning should cover domain ownership, TLS renewal, database backups, restore tests, admin access, abuse handling and update cadence. Those details sound mundane beside feature lists, yet they decide whether short links keep resolving years after publication. A maintained project with modest features and a tested restore process is safer than a feature-rich install nobody owns.
PlatformsSelf-hosted, Docker, Web client, API, CLI
Shlink is the strongest open source pick for most teams because it is actively maintained, MIT licensed and built API first. The server provides short URLs with custom slugs, multiple domains, tags, visit tracking and a REST API and CLI, while the web client is a separate app you can host or open in the browser. There is no paid edition and no feature gating. You supply hosting, a database, backups and updates, and QR generation is marked deprecated in current docs, so plan a separate QR workflow for print. Before public use, test backups, restore, TLS renewal and admin access for this install. Record slug ownership and destinations outside the system, and review updates on a schedule so important links do not depend on forgotten infrastructure.
What we like
MIT license with no paid edition or feature gates.
REST API and CLI support automation.
Multiple domains can run on one instance.
Watch out for
Web client is a separate app to deploy or trust.
You manage hosting, database, backups and updates.
YOURLS, short for Your Own URL Shortener, is the long-running PHP option under the MIT license. It runs on your server and domain, with custom keywords, bookmarklets, click statistics with referrer and visitor location data, and a developer API. A large community plugin list adds features such as QR codes and extra controls. The admin interface feels dated, user management is basic, and plugin quality varies, so vet extensions before production use. For simple hosting you already control, YOURLS remains a dependable, fully free choice. Before public use, test backups, restore, TLS renewal and admin access for this install. Record slug ownership and destinations outside the system, and review updates on a schedule so important links do not depend on forgotten infrastructure.
Kutt is a modern MIT-licensed shortener written in Node.js, designed with self-hosting in mind. It supports custom domains, custom addresses, password-protected links, descriptions, expiration times, private statistics, user management, an admin panel and a REST API, with SQLite available for simple setups and other databases for larger installs. OpenID Connect login helps team deployments. You still run the server, mail settings and updates. For teams that want a polished dashboard without building around an API-only server, Kutt is a strong fit. Before public use, test backups, restore, TLS renewal and admin access for this install. Record slug ownership and destinations outside the system, and review updates on a schedule so important links do not depend on forgotten infrastructure.
What we like
MIT license with a complete dashboard included.
Passwords, expiry and private stats are built in.
SQLite keeps small installs simple.
Watch out for
Node.js hosting and updates are your responsibility.
Mail and identity settings need configuration.
Hosted premium accounts are separate from self-hosting.
Dub is open core rather than fully permissive: the core codebase is AGPLv3, while enterprise directories sit under a commercial license for production use. Self-hosting is possible, but the guide depends on several managed services, so it is heavier than Shlink, YOURLS or Kutt. The hosted product adds branded links, QR codes, UTM templates, analytics and conversion tracking, with a free cloud plan. Choose Dub when modern attribution matters and the license split is acceptable. Read the license files before building a business on the self-hosted code. Before public use, test backups, restore, TLS renewal and admin access for this install. Record slug ownership and destinations outside the system, and review updates on a schedule so important links do not depend on forgotten infrastructure.
Sink is an AGPL-3.0 link shortener built to run on Cloudflare, with analytics, custom slugs, expiration, password protection, device and country routing, QR codes and import and export tools. Because it runs on Cloudflare Workers and related services, there is no traditional server to patch, but your Cloudflare account, usage limits and configuration become the hosting job. The project aims at individuals and small teams, and its materials point business needs such as multi-user support and service levels toward a separate hosted product. Check Cloudflare costs before assuming it stays free. Before public use, test backups, restore, TLS renewal and admin access for this install. Record slug ownership and destinations outside the system, and review updates on a schedule so important links do not depend on forgotten infrastructure.
What we like
AGPL-3.0 code with analytics and routing features.
Runs on Cloudflare without a traditional server.
Import and export support link migration.
Watch out for
Cloudflare account limits and costs still apply.
Aimed at individuals and small teams.
Multi-user business needs sit outside the project scope.
Starting price$99.50/year for the first year (Beginner, …
Free planYes
Free trialNot confirmed
PlatformsWordPress plugin
Pretty Links is licensed under the GNU General Public License, with a free Lite version on WordPress.org and paid plans for automation and support. Links live on your WordPress domain, with redirect types, custom slugs, click tracking, bot filtering and CSV import and export in Lite. Paid tiers add features such as keyword auto-linking and split tests, priced by site count with a much higher renewal than first-year price. It is open source in license terms, but it is a WordPress plugin, not a standalone shortener for general team use. Before public use, test backups, restore, TLS renewal and admin access for this install. Record slug ownership and destinations outside the system, and review updates on a schedule so important links do not depend on forgotten infrastructure.
What we like
GPL licensing with a free Lite version.
Links live on your WordPress domain.
Click tracking and CSV tools are included in Lite.
Chhoto URL is a small MIT-licensed Rust shortener for people who want links and little else. It supports generated or custom slugs, link expiry, editing and disabling links, notes with filtering, QR codes, an API, OIDC or password login, and privacy-respecting hit counts that record the hit and nothing else. Links live in SQLite and deployment uses a small container. There is no rich analytics, user management or campaign reporting by design. Choose it for a personal or internal shortener where simplicity and low resource use matter most. Before public use, test backups, restore, TLS renewal and admin access for this install. Record slug ownership and destinations outside the system, and review updates on a schedule so important links do not depend on forgotten infrastructure.
What we like
MIT license and very small container footprint.
Hit counting avoids detailed visitor tracking.
Custom slugs, expiry, QR codes and API are included.
Polr is a GPL-2.0 PHP shortener with a web interface, custom endings, user accounts and a JSON API for shortening and lookup. It was once a popular self-hosted choice and remains genuinely open source. The caution is maintenance: its last tagged release was in Jan 2021, so running it on the public internet means accepting old dependencies and security risk. Existing installs may keep it behind careful controls while planning migration. New projects should choose Shlink, YOURLS or Kutt instead of starting with dormant code. Before public use, test backups, restore, TLS renewal and admin access for this install. Record slug ownership and destinations outside the system, and review updates on a schedule so important links do not depend on forgotten infrastructure.
We included only tools with a verifiable open source license from the project or repository. Proprietary tools with free tiers were excluded, and open-core limits are stated where they apply.
Criterion
Weight
What we looked at
License clarity
30%
The license decides what you may run, modify and redistribute.
Maintenance and maturity
30%
Active releases reduce security and compatibility risk.
Hosting effort
20%
Setup and update burden decides total cost of ownership.
Link and analytics features
20%
Domains, edits, expiry and stats shape daily usefulness.
Which license fits how you will use the software?
MIT-licensed tools such as Shlink, YOURLS, Kutt and Chhoto URL allow broad use with notice requirements. AGPL tools such as Sink, and the Dub core, add obligations when modified versions are offered as a network service. GPL tools such as Pretty Links and Polr carry copyleft terms. Read the license file in the repository before commercial redistribution or hosted offerings. Write down who owns hosting, DNS, backups, updates and incident response before public links depend on the install. Test a restore, export link records, and review admin access on a schedule. Open source control only helps when the operating routine is documented and practiced.
What hosting will you run and maintain?
YOURLS and Shlink fit PHP hosting, Kutt needs Node.js, Chhoto URL ships as a small container, and Sink runs on Cloudflare. Budget for a domain, TLS, database backups, monitoring and updates. A shortener is infrastructure: if it stops, every printed and published link stops with it, so hosting quality matters more than feature count. Write down who owns hosting, DNS, backups, updates and incident response before public links depend on the install. Test a restore, export link records, and review admin access on a schedule. Open source control only helps when the operating routine is documented and practiced.
Do you need a dashboard, an API, or both?
Kutt and YOURLS provide a dashboard in the install. Shlink separates the API server from its web client, which suits automation and multiple instances. Dub centers on a hosted-style product experience. Choose based on who creates links each day: marketers may need screens, while product teams may need API keys, roles and audit trails. Write down who owns hosting, DNS, backups, updates and incident response before public links depend on the install. Test a restore, export link records, and review admin access on a schedule. Open source control only helps when the operating routine is documented and practiced.
How will links survive a future migration?
Keep control of the short domain, export link and slug records regularly, and document redirect rules. Open source code helps you inspect data, but migration still needs matching paths and destinations. Avoid dormant projects for new public installs, because security updates are part of link reliability over years of use. Write down who owns hosting, DNS, backups, updates and incident response before public links depend on the install. Test a restore, export link records, and review admin access on a schedule. Open source control only helps when the operating routine is documented and practiced.
Frequently asked questions
Which open source URL shortener is best overall?
Shlink is best for most teams because it is MIT licensed, actively maintained and API first, with custom domains, tags and visit tracking. Its web client is separate from the server, so plan deployment for both parts or use the hosted client carefully.
Are open source shorteners really free?
The software license is free for the tools here, but hosting is not automatically free. You pay for a server or cloud usage, a domain, backups and your time for updates and security. Dub and Pretty Links also sell hosted or paid plans beside open source code.
Is Dub fully open source?
Dub is open core. Its core codebase is AGPLv3, while enterprise directories are under a commercial license for production use. That can still fit many teams, but it is not the same as an MIT-licensed project with no paid edition. Read the repository license files first.
Which open source shortener is easiest to host?
Chhoto URL is among the simplest, with SQLite storage and a small container, but analytics stop at hit counts. Kutt also keeps small installs simple with SQLite and a full dashboard. YOURLS suits existing PHP hosting, while Shlink suits API-led setups.
Should new projects use Polr?
No, not for a new public install. Polr is GPL-2.0 and genuinely open source, but its last tagged release was in Jan 2021. Old dependencies raise security risk. Existing users should plan migration to a maintained project such as Shlink, YOURLS or Kutt.
Can open source shorteners use custom domains?
Yes. Self-hosting means links normally run on a domain you control. Shlink supports multiple domains, Kutt supports custom domains, and YOURLS runs on your chosen domain. Plan DNS, TLS and slug records so printed links remain stable if you migrate later.
Is Pretty Links open source?
Yes, Pretty Links is licensed under the GNU General Public License, with a free Lite version on WordPress.org. Paid plans add automation, support and updates by site count. It requires WordPress, so it fits publishers rather than standalone team shortening.
Final verdict
Pick Shlink for a maintained, MIT-licensed, API-first shortener.
Pick YOURLS for PHP hosting and a large plugin ecosystem.
Pick Kutt for a modern dashboard with passwords and expiry.
Pick Dub only after accepting its open-core license split.
Avoid Polr for new public installs because maintenance has stalled.
Compare the 8 best custom domain URL shorteners in 2026 by price, free plan and best fit. See where Bitly and Rebrandly win, their limits, and which to pick.