YOURLS

YOURLS

Self-hosted URL shortener with analytics, API, and plugins

11.9kstars
2.1kforks
Last commit: 2d ago
Repo age: 14y old
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.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

Dub

Dub

Open-source link attribution platform for short links and conversions

23.1k
2.9k
Last commit: 20h ago

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

Alternative to:
Bitly
Bitly
+9
Kutt

Kutt

Modern URL shortener with custom domains, stats, and an API

10.6k
1.4k
Last commit: 2mo ago

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

Alternative to:
Bitly
Bitly
+11
Sink

Sink

Link shortener with analytics running on Cloudflare

6.4k
4.3k
Last commit: 2d ago

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

Alternative to:
Bitly
Bitly
+11
Shlink

Shlink

Self-hosted URL shortener with REST API and CLI

4.7k
373
Last commit: 15d ago

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

Alternative to:
Bitly
Bitly
+11
MicroBin

MicroBin

Secure pastebin for text and file sharing with URL shortening

4.1k
265
Last commit: 2d ago

MicroBin is a lightweight, secure pastebin for sharing text, files, and short URLs with optional encryption, expiration controls, and raw file serving.

Alternative to:
Pastebin
Pastebin
+17
LinkStack

LinkStack

Self-hosted platform for shareable profile pages with multiple links

3.5k
379
Last commit: 8d ago

LinkStack is an open-source, self-hosted Linktree alternative for creating customizable profile pages that aggregate all your important links in one place.

Alternative to:
Later Linkin.bio
Later Linkin.bio
+2