YOURLS
Free, open-source PHP URL shortener you install on your own server and domain, with click stats, an API and plugins.
Our take: If you already run a PHP host or Docker, YOURLS gets you branded short links and click stats for the price of a domain.
YOURLS (Your Own URL Shortener) is free, open-source PHP software for running short links on your own domain, aimed at developers and IT admins who want to own their click data. The software costs nothing under the MIT license; you pay only for hosting and a domain. It needs PHP 8.1 or later and a MySQL or MariaDB database.
Free and dependable for teams that can host it; not for anyone wanting zero maintenance.
Our score
Reviewed by the Conversion Gems editorial team. Hover a facet to focus it; click to pin.Tap a facet to focus it.
What it is, and why we rate it
One line each. Open a row for detail.
Our takeIf you already run a PHP host or Docker, YOURLS gets you branded short links and click stats for the price of a domain.
Best / not good for
- Branded short links on your own domain
- Organizations that must keep link data in-house
- Developers adding shortening to their apps via API
- Non-technical marketers
- Teams wanting QR codes and team roles built in
- Anyone needing vendor support
Friction report
Trade-offs to know before signing up.
- Time to valueUnder an hour with Docker or a one-click installer; longer by hand.
- Scale breakpointHigh traffic needs a stronger database server or cache plugins; each redirect makes 4 queries.
- Walled gardenNone: open source and your own MySQL database.
What you need to run YOURLS
| Component | Requirement |
|---|---|
| Web server | Apache 2.4+ with mod_rewrite (or the official Docker image) |
| PHP | 8.1 or later; cURL extension for the API |
| Database | MySQL 5.5+ or MariaDB 10.0+ |
| Security | HTTPS recommended; anti-spam plugins if the shortener is public |
| License cost | Free (MIT) |
From the YOURLS documentation, checked 4 October 2026.
Frequently Asked Questions
What is YOURLS?
Is YOURLS free?
How do I create my own URL shortener with YOURLS?
What are the YOURLS server requirements?
Where is the YOURLS login?
Can I run a public URL shortener with YOURLS?
YOURLS alternatives
Hosted link tools from our reviews, if you would rather not run a server:
Conversion Gems independently reviews every tool.
