Shlink

Self-Hosted

Open-source URL shortener with API & CLI support

Visit Website

Overview

Shlink is an open-source URL shortener that lets you create, manage, and track short links via REST API or CLI. It supports custom domains, QR code generation, visit statistics (geolocation, referrers), and integrations like Slack/Telegram. Deployable via Docker, Kubernetes, or traditional web servers (PHP 8.1+ with MySQL/MariaDB/PostgreSQL/SQLite), it prioritizes privacy by avoiding unnecessary data collection. Ideal for self-hosted link management without third-party reliance.

Self-Hosting Resources

Below is a reference structure for docker-compose.yml. ⚠️ Do NOT run blindly. Replace placeholders with official values.

docker-compose.template.yml TEMPLATE

version: '3'
services:
  shlink:
    image: <OFFICIAL_IMAGE_NAME>:latest
    container_name: shlink
    ports:
      - "8080:<APP_INTERNAL_PORT>"
    volumes:
      - ./data:/app/data
    restart: unless-stopped

Key Features

  • Custom domain integration
  • REST API & CLI access
  • QR code generation
  • Detailed visit analytics

Frequently Asked Questions

? Is Shlink hard to install?

Shlink is easy to install via Docker (single command) or pre-built packages. It supports Kubernetes and traditional servers (PHP 8.1+ + database). Step-by-step docs cover all deployment methods.

? Is it a good alternative to Bitly?

Yes—Shlink offers custom domains, analytics, and API access (premium in Bitly) as a self-hosted solution, giving full data control and no subscription fees.

? Is it completely free?

Yes—Shlink is open-source (MIT license) and free to use, modify, and self-host. All features are available without hidden costs.

Top Alternatives

Bitly Compare
TinyURL Compare

People Also Ask about Shlink

Shlink vs BitlyShlink vs TinyURL Shlink 2025 review Shlink docker-compose example

Tool Info

Pricing Open Source
Category URL Shorteners
Platform Self-Hosted

Pros

  • Privacy-focused (no third-party tracking)
  • Full automation via API/CLI

Cons

  • Requires self-hosting infrastructure
  • Basic technical knowledge for setup

More URL Shorteners Tools