November 2026 · 7 min read
YOURLS Alternative: Self-Hosted vs Hosted Shorteners, Real Costs (2026)
YOURLS is free, but running it is not. You need Apache 2.4 with mod_rewrite, PHP 8.1 or newer, MySQL or MariaDB, an HTTPS certificate (the docs recommend one) and someone to apply updates. YOURLS shipped four releases in 2026, two of them fixing security issues, and each one is an upgrade you do by hand.
If that upkeep is why you want a YOURLS alternative, you have two ways out. Move to a self-hosted shortener that is easier to run, such as Shlink in Docker, or stop hosting altogether and use a hosted service such as Short.io, Dub, Bitly or TrimLink. If you create thousands of links a month and don't mind the server work, YOURLS may still be the cheapest option, and we say so below.
We make TrimLink, one of the options below.
What YOURLS actually costs to run
The software costs nothing. It is MIT licensed. The bill is the server, the backups and your time.
| Cost | What it covers | Price |
|---|---|---|
| YOURLS licence | MIT, free to use and change | $0 |
| Server | A small cloud server, for example a DigitalOcean Basic droplet with 512 MiB or 1 GiB of memory | $4/mo or $6/mo |
| Backups | DigitalOcean weekly backups (20% of the server price) or daily backups (30%) | About $0.80 to $1.80/mo |
| Short domain | The domain your links live on | Whatever your registrar charges |
| Upkeep | PHP and database upgrades, YOURLS releases, certificate renewals, outages | Your time |
Checked 18 November 2026 on DigitalOcean's pricing page. Requirements from the YOURLS documentation.
So a basic YOURLS setup costs about $5 to $8 a month in hosting, before you count your hours. For a busy instance with heavy traffic you would want a bigger server.
The upkeep that adds up
The YOURLS install guide is honest about who it is for. It "assumes basic familiarity with software deployment or system administration." Here is what that looked like in 2026, from the YOURLS releases on GitHub:
- 1.10.3 (January). Tested on PHP 8.5, and referrers hidden on the public stats page by default.
- 1.10.4 (May). Fixed a cross-site scripting hole in the stats pages through referrers.
- 1.10.5 (August). A round of security hardening, and older md5 password hashing phased out.
- 1.10.6 (August). A follow-up release two days later.
None of this is a mark against YOURLS. The project is active, with code pushed as recently as November 2026. But every release is your job. If the server goes down, so do your links, and nobody gets paged except you.
Where YOURLS still wins
Be honest with yourself before you switch, because YOURLS does some things better than any hosted plan we compare here.
- No link caps. Hosted plans limit links per month. If you create thousands of links a month, a $6 server running YOURLS costs far less than a hosted plan with the same volume.
- Full control of the data. Your links and click logs sit in your own database. You can even turn click logging off entirely with one setting (YOURLS_NOSTATS).
- Plugins. YOURLS has a plugin system, bookmarklets and an API. If you rely on a plugin for a custom workflow, check whether your new tool can do the same thing before you move.
If those matter more to you than the upkeep, stay.
Option 1: a self-hosted shortener that is easier to run
If you want to keep hosting but drop the hand-built LAMP stack, look at these.
- Shlink. MIT licensed, with v5.1.8 released in October 2026. The official Docker image bundles everything it needs, and it works with SQLite, MySQL, MariaDB, PostgreSQL or Microsoft SQL Server. It is API first, with a separate web app for the dashboard. It stores only an anonymised version of visitor IP addresses by default, and geolocation needs a free MaxMind licence key. One honest note: Shlink is also PHP (8.3 or newer). Docker hides that from you, but you still run and update a server. See the Shlink docs.
- Kutt. Runs on Node.js 20 or newer with SQLite by default, and ships Docker Compose files. You handle certificates for custom domains yourself. Our Kutt alternatives guide compares it with Shlink and the rest in detail.
- Dub (self-hosted). Open source under AGPLv3, but self-hosting needs accounts at GitHub, Tinybird, Upstash, PlanetScale, Vercel and Cloudflare or AWS. That is more moving parts than YOURLS, not fewer.
Option 2: a hosted shortener
A hosted service removes the server, the patching and the certificate work. You pay with money and with link limits instead.
| Service | Free plan | Cheapest paid plan | Own domain | API |
|---|---|---|---|---|
| Short.io | 1,000 branded links in total, 50,000 tracked clicks/mo, 5 domains | Hobby $5/mo or $50/yr | On Free | On Free |
| Dub | 25 new links/mo, 1,000 tracked events/mo, 3 domains | Pro from $30/mo monthly | On Free | On Free |
| Bitly | 5 links/mo | Core $10/mo billed annually | From Growth, $29/mo billed annually or $35/mo monthly | On Free, 1,000 requests/mo |
| TrimLink | 25 links/mo, 1,000 tracked clicks/mo, 1 domain | Starter $5/mo or $50/yr | On Free | From Pro, $12/mo |
Checked 18 November 2026 on the pricing pages of Short.io, Dub and Bitly. TrimLink figures come from our own plan settings, see pricing.
How they compare for a former YOURLS user:
- Volume. Short.io Pro ($18/mo) has no cap on branded links. TrimLink Pro ($12/mo) allows 1,500 links a month and Growth ($39/mo) 6,000. If you make a lot of links, Short.io Pro is the better deal.
- Importing your links. Dub has a CSV import and Short.io lists link import and export on every plan. TrimLink imports a CSV of links on Pro and above, 50 per import on Pro, 250 on Growth and 1,000 on Teams, so a few hundred links take a few uploads.
- Automation. Bitly, Dub and Short.io include an API on their free plans. TrimLink's API starts on Pro, with 1,000 requests a day. Our developer docs list what it covers.
- Privacy. TrimLink counts clicks without storing raw IP addresses, without fingerprinting, without tracking cookies and without ad pixels. That is close to what a privacy-minded YOURLS setup gives you, without the server. Our guide to URL shortener privacy explains what to look for in any provider.
- Fixed links. TrimLink fixes each link's target URL when you create it. To send people somewhere new, you make a new link.
On TrimLink Free, past the 1,000 tracked clicks, links keep redirecting and only the counting pauses until your monthly cycle resets. After 10,000 more untracked redirects across all your links in the same monthly cycle (11,000 in total), links show a paused page until you upgrade or your next monthly cycle starts. Bots and preview crawlers don't count.
Who should stay and who should switch
Stay on YOURLS if you are comfortable patching servers, you create links in bulk, or a plugin does something you can't replace.
Move to Shlink if you want to keep self-hosting but prefer a single Docker container and an API first tool.
Move to a hosted service if you would rather never think about the server again. Short.io fits high volume, Dub fits teams that want an API and a CSV import on day one, and TrimLink fits a small team that wants its own domain and privacy-friendly click counts for a few dollars a month.
How to move off YOURLS
- Export your links. With the default table prefix, YOURLS keeps links in the yourls_url table, with columns for keyword, url, title, timestamp, ip and clicks. Export keyword, url and title to a CSV from your database tool.
- Decide which keywords to keep. Your old links only keep working if each keyword exists again on the new service. TrimLink allows 5 custom back halves a month on Free, 50 on Starter, 200 on Pro, 1,000 on Growth and unlimited on Teams. If you need hundreds of keywords at once, a tool with an import is the faster route.
- Recreate the links on the new service under the same short domain, keeping the keywords that matter.
- Switch DNS last. Add the domain to the new service and change the DNS record only when the links are in place. On TrimLink, a subdomain uses a CNAME record and a root domain uses an A record, and our custom short links guide walks through it. Dub's import guide gives the same advice about adding your domain after the import, to avoid downtime.
- Test a sample of old links, then keep a final database backup before you shut the server down.
Frequently asked questions
Is YOURLS still maintained?
Yes. Version 1.10.6 came out in August 2026, after three earlier releases that year, and the GitHub repository had new commits in November 2026.
How much does it cost to run YOURLS?
The software is free. A small cloud server costs $4 to $6 a month at DigitalOcean, plus 20% to 30% of that for backups, plus your domain. The bigger cost is the time you spend on upgrades and security releases.
Can I keep my YOURLS short links if I switch?
Yes, if you move the same domain and recreate each keyword on the new service before you switch DNS. Links whose keyword you don't recreate will stop working.
Is there a YOURLS alternative that doesn't need PHP?
Kutt runs on Node.js. Shlink is also PHP, but its Docker image means you never install PHP yourself. Hosted services such as Short.io, Dub, Bitly and TrimLink need no server at all.
Part of the complete guide to link management.
Start Free — No Credit Card
Shorten, brand, and measure every link. Track every click, track zero people.
Keep reading
More on links, tracking, and keeping your data yours.