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

MIT-licensed PHP URL shortener with statistics, API and plugins

Updated · Pricing checked December 2026

What is YOURLS?

YOURLS, short for Your Own URL Shortener, is a set of PHP scripts released under the MIT license that lets you run a short link service on your own server and domain. It provides custom or sequential keywords, an admin interface, bookmarklets for quick shortening, and statistics covering historical clicks, referrers and visitor location. A developer API allows other applications to create and expand links automatically.

The plugin architecture is the main reason YOURLS remains popular after many years. Community plugins add features beyond the small core, from extra controls to reporting and QR codes, so each install can stay lean or grow as needed. The trade-offs are a dated admin experience, basic user management, and responsibility for PHP hosting, security updates, backups and plugin vetting. For a simple branded shortener on hosting you already run, YOURLS is a proven free choice.

For a publisher or small company, YOURLS works best when one domain and a modest number of administrators cover the need. Keep a short list of approved plugins, test updates on a staging copy, and back up the database before changing PHP versions. Important slugs for print, packaging and profiles should be recorded outside the tool so a future migration can recreate them exactly. Statistics are useful for campaign checks, but they should not be treated as a full web analytics replacement. With those habits, YOURLS provides branded links at very low running cost.

YOURLS at a glance

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

How does YOURLS work?

  1. Install on PHP hosting

    Upload YOURLS to a web server with PHP and MySQL or MariaDB and run the installer.

  2. Point a short domain

    Configure the domain and rewrite rules so short paths resolve to the install.

  3. Create links

    Add custom keywords in the admin area or use bookmarklets and the API.

  4. Review statistics

    Check click history, referrers and visitor location for each short link.

YOURLS key features

Custom keywords

Choose readable short paths for campaigns, documents and printed materials.

Click statistics

Historical reports show clicks, referrers and visitor location for shared links.

Developer API

Create, expand and report on links from other applications and scripts.

Plugin architecture

Extend the core with community plugins for extra controls and reporting.

Bookmarklets

Shorten the page you are viewing from the browser toolbar in one step.

Own domain

Links run on your domain and database rather than a vendor short domain.

Why use YOURLS?

  • Free MIT-licensed software with no subscription or usage fees.
  • Runs on common PHP and MySQL hosting many sites already have.
  • Plugins extend a small, understandable core.
  • Link data stays in your own database.

Who is YOURLS best for?

A good fit for

  • Site owners with PHP hosting
  • Publishers who want branded links on their domain
  • Developers who need a simple shortening API
  • Teams that value plugin extensibility

Less suited to

  • Teams that need modern roles and workspaces
  • Users who do not want to maintain a server

YOURLS pricing

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

YOURLS is free MIT-licensed software with no paid edition. You pay for web hosting and a domain, and you manage installation, security updates, backups and any plugins you add.

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

YOURLS pros and cons

Pros

  • MIT license and no usage fees
  • Large community plugin ecosystem
  • Simple PHP and MySQL requirements
  • Statistics and API in the core

Cons

  • Admin interface feels dated
  • User management is basic
  • Plugin quality varies by maintainer

YOURLS integrations and platforms

Works with

  • REST API
  • Bookmarklets
  • WordPress

Available on

  • Self-hosted
  • PHP
  • Web
  • API

YOURLS alternatives

YOURLS FAQ

Is YOURLS free?

Yes. YOURLS is free open source software under the MIT license. You pay only for hosting and a domain, and you are responsible for installation, backups, security updates and plugin maintenance. A sensible rollout starts with a test domain, a small set of campaign links, and a backup restore check. Record who owns DNS, hosting and plugin updates, because branded links become hard to replace once they appear in print, profiles, documents and partner pages. Review statistics for obvious abuse or broken destinations, and keep a spreadsheet or export of critical slugs. Those operating habits matter more than adding many plugins, and they keep a simple YOURLS install reliable for years without turning it into a fragile custom system.

What does YOURLS stand for?

YOURLS stands for Your Own URL Shortener. The name reflects the model: you install the PHP scripts on your server and run short links under a domain you control.

Does YOURLS track clicks?

Yes. YOURLS includes statistics with historical click reports, referrer data and visitor location. Plugins can add deeper reporting, but quality and maintenance vary, so vet extensions before production use.

Can YOURLS create QR codes?

QR codes are available through community plugins rather than as a central core feature. Check plugin maintenance and PHP compatibility before relying on one for printed materials.

What hosting does YOURLS need?

YOURLS needs a web server with PHP, MySQL or MariaDB, and rewrite support. Many standard PHP hosting plans meet those needs, but you still manage TLS, backups and updates.

Sources

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