Open Source Alternatives
  • Alternatives
  • Categories
    Categories by size1,268 projects
    • Developer Tools651
    • AI & Machine Learning537
    • Business & Productivity305
    • Web Development217
    • Security & Monitoring197
    • Communication & Collaboration168
    • IT Management161
    • Design & Creative139
    • DevOps & CI/CD137
    • LLMOps & AI Tooling137
    Browse all 21 categoriesCloud & Hosting, Product & Project Management and 9 more
  • Blog
  • Advertise
SearchNotion, Slack, password manager.../
Submit
Open Source Alternatives
  • Alternatives
    • Developer Tools651
    • AI & Machine Learning537
    • Business & Productivity305
    • Web Development217
    • Security & Monitoring197
    • Communication & Collaboration168
    • Browse all 21 categories
  • Blog
  • Advertise
Submit your project

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Add Open Source Alternatives as a preferred source on Google

Product

  • Categories
  • Tag
  • Advertise

Resources

  • Blog
  • Collection
  • Submit

Company

  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap

Alternatives

  • Claude Code
  • Jira
  • Notion
  • Slack
  • Linear
  • Wispr Flow
  • All alternatives
© 2026 Open Source Alternatives. All rights reserved.
Open SourceAlternatives
Home/Categories/Marketing & Growth/Shlink
icon of Shlink

Shlink

Open source alternative to Bitly, Dub, Short.io, Rebrandly and Cuttly

  • 5.4K stars
  • MIT
  • Active this week
  • Last commit 3 days ago

Last verified Nov 15, 2026

Manage custom-domain short links on your own server with a REST API, CLI, and visit analytics stored in your own database.

Visit websiteGitHub5.4K starsDeploy on Hostinger
image of Shlink
TL;DR

Shlink is a self-hosted URL shortener that stores every short link and click event in a database you control. It replaces paid commercial services like Bitly and Dub by running on your own server with no link count limits, domain caps, or per-event fees. MIT licensed, with a REST API, CLI, and companion web app for managing multiple instances. Best for developers and teams who need branded short links with full data ownership and API access.

Read the full breakdownHide the full breakdownWho it is for, how it works, trade-offs, the quick start and the FAQ
who it's for

Who Shlink is for#

Marketing teams running branded link campaigns

Marketing teams that run repeated campaigns under a branded domain benefit from Shlink's unlimited link creation and per-link visit analytics. Click data is stored locally, so it feeds directly into internal reporting dashboards or data warehouses without an additional API integration.

Skip if:

Your team has no server infrastructure and no one to manage it. Shlink requires a server or Docker environment; it is not a hosted service.

Developers integrating URL shortening into applications

Developers who need URL shortening as a backend service can integrate Shlink through its REST API. The API key system supports multiple clients, and the full API spec is publicly documented with an interactive sandbox at api-spec.shlink.io.

Skip if:

You need a simple redirect with no analytics or API. A static redirect rule at the web server or CDN level is simpler and lighter for that case.

Teams migrating away from capped paid URL shorteners

Teams that have hit link or domain caps on Bitly or Dub's paid tiers can move their custom domain to Shlink and replicate the redirect setup without ongoing per-link or per-event costs.

Skip if:

You rely on features specific to your current service, such as Dub's affiliate program management or Bitly's social media integrations. Shlink covers shortening and analytics, not those adjacent product areas.

the problem

The problem it solves#

Commercial URL shortening services charge monthly fees that scale with the number of links you create, domains you use, and tracked events you consume. These services store your analytics on their infrastructure, so migrating away means losing your click history. Free tiers impose strict caps that break down quickly for any production use: link counts, branded domain restrictions, and API rate limits all require paid upgrades.

The deeper issue is control. When a vendor reprices their plans or discontinues a tier, every short link in your campaigns and published content depends on their decision. Teams that run ongoing marketing campaigns or embed short links in printed materials, emails, or integrations need those redirects to stay up indefinitely, on a schedule they set.

how Shlink solves it

How it solves it#

REST API with API Key Authentication

Provides a fully documented REST API for creating, listing, and managing short URLs from any application. API keys control access; you can generate multiple keys from the CLI and assign different permissions per key. The full API spec is published at api-spec.shlink.io with an interactive sandbox.

CLI for Link and Domain Management

A command-line interface for generating short URLs, listing visits, and managing domains without opening a browser. Run bin/cli to see all available commands; every command accepts --help for usage details. API key management is CLI-only and cannot be done through the REST API.

Visit Analytics with Geolocation

Records anonymized visit stats for every short link click, including geolocation data derived from MaxMind GeoLite2. Visit data is stored in your own database, so you can query it directly or export it to any analytics pipeline you already operate.

Custom Short Codes and Human-Friendly Slugs

Accepts a long URL and either auto-generates a unique short code or accepts a custom human-friendly slug you specify. Custom slugs make short links readable and predictable in marketing materials, emails, and printed content.

Progressive Web App for Multi-Instance Management

The companion shlink-web-client is a progressive web app that connects to one or more Shlink instances and provides a visual interface for managing links, viewing visit stats, and handling domains. It is available at app.shlink.io or can be self-hosted alongside Shlink.

Multi-Database Support

Works with MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, and SQLite. The corresponding PDO extension is the only database-side requirement, so you can connect Shlink to a database you already operate rather than provisioning a new one.

strengths · trade-offs

Strengths and trade-offs#

Strengths

  • MIT License with No Usage CapsMIT licensed and free to run on any infrastructure, commercially or otherwise. Unlike hosted services that impose link counts, event limits, or domain caps per pricing tier, Shlink imposes none of those; the limits are what your server and database can handle.
  • Complete Data OwnershipEvery short link record, click event, and geolocation entry lives in a database you provision and control. You can query it directly, back it up on your own schedule, and export it to any reporting tool without requesting a data export from a vendor.
  • API-First Design with Multiple ClientsThe same operations are available through the REST API, the CLI, and the web app. Teams that build internal tooling, CI pipelines, or marketing automation can call the API directly; non-technical users can use the web app against the same instance.

Trade-offs

  • -PHP Server PrerequisitesSelf-hosting requires PHP 8.4 or 8.5 with specific extensions (json, curl, pdo, intl, gd, gmp). Teams without PHP experience may find the initial setup more involved than deploying a containerized Node.js or Go application. The Docker image reduces this significantly, but Docker itself adds an infrastructure dependency.
  • -No Managed Hosting OptionShlink has no managed cloud tier: you run all of it yourself. If your team has no existing server or container infrastructure, the deployment cost and ongoing maintenance are part of the equation. Services like Bitly or Dub's hosted tier remove that overhead at the cost of data ownership and link caps.
versus alternatives

Shlink vs alternatives#

Shlink vs Bitly

Bitly is the most widely recognized commercial URL shortener, with branded links, click analytics, and hosted infrastructure. Both tools shorten URLs under a custom domain and track visits, but their deployment model differs: Bitly stores all data on its platform, Shlink stores it in your database.

FeatureShlinkBitly
LicenseMITProprietary
Self-hostingYesNo
Custom domainsYes, unlimitedPaid plans only
REST APIYesYes (paid plans)
CLIYesNo
Data locationYour databaseBitly's servers
PricingFree (self-hosted)Per-plan pricing

Shlink is the better choice when you need data ownership, unlimited links under your own domain, and CLI or API access without subscription tiers. Bitly fits when you need a fully managed, no-infrastructure product and are comfortable keeping your analytics on their platform.

Shlink vs Dub

Dub (dub.co) has expanded from URL shortening into partner and affiliate program management. The hosted Business plan costs $81/month billed annually for 120,000 new links per year, 100 custom domains, 3 million tracked events per year, and 10 users. The Advanced plan costs $270/month billed annually for 600,000 links, 250 domains, 12 million tracked events, and SAML/SSO. Enterprise pricing is custom. Dub's open source core (dubinc/dub on GitHub) is AGPL-3.0 licensed and self-hostable; the hosted service adds global CDN analytics infrastructure and affiliate payouts.

FeatureShlinkDub (hosted)
LicenseMITProprietary (hosted)
Self-hostable coreYes (MIT)Yes (AGPL-3.0)
PricingFree (self-hosted)From $81/month (yearly)
Link limitsUnlimited120,000/year (Business)
Custom domainsUnlimited100 (Business), 250 (Advanced)
Tracked eventsUnlimited3M/year (Business)
Partner/affiliate toolsNoYes

Shlink is the better choice when you want MIT-licensed self-hosting with no event or domain caps and no monthly fee. Dub is worth considering when you need its hosted managed service with global CDN analytics, or its affiliate and partner program management features, which Shlink does not cover.

install · quick start

Quick start#

bash
Deploy Shlink with Docker using your domain and database settings passed as environment variables.

```bash
docker run -d shlinkio/shlink
```
tech stack · detected from GitHub

What it's built on#

Languages
PHP
Frameworks
LaminasMezzio
frequently asked

FAQ#

Is Shlink free to use?

Yes. Shlink is MIT licensed and free to run on your own server, including for commercial use. There are no license fees and no link count or event limits built into the software. Your costs are the server and database you host it on.

What databases does Shlink support?

Shlink works with MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, and SQLite. You need the corresponding PHP PDO extension installed: pdo_mysql, pdo_pgsql, pdo_sqlsrv, or pdo_sqlite. SQLite works with no separate database server and is suitable for small or personal deployments.

What is the easiest way to deploy Shlink?

The Docker image is the documented path for most deployments: pull shlinkio/shlink from Docker Hub and pass your domain and database settings as environment variables. The alternative is downloading a pre-built dist file from GitHub Releases and running the shlink-installer setup script on a PHP 8.4 or 8.5 server.

Can I use Shlink with a custom domain?

Yes. Shlink is designed to serve short links under your own domain. You configure your default domain during the install process, and the CLI and API let you add and manage additional domains afterward.

What is shlink-web-client and do I need it?

shlink-web-client is the companion progressive web app for Shlink. It connects to your Shlink instance via the REST API and provides a visual interface for managing links, viewing visit stats, and handling domains. It is optional: all the same operations are available through the REST API and CLI. You can use the hosted version at app.shlink.io or self-host it alongside your Shlink instance.

also worth a look

Similar open-source tools#

Kutt

Alternative toBitly

Self-hosted URL shortener with analytics and custom domains

  • 11,207 GitHub stars
  • MITLicence MIT

FckSignups

InCustomer Support

Open-source tools that work instantly, no signup required

  • 4,588 GitHub stars
  • GPL-3.0Licence GPL-3.0

Fastapi

Alternative toAWS API Gateway

High-performance Python API framework with auto OpenAPI documentation

  • 104,770 GitHub stars
  • MITLicence MIT

fmt

InCustomer Support

Fast, type-safe C++ formatting that replaces printf and iostreams

  • 25,924 GitHub stars
  • MITLicence MIT

Soketi

Alternative toPusher

Self-hosted Pusher-compatible WebSocket server, open source

  • 5,634 GitHub stars
  • AGPL-3.0Licence AGPL-3.0

Sylius

Alternative toShopify

Headless Symfony commerce for complex B2B and B2C stores

  • 8,571 GitHub stars
  • MITLicence MIT
by category

Open source tools in these categories#

76

Marketing & Growth

agency-agents, MoneyPrinterTurbo, MiroFish
87

Backend Development

dify, graphify, Rust
92

APIs & Integration

n8n, Firecrawl, iptv
217

Web Development

freeCodeCamp, Skills for Real Engineers, superpowers
Hostinger

Self-host Shlink on a Hostinger VPS

Keep it running 24/7, even when your laptop is off. A Hostinger VPS gives it a server of its own.

  1. 01

    Choose a plan

    Starts from $6.49/mo

  2. 02

    Apply

    Extra 10% off yearly plans

  3. 03

    Install Shlink

    On a server that stays on

  4. 04

    Start building

    Focus on the app, not the server

Deploy on Hostinger

Sponsors

Inbox Zero

Alternative toSuperhuman

AI email assistant that drafts replies and clears your inbox

  • 13,025 GitHub stars
  • AGPL-3.0Licence AGPL-3.0
  • #Email

rakazo

Alternative toGrok Bot

AI teammates you own: your keys, your model, your machine.

  • 8,291 GitHub stars
  • Apache-2.0Licence Apache-2.0
  • #AI Agents

SnitchFeed

Live monitoring on LinkedIn, X, Reddit & more. Agentic social listening for startups.

Marketing & Growth

Advertise your product

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Find open source alternatives to paid software

/
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • Arc to Zen Browser
  • CapCut to Concat
  • Grok Bot to rakazo
  • Superhuman to Inbox Zero
  • Discord to Stoat
  • Airtable to AITable
  • Datadog to SigNoz
  • Muse to OpenClaw
  • Railway to Coolify
  • GitHub Copilot to Cline
  • Confluence to Wiki.js
  • Microsoft Teams to Rocket.Chat
  • 1Password to KeePassXC
  • Firebase to Supabase
  • Pinecone to Qdrant
  • Zapier to n8n
  • Devin AI to OpenHands
  • Asana to Leantime
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • Arc to Zen Browser
  • CapCut to Concat
  • Grok Bot to rakazo
  • Superhuman to Inbox Zero
  • Discord to Stoat
  • Airtable to AITable
  • Datadog to SigNoz
  • Muse to OpenClaw
  • Railway to Coolify
  • GitHub Copilot to Cline
  • Confluence to Wiki.js
  • Microsoft Teams to Rocket.Chat
  • 1Password to KeePassXC
  • Firebase to Supabase
  • Pinecone to Qdrant
  • Zapier to n8n
  • Devin AI to OpenHands
  • Asana to Leantime