# YOURLS

> Your Own URL Shortener

Source: https://talira.ai/catalog/yourls-dh9mpwm5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Web app, API
- Categories: [business / marketing / link shortening](https://talira.ai/categories/business/marketing/link-shortening), [self hosted](https://talira.ai/categories/self-hosted)
- Platforms: web, docker, kubernetes[^4][^7][^8][^15]
- Licence: MIT[^10][^11]
- Pricing: Free and open source[^9][^10]
- Pricing notes: Free and MIT-licensed; the project is funded by backers and sponsors on Open Collective (from $1 a month).
- Free tier: yes[^9][^10]
- Self-hostable: yes[^9][^12]
- API: yes[^9][^13]
- Plugins: yes[^9][^14]
- Backed by: [YOURLS](https://talira.ai/orgs/yourls.md)

YOURLS (Your Own URL Shortener) is a set of PHP scripts for running a URL shortener on your own domain or subdomain, with full control over the links and their data. It keeps click stats with historical reports, referrers and visitor geolocation, has bookmarklets for shortening from the browser, and an API that creates short URLs with sequential or custom keywords, expands them and returns stats in JSON, XML or plain text, signed in with a password or a passwordless signature token. The admin area is private behind a login by default, and a sample public front page turns it into a public shortener; features beyond the small core come from a plugin API and the community plugins listed in Awesome YOURLS. It needs Apache 2.4 with mod_rewrite (or [nginx](https://talira.ai/catalog/nginx-nfjkekkp.md)), PHP 8.1 or later and [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md) or [MariaDB](https://talira.ai/catalog/mariadb-server-bxse0j6g.md), and also ships as an official [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) image and [Helm](https://talira.ai/catalog/helm-wvsxp6a4.md) chart; it's MIT-licensed, has been developed since 2009 and is funded by backers on Open Collective.

## Links

- Website: https://yourls.org/
- GitHub: https://github.com/YOURLS/YOURLS
- Docs: https://yourls.org/docs/

## Ways to install

### On your own server

- [Unraid Community Applications](https://talira.ai/catalog/unraid-community-applications-9jw5an1a.md): <https://ca.unraid.net/apps/yourls-03o04tj0bj42gj>[^1]
- [YunoHost](https://talira.ai/catalog/yunohost-f9asga4s.md): <https://apps.yunohost.org/app/yourls>[^2]
- [Proxmox VE Helper-Scripts](https://talira.ai/catalog/proxmox-ve-helper-scripts-3h36wtyj.md): <https://community-scripts.org/scripts/yourls>[^3]

### On Kubernetes

- [Artifact Hub](https://talira.ai/catalog/artifact-hub-s43pzyps.md): <https://artifacthub.io/packages/helm/yourls/yourls>[^4]

### Hosted for you

- [Elestio](https://talira.ai/catalog/elestio-kc92fhjp.md): <https://elest.io/open-source/yourls>[^5]
- [Railway](https://talira.ai/catalog/railway-mczwyt8g.md): <https://railway.com/deploy/yourls>[^6]

## Problems it solves

- run my own URL shortener on my blog's short domain instead of using Bitly
- a free self-hosted link shortener in PHP that runs on cheap shared hosting
- see how many clicks each short link got, where visitors came from and which countries
- shorten links with custom keywords like example.co/podcast for my show notes
- a bookmarklet that shortens the page I'm on with my own domain
- create short links from a script or my WordPress site through an API
- let anyone on our intranet shorten links without logging in
- offer a public link shortening page on my site while keeping the admin area private
- add features to my URL shortener with plugins, like spam checks or random keywords
- keep ownership of all my short links and their click data if a service shuts down
- use an API token instead of my password when a tool creates short links for me
- deploy a URL shortener on Kubernetes with an official Helm chart
- a self-hosted Bitly alternative backed by MySQL
- brand all the links in our newsletters with our own short domain

## Features

- short URLs on your own domain or subdomain, with sequential or custom keywords
- click stats with historical reports, referrer tracking and visitor geolocation
- bookmarklets for shortening from the browser
- API (yourls-api.php) to shorten, expand and get stats, with JSON, JSONP, XML or plain-text output
- passwordless API requests with a signature token
- custom API actions defined by plugins
- plugin API with core plugins and dozens of community plugins listed in Awesome YOURLS
- private admin area behind a login, or a public setup for intranets
- sample public front page for running a public shortener
- several username and password pairs in the config file
- translations through a .pot file
- official container image (Docker Hub yourls, ghcr.io/yourls/yourls) and Helm chart

## Limitations

- Doesn't support PostgreSQL or SQLite: YOURLS stores links only in MySQL 5.5+ or MariaDB 10.0+[^7]
- Can't share its directory with WordPress or another app that uses .htaccess rewrite rules: it needs its own root or subdirectory[^8]

## Capabilities

- Has an API: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.38 out of 1.
Signals: backing 0.30, extensibility 0.40.

- has a company behind it
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Shlink](https://talira.ai/catalog/shlink-y1kpeby3.md): The definitive self-hosted URL shortener
- [Kutt](https://talira.ai/catalog/kutt-bq5erbx1.md): Free modern URL shortener
- [Bitly](https://talira.ai/catalog/bitly-1zdga8md.md): Create, share, and track short links and QR Codes
- [Short.io](https://talira.ai/catalog/short-io-cg4h5rg4.md): URL shortener with custom domains & analytics
- [Dub](https://talira.ai/catalog/dub-sp2g1n33.md): Link attribution platform: short links, conversion tracking and affiliate programs
- [Chhoto URL](https://talira.ai/catalog/chhoto-url-4bqz4q7e.md): Small self-hosted URL shortener written in Rust

## Sources

[^1]: https://ca.unraid.net/api/apps/yourls-03o04tj0bj42gj (checked 20 Nov 2026)
[^2]: https://app.yunohost.org/default/v3/apps.json (checked 21 Nov 2026)
[^3]: https://github.com/community-scripts/ProxmoxVE/blob/main/ct/yourls.sh (checked 21 Nov 2026)
[^4]: https://github.com/YOURLS/charts/blob/main/README.md (checked 20 Nov 2026)
[^5]: https://elest.io/open-source/yourls (checked 20 Nov 2026)
[^6]: https://railway.com/deploy/yourls (checked 20 Nov 2026)
[^7]: https://yourls.org/docs/ (checked 20 Nov 2026)
[^8]: https://yourls.org/docs/guide/server-configuration (checked 20 Nov 2026)
[^9]: https://yourls.org/ (checked 20 Nov 2026)
[^10]: https://github.com/YOURLS/YOURLS/blob/master/README.md (checked 20 Nov 2026)
[^11]: https://github.com/YOURLS/YOURLS/blob/master/LICENSE (checked 20 Nov 2026)
[^12]: https://yourls.org/docs/guide/install (checked 20 Nov 2026)
[^13]: https://yourls.org/docs/guide/advanced/api (checked 20 Nov 2026)
[^14]: https://yourls.org/docs/guide/extend/plugins (checked 20 Nov 2026)
[^15]: https://github.com/YOURLS/containers/blob/main/README.md (checked 20 Nov 2026)
