Shlink: what it is, how it works & who it's for

MIT-licensed self-hosted URL shortener with a REST API, CLI and visit tracking

Updated · Pricing checked December 2026

What is Shlink?

Shlink is a self-hosted URL shortener released under the MIT license, built API first for teams that want short links on domains they control. The server creates and redirects short URLs, records visits, and exposes management through a REST API and command line tool, while a separate web client provides the visual interface. That split suits developers and marketing teams who need link creation inside other systems as well as manual campaign work.

Shlink supports custom slugs, multiple domains on one instance, tags, expiration and visit limits, and import tools for moving links from other shorteners. There is no paid edition and no feature gating, so the full product is available to every install. The cost is operational: you provide hosting, a database, TLS, backups and updates, and you decide whether to host the web client yourself or point the hosted client at your server.

In daily use, Shlink fits organizations that treat short links as infrastructure rather than a marketing side tool. API keys can be scoped, domains can be separated by brand or client, and tags keep campaigns findable after staff changes. Migration planning should include exporting link records, testing redirect behavior for important slugs, and deciding how visit data will be retained. Because the web client and server are separate, access control for the client, API key storage and database backups deserve the same care as the public redirect service itself. Teams that document those pieces get a durable, inspectable shortener with no subscription pressure.

Shlink at a glance

Shlink infographic: how it works in 4 steps, key features, pricing model and who it is best for
Shlink at a glance. Share or embed this infographic with a link to this page.

How does Shlink work?

  1. Install the server

    Deploy Shlink with Docker or on a PHP host and connect a supported database.

  2. Connect a domain

    Point a short domain at the instance and configure TLS so links resolve over HTTPS.

  3. Create an API key

    Generate a key from the command line and connect the web client or your own application.

  4. Create and track links

    Add short URLs with custom slugs and tags, then review visit data by link and domain.

Shlink key features

REST API

Full programmatic control over short URLs, domains, tags and visits for integrations and automation.

Multiple domains

Serve short links from several domains on one Shlink instance for brands or clients.

Custom slugs

Choose readable short paths instead of generated codes for print and campaign links.

Visit tracking

Record visits with referrer, browser, device and location data where configured.

Tags and limits

Organize links with tags and set expiration dates or maximum visit counts.

Import tools

Move links from other shorteners or files using built-in import commands.

Why use Shlink?

  • No license fee or paid edition, with every feature available to self-hosted installs.
  • API-first design fits product, marketing and automation workflows.
  • Multiple domains keep brands and clients in one system.
  • Link and visit data stay on infrastructure you control.

Who is Shlink best for?

A good fit for

  • Developer and marketing teams that need API link creation
  • Brands running several short domains
  • Organizations that must keep click data in-house
  • Teams migrating from a hosted shortener

Less suited to

  • Users who want a hosted account with no server work
  • Print teams that need built-in QR design tools

Shlink pricing

Pricing modelFree open source (MIT), self-hosted
Free planYes
Free trialNot confirmed
Starting priceFree (self-hosted)

Shlink is free MIT-licensed software with no paid edition. You pay for hosting, a domain and database resources, and you manage backups and updates. The web client is a separate app that can be self-hosted or opened in the browser.

Prices checked December 2026. Vendors change plans often, so confirm on the official Shlink pricing page before you buy.

Shlink pros and cons

Pros

  • MIT license with no feature gating
  • Strong API and CLI for automation
  • Multiple domains on one instance
  • Active maintenance and clear documentation

Cons

  • Web client is a separate deployment
  • Hosting and updates are your responsibility
  • QR generation is deprecated in current docs

Shlink integrations and platforms

Works with

  • REST API
  • Webhooks
  • Docker

Available on

  • Self-hosted
  • Docker
  • Web client
  • API
  • CLI

Shlink alternatives

Shlink FAQ

Is Shlink free?

Yes. Shlink is free open source software under the MIT license, with no paid edition. You still pay for hosting, a domain and database resources, and you manage backups, TLS and updates for your instance.

Does Shlink include a dashboard?

The server is API and CLI based, and the visual dashboard is a separate web client. You can host that client yourself or open the hosted client and connect it to your server with an API key.

Can Shlink use multiple custom domains?

Yes. One Shlink instance can serve short links from multiple domains, which suits brands, products or clients that need separate short domains under one management system and API.

What database does Shlink need?

Shlink supports common SQL databases including MySQL, MariaDB, PostgreSQL and Microsoft SQL Server, with SQLite options for smaller setups. Check current documentation for production guidance before choosing SQLite for a busy public instance.

Is Shlink good for QR codes?

Shlink has offered QR generation for short URLs, but current documentation marks that feature deprecated. Teams with serious print needs should plan a separate QR workflow and keep Shlink focused on links and tracking.

Sources

This overview is based on Shlink's official website and documentation, checked December 2026.