Switchy

Best Self Hosted Alternatives to Switchy

A curated collection of the 12 best self hosted alternatives to Switchy.

Switchy is a link management platform for creating branded short links and custom domains, managing retargeting pixels and link cloaking, and tracking click analytics for marketing attribution and conversion analysis.

Alternatives List

#1
Dub

Dub

Dub is an open-source link attribution platform for branded short links, real-time analytics, conversion tracking, webhooks, and affiliate/referral programs.

Dub screenshot

Dub is an open-source link attribution platform that combines branded short links, real-time analytics, and partner/affiliate programs in one system. It helps teams measure outcomes by tracking the journey from click through conversion and revenue.

Key Features

  • Branded short links with custom domains
  • Advanced link controls including device and geo targeting
  • A/B testing for links
  • Automatic QR code generation for links
  • Conversion tracking from first click to sale
  • Real-time analytics and detailed event visibility
  • API for programmatic link creation and management
  • Real-time webhooks for link and conversion events
  • Partner/affiliate and referral program tooling, including embedded dashboards
  • Role-based access control for managing links at scale

Use Cases

  • Run and measure marketing campaigns with click-to-conversion attribution
  • Manage short links at scale across teams, brands, and domains
  • Build embedded referral/affiliate programs to drive product-led growth

Limitations and Considerations

  • Uses an open-core model: a small portion of enterprise features requires a commercial license

Dub is a strong fit for teams that want modern link management plus attribution and partner infrastructure in a single product. It scales from simple branded short links to high-volume tracking and programmatic link workflows via API.

22.9kstars
2.8kforks
#2
YOURLS

YOURLS

YOURLS is a self-hosted PHP URL shortener with custom short links, a developer API, detailed click analytics, and an extensible plugin architecture.

YOURLS screenshot

YOURLS (Your Own URL Shortener) is a set of PHP scripts for running your own branded URL shortener on your domain. It provides full control over short links and includes built-in statistics and an API for automation and integrations.

Key Features

  • Create and manage short URLs on your own domain
  • Detailed click statistics with historical reports
  • Referrer tracking and visitor geolocation insights
  • Developer-friendly API for programmatic link creation and management
  • Bookmarklets for quick shortening from the browser
  • Extensible plugin architecture with a large plugin ecosystem

Use Cases

  • Run a branded link shortener for a company, community, or personal domain
  • Track engagement on shared links with referrers and click analytics
  • Integrate link shortening into internal tools via the API

Limitations and Considerations

  • Core storage is typically backed by a relational database; performance depends on database tuning and traffic patterns
  • Advanced features (custom workflows, moderation, additional analytics) may require third-party plugins

YOURLS is a mature, lightweight option for operating a private URL shortener with solid analytics and customization. It is well suited for teams and individuals who want ownership of link data and flexible extensibility via plugins and API access.

11.8kstars
2.1kforks
#3
Kutt

Kutt

Open-source, self-hostable URL shortener with custom domains, link management, private analytics, and a REST API.

Kutt screenshot

Kutt is a modern, self-hostable URL shortener focused on managing shortened links with custom domains and detailed statistics. It provides an admin interface, user management, and an API for programmatic link creation.

Key Features

  • Shorten URLs with custom aliases, descriptions, passwords, and expiration times
  • Custom domain support for branded short links
  • Link management: create, edit, delete, and organize shortened URLs
  • Private statistics and detailed analytics per link
  • Admin dashboard for managing users and links
  • OpenID Connect (OIDC) login and configurable registration/anonymous link controls
  • RESTful API for integrating link shortening into other services
  • Theme/customization support via custom templates, images, and styles

Use Cases

  • Run a branded short-link service for an organization with custom domains
  • Generate trackable short links for internal tools, marketing, or documentation
  • Integrate URL shortening into workflows using the REST API

Limitations and Considerations

  • HTTPS for custom domains may require manual certificate management depending on deployment setup
  • Some functionality (sign-up verification, password resets) depends on enabling email delivery

Kutt is a practical choice for teams or individuals who want full control over short links, branding, and analytics. It is designed for straightforward deployments while still supporting more advanced setups with external databases and caching.

10.5kstars
1.4kforks
#4
Sink

Sink

Sink is a fast, secure link shortener with built-in analytics, custom slugs, link expiration, and serverless deployment on Cloudflare Workers or Pages.

Sink screenshot

Sink is a lightweight link shortening service designed to run serverlessly on Cloudflare. It provides short links with a dashboard for basic link management and traffic analytics.

Key Features

  • URL shortening with customizable, case-sensitive slugs
  • Built-in analytics to track link usage and traffic trends
  • AI-assisted slug generation
  • Link expiration support
  • Serverless deployment on Cloudflare Workers or Cloudflare Pages
  • Uses Cloudflare KV and Analytics Engine as backend building blocks

Use Cases

  • Create and manage short links for marketing campaigns or newsletters
  • Track click performance for shared links across channels
  • Provide an internal short-link service for teams and documentation

Limitations and Considerations

  • Cloudflare platform dependency (KV and Analytics Engine) may limit portability to non-Cloudflare environments

Sink is a good fit for users who want a simple, modern link shortener with analytics and minimal operational overhead. Its Cloudflare-native approach prioritizes speed and straightforward deployment while keeping the feature set focused.

6.1kstars
4.1kforks
#5
Shlink

Shlink

PHP-based self-hosted URL shortener for your own domains, with REST API, CLI management, and visit analytics including anonymized stats and geolocation.

Shlink screenshot

Shlink is a PHP-based, self-hosted URL shortener that lets you create and serve short links under your own domains. It provides API-first management and a CLI, while tracking anonymized visit statistics for each short URL.

Key Features

  • Create short URLs with auto-generated codes or custom slugs
  • Serve short links under one or multiple custom domains
  • REST API with API key authentication for full remote management and integrations
  • Command-line interface for administration tasks (including API key management)
  • Visit tracking with anonymized analytics and optional geolocation data
  • Deployable via prebuilt distribution packages or container images

Use Cases

  • Run a private branded link shortener for teams, products, or marketing campaigns
  • Integrate link creation and management into internal tools via a REST API
  • Track engagement on shared links while keeping link ownership under your control

Limitations and Considerations

  • Requires a supported database (MySQL/MariaDB/PostgreSQL/SQL Server/SQLite) and appropriate PHP extensions
  • Some administrative operations (like API key management) are available only via the CLI

Shlink is a strong choice when you want a reliable, API-driven URL shortener that you can operate under your own domains. Its combination of CLI tooling, integration-friendly API, and visit analytics makes it suitable for both personal use and organizational deployments.

4.6kstars
370forks
#6
Slash

Slash

Open-source self-hosted link management platform to create, organize, and share tagged shortcuts (s/...) with optional public/team access and basic click analytics.

Slash screenshot

Slash is an open-source platform for organizing and sharing frequently used links through memorable, human-readable shortcuts (for example, s/name). It helps teams and individuals reduce “link chaos” by making important URLs easier to find, share, and reuse.

Key Features

  • Create customizable short links using an s/ shortcut format
  • Tag and organize links for faster discovery and management
  • Share links publicly or restrict access to teammates
  • Collections for grouping and sharing sets of shortcuts
  • Basic traffic analytics for link clicks and sources
  • Optional browser extension for quick access via the browser search/address bar

Use Cases

  • Team knowledge sharing for internal tools, dashboards, and runbooks
  • Personal link hub for commonly used resources and quick navigation
  • Curated collections of links shared with external collaborators or the public

Limitations and Considerations

  • Analytics are focused on link traffic basics and may not replace full web analytics platforms

Slash combines a lightweight link manager with a shortcut-first workflow, making shared URLs easier to remember and distribute. It is well-suited for small teams or individuals who want a simple, searchable system for link organization and sharing.

3.1kstars
141forks
#7
Chhoto URL

Chhoto URL

Chhoto URL is a lightweight, high-performance self-hosted URL shortener in Rust, focused on simplicity, speed, and minimal features.

Chhoto URL is a simple, self-hosted URL shortener designed to be fast and minimal, avoiding unnecessary features. It provides a small web app and CLI-oriented workflows for creating and managing short links.

Key Features

  • Create shortened links with optional random slug generation
  • Web application for basic URL shortening workflows
  • CLI usage support for automation and scripting
  • Designed for high performance with a small footprint
  • Container-friendly deployment (commonly used with Docker/Compose)

Use Cases

  • Running a private link shortener for a homelab or organization
  • Creating short links for internal documentation and tools
  • Automating short-link creation in scripts or simple workflows

Limitations and Considerations

  • Uses a database-backed store; enabling SQLite WAL mode is recommended for better reliability/performance
  • For large numbers of links, longer UID-style slugs are recommended to avoid collisions and creation failures
  • For mission-critical use, regular versioned database backups are advised

Chhoto URL is a good fit when you want a no-frills URL shortener that is easy to deploy, fast, and focused on the core feature set. Its minimalist approach makes it especially suitable for private deployments and straightforward link management.

693stars
68forks
#8
Fli.so

Fli.so

Self-hosted URL shortener built with SvelteKit and PocketBase to shorten, customize, organize, and track links with QR codes and security controls.

Fli.so is a fast, modern URL shortener and link management platform. It helps teams and individuals create branded short links, organize them, and track performance through built-in analytics.

Key Features

  • Custom short URLs and branded slugs
  • Link preview controls (metadata) for social sharing
  • QR code generation for any link
  • Tagging to organize and filter links
  • Security controls such as password protection and expiry dates
  • Keyboard shortcuts for power users

Use Cases

  • Creating branded short links for marketing campaigns and social posts
  • Generating QR codes for print materials, events, and packaging
  • Managing and tracking many links across projects with tags and analytics

Limitations and Considerations

  • Built on PocketBase (SQLite-based), which may be less suitable for very high-scale, multi-node deployments compared to traditional SQL servers

Fli.so combines a clean UI with practical link management features, making it a good fit for lightweight, privacy-conscious link tracking. It is especially useful when you want an all-in-one short-link dashboard without heavy operational overhead.

503stars
36forks
#9
bit

bit

Lightweight URL shortener with minimal click tracking, API key auth, CLI, and compact Docker image for easy self-hosting.

bit screenshot

bit is a fast, lightweight self-hosted URL shortener designed for minimal click tracking and low resource usage. It provides an API and CLI for creating and managing short links, supports multiple users via API keys, and ships as a small Docker image for easy deployment.

Key Features

  • Minimal tracking: captures country, browser, OS, and referer without cookies or persistent client-side tracking
  • X-Forwarded-For support for proxied client IPs
  • API key authentication with multi-user support and CLI tooling for key creation and management
  • Uses a simple SQLite database by default for storage and a small runtime footprint
  • Small container image and low memory usage; optimized for high throughput and low latency
  • Automatic updates for user-agent regexes and GeoIP (GeoLite2) database
  • Simple, Rails-inspired project structure that is easy to extend

Use Cases

  • Provide short links for internal tools or projects with lightweight click metrics
  • Offer a programmatic short-link API for applications, webhooks, or marketing campaigns
  • Replace third-party link shorteners to retain control over analytics and data

Limitations and Considerations

  • Default SQLite storage is convenient but may limit horizontal scaling for very high write volumes or multi-node deployments
  • Tracking is intentionally minimal; it does not provide advanced analytics, user-level tracking, or persistent cookies
  • The project is maintained with a focus on stability and minimalism; new feature additions are limited by design

bit is suitable for teams and hobbyists who need a simple, performant URL shortener with basic analytics and easy deployment. It emphasizes low resource usage, straightforward configuration, and minimal operational complexity.

69stars
7forks
#10
Simple-URL-Shortener

Simple-URL-Shortener

Lightweight PHP URL shortener offering user accounts and link history, supports MySQL or SQLite, designed with minimal dependencies and deployable in a subfolder.

Simple-URL-Shortener screenshot

Simple-URL-Shortener is a small, KISS PHP-based URL shortener that stores links in MySQL or SQLite and provides per-user link history. It aims to be dependency-free and easy to install for simple link shortening needs.

Key Features

  • Lightweight PHP application with no external dependencies beyond PHP and a database
  • Supports MySQL or SQLite backends for storage
  • User accounts with per-user link history and optional comments on links
  • Bookmarklet/shortcut to quickly create short URLs from the browser
  • Works when deployed in a subfolder and includes example configurations for Nginx and Apache
  • Installation script to initialize the database and create the first admin user
  • Secure cookie settings require HTTPS for authentication

Use Cases

  • Internal team or personal URL shortening service for sharing compact links
  • Simple link-tracking and history for individual users or small teams
  • Embedding a minimal shortener in an existing site (subfolder deployment)

Limitations and Considerations

  • The project is no longer actively maintained by the original author; no ongoing feature development or regular updates are guaranteed
  • Authentication relies on secure cookies and requires HTTPS in production environments
  • Feature set is intentionally minimal (no built-in analytics, custom domains, or advanced link management features)

Simple-URL-Shortener is best suited for users who need a tiny, easy-to-run shortener with user history and prefer a minimal, dependency-free codebase. It is not intended as a full-featured commercial link management platform.

58stars
17forks
#11
rs-short

rs-short

Lightweight Rust link shortener with templates, captcha anti-spam, phishing detection, click counting, and SQLite/PostgreSQL/MySQL support.

rs-short screenshot

rs-short is a minimal, lightweight link shortener written in Rust. It focuses on low resource usage, simple templated server-side rendering, and built-in protections against spam and phishing.

Key Features

  • Server-side rendered UI using Askama templates (no JavaScript required)
  • Supports SQLite and optional PostgreSQL or MySQL backends
  • Robust caching to keep serving content during database locks
  • Built-in captcha to reduce automated spam submissions
  • Phishing and suspicious-link detection, plus regex-based URL blocking with a default blocklist
  • Click counting, user-initiated link deletion, and the ability to flag links as phishing
  • Localization support (multiple languages) and light/dark themes
  • Privacy-oriented design: no tracking features and user IPs are not stored in the database

Use Cases

  • Self-hosted short links for organizations, communities, or personal use
  • Safer public URL shortener with basic anti-spam and anti-phishing controls
  • Low-resource URL shortening for small servers and homelab environments

Limitations and Considerations

  • The built-in captcha is intentionally minimal and may not be sufficient for all high-abuse environments.
  • SQLite is supported, but deployments with higher write concurrency may prefer PostgreSQL or MySQL.

rs-short is a good fit when you want a straightforward URL shortener that is fast, memory-efficient, and designed with privacy and abuse resistance in mind. Its small codebase and server-side templates make it easy to audit and customize for simple deployments.

#12
clink

clink

clink is a dead-simple, ultra-minimal URL shortener written in C with a tiny footprint, designed for easy self-hosting behind NGINX and systemd.

clink screenshot

clink is a super-minimal URL shortener written in C, built to be fast and small while staying easy to deploy. It uses the embedded Mongoose web server and is typically run behind a reverse proxy for HTTPS.

Key Features

  • Very small binary size and low resource usage
  • Embedded HTTP server via Mongoose (no heavy external runtime)
  • Supports query-string based creation (useful for integrations that expect it)
  • URL decoding support for encoded URLs
  • Per-link deletion keys generated from a server-side seed
  • Optional provided systemd unit and NGINX reverse-proxy configuration
  • Includes a companion CLI utility (clinkctl) for administration

Use Cases

  • Self-hosted link shortener for a personal domain or organization
  • Short links for tools that require query-string based submission
  • Lightweight redirect service for homelabs or internal networks

Limitations and Considerations

  • No built-in blacklists/word filters for destinations or short codes
  • HTTPS is expected to be handled by a reverse proxy (for example, NGINX)

clink is a good fit when you want a straightforward, no-frills shortener with minimal dependencies. Its tiny footprint and simple operational model make it especially attractive for small servers and homelabs.

Why choose an open source alternative?

  • Data ownership: Keep your data on your own servers
  • No vendor lock-in: Freedom to switch or modify at any time
  • Cost savings: Reduce or eliminate subscription fees
  • Transparency: Audit the code and know exactly what's running