
Shlink
Shlink is a self-hosted, PHP-based URL shortener with a REST API, a command-line interface and visit statistics for links on your own domains.
Verified
About Shlink
Shlink is a self-hosted URL shortener for serving short links under your own domains. It is a PHP application distributed under the MIT license and is installed either from a distribution file or as an official Docker image. It is built on Mezzio, Doctrine and Symfony components and supports MySQL, MariaDB, PostgreSQL and Microsoft SQL as its database.
Links can be created with a generated short code or with a custom, human-friendly slug, including multi-segment slugs. Several short domains can be served by one instance, and the same slug can be used on different domains. Links can be tagged for later analysis, and emojis are accepted in slugs, titles and tags. Access to a link can be limited by date range or by a maximum number of visits.
Every visit is recorded with anonymised statistics, including location, browser and referrer. IP addresses are anonymised by default, and visits from likely bots can be excluded from the stats. Redirects can be made dynamic, sending visitors to different destinations based on geolocation, device type or language. Existing links from services such as bit.ly or YOURLS can be imported.
Automation is handled through a fully featured REST API and a command-line interface, which can list URLs, show visits and manage domains. API keys can be restricted by role to a domain or to the short URLs they created. Events can be streamed to Mercure or RabbitMQ for real-time integrations. A progressive web application can manage several Shlink instances from a browser.
Shlink suits marketing and development teams that want to own their link infrastructure and keep visitor data under their control. Because it is self-hosted, the server, backups and updates are the operator's responsibility.
Key features of Shlink
- Custom slugs and domains
- Use generated or custom short codes across several short domains on one instance.
- Visit statistics
- Track visits with location, browser and referrer data, with bot visits excluded.
- Dynamic redirects
- Send visitors to different destinations by geolocation, device, or language.
- Tags and access limits
- Classify links with tags and limit access by date range or visit count.
- REST API and CLI
- Manage short URLs from code or from the command line, with role-restricted API keys.
- Real-time events
- Stream events to Mercure or RabbitMQ for integrations.
- Privacy by default
- IP addresses are anonymised, supporting GDPR-oriented setups.
- Imports and databases
- Import links from bit.ly or YOURLS and run on MySQL, MariaDB, PostgreSQL or Microsoft SQL.
What Shlink is used for
- Serving campaign links under a company domain
- Generating short links from an internal tool through the API
- Tracking which locations and referrers bring clicks
- Moving existing links from a hosted shortener to a self-hosted instance
Who it suits
- Marketing teams that run campaigns with trackable links
- Developers building link features into their products
- Organisations that need to keep link data in-house
- System administrators who run their own infrastructure
Shlink pros and cons
Strengths
- Open source under the MIT license
- Works with your own domains
- Full REST API and command-line access
- Anonymised visitor data by default
Limitations
- Hosting, updates and backups are the operator's responsibility
Editorial summary based on the product's official information.
Alternatives to Shlink
The closest matches by category, features and platforms.

BitlyMarketing
Bitly creates short links and dynamic QR codes that can be edited after printing, and tracks clicks, scans, locations and devices in one dashboard.
Frequently asked questions about Shlink
Is Shlink free?
Shlink is distributed under the MIT open source license and can be self-hosted.
Can Shlink use several domains?
Yes. One Shlink instance can serve multiple short domains, and the same custom slug can be used on each.
How do I install Shlink?
It can be installed from a distribution file or deployed with the official Docker image.
What are the best alternatives to Shlink?
The top-ranked alternative to Shlink is Bitly.
What kind of software is Shlink?
Shlink is listed under Marketing. Shlink is a self-hosted, PHP-based URL shortener with a REST API, a command-line interface and visit statistics for links on your own domains.
Reviews
Used Shlink? Share what worked and what didn't to help others decide.
Shlink is an alternative to

BitlyMarketing
Bitly creates short links and dynamic QR codes that can be edited after printing, and tracks clicks, scans, locations and devices in one dashboard.
Similar software
PaidPaidAlbertMarketing
Albert is an autonomous marketing platform that plans and optimizes cross-channel paid media with 24/7 learning, creative personalization, and audience discovery.
- Free planWebFree plan
MutinyMarketing
Mutiny is a sales assistant for account teams that takes meeting notes, preps reps for calls, and drafts follow-ups and proposals for review.

FamewallMarketing
Famewall collects text, video and audio testimonials through one link, imports reviews from 25+ platforms and shows them as embeddable widgets or a wall of fame.

SenjaMarketing
Senja collects, manages and shares customer testimonials as widgets, videos, popups and case studies, and can import reviews from more than 30 platforms.

EndorsalMarketing
Endorsal automates customer reviews and testimonials, importing reviews from Google and Facebook, sending review requests and embedding widgets on your site.

DubMarketing
Link attribution platform for branded short links, QR codes, conversion tracking and affiliate or referral programs, with real-time analytics for marketing teams.

