Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
upstream: github.com/YOURLS/YOURLS (opens in new tab) · github.com/shlinkio/shlink (opens in new tab)
Pick YOURLS
If you want to open an admin page on the same server, create links there and extend it with PHP plugins.
Pick Shlink
If links are mostly created by code or the command line and you want several domains, scoped API keys and rule-based redirects.
YOURLS and Shlink both put short links on your own domain, count the visits and are MIT-licensed. They differ in where you work. YOURLS is a PHP web application with its own admin page. Shlink is a server you drive through a REST API or command line, with the web UI shipped separately.
YOURLS gives you an admin area at /admin/ to create links and read statistics: click history, referrers and visitor location. It adds bookmarklets and a plugin system. Its API can shorten, expand and return statistics, and a per-account signature token means scripts need not send your password.
Shlink has no UI in its image. The official web client is a static app that runs in the browser and connects to your server with an API key; you can host it yourself or use the one at app.shlink.io.
Shlink goes further here. One instance can serve several short domains, API keys can be limited to a domain or to the links they created, and a short URL can redirect differently by device, browser, language, query parameter, country or date.
Note one change: Shlink 5.0 removed server-side QR code generation, which now lives in its web clients.
YOURLS needs MySQL or MariaDB and ships a country database for geolocating visits. Shlink includes SQLite, though its docs strongly recommend an external database in production, and needs a free MaxMind GeoLite2 key to geolocate visits from a local database.
Idle at first boot on a GCP e2-standard-2, YOURLS with MariaDB used ~105 MB of RAM and ~1.3 GB of disk (October 2026). Shlink used ~110 MB of RAM and ~444 MB of disk (November 2026). RAM is about even; neither reading includes real traffic.
Both are 2 out of 5. Our YOURLS compose file starts YOURLS 1.10.6 with MariaDB; you set YOURLS_SITE, run the installer at /admin/, and expect the bare site root to answer 403. The file persists the database in a named volume; mount user/plugins yourself if you add plugins.
Our Shlink snippet is a single docker run of the stable tag with an initial API key. It mounts no volume, so removing the container loses the SQLite data. Move to an external database before relying on it. Both snippets serve plain HTTP, so add TLS.
Choose YOURLS if people will create links in a browser and you want plugins to bend the behaviour in PHP.
Choose Shlink if applications create the links, or you need several domains and redirect rules. Its importer reads YOURLS, so moving later is possible.
Shlink lists a lower minimum: 256 MB vs 512 MB for YOURLS.
YOURLS if you want a built-in admin page and plugins. Shlink if you drive link creation from an API or CLI, or need several domains or redirect rules.
Not in the server image. The separate Shlink web client is a static app that connects to your server with an API key.
Yes. Shlink has a command-line import that lists YOURLS as a source.
Not in the server since Shlink 5.0. Upstream moved QR code generation to the Shlink web client and Shlink Dashboard.
Paid link — we earn a commission if you shop through it.
A shortener with a built-in web app, or an API-first server with a separate web client.
A Node.js shortener with accounts and link passwords, or the PHP shortener built around plugins.
A full billing platform under a source-available licence, or a smaller AGPL invoicing app on SQLite.