pick your own keyword, e.g. mylink
No sign-up needed. Short links do not expire, and the same URL always gets the same short link.

About this install

A YOURLS install with the public page switched on. Anyone can paste a long address above and get a short one back. It is free, there is no account and no API key.

Put a + at the end of any short link to see where it leads before you go there.

Short and sweet

Pick your own keyword if you like, or let the install choose one. Either way the link stays up.

Plain GET

Scripts need nothing but a URL. No key, no header, no login.

Bookmarklet

Create short links in one step: Shorten it! drag this to your toolbar

Using it from a script

A plain GET is enough:

Public YOURLS: a YOURLS you can call without a signature. No account and no API key.

Make a link. The answer is JSON and the short link is in "shorturl":

    https://www.publicyourls.com/yourls-api.php?action=shorturl&format=json&url=https%3A%2F%2Fexample.com%2Fa%2Flong%2Faddress

From a shell:

    curl -G https://www.publicyourls.com/yourls-api.php -d action=shorturl -d format=json --data-urlencode 'url=https://example.com/page?a=1&b=2'
    curl https://www.publicyourls.com/yourls-api.php -d action=shorturl -d format=json -d 'url=https://example.com/a/long/address'

Pick the keyword yourself, 1 to 64 letters, digits, - or _:

    https://www.publicyourls.com/yourls-api.php?action=shorturl&format=json&keyword=my-name&url=https%3A%2F%2Fexample.com%2Fa%2Flong%2Faddress

See where a link leads:

    https://www.publicyourls.com/yourls-api.php?action=expand&format=json&shorturl=<keyword>
    https://www.publicyourls.com/<keyword>+

Follow one:

    https://www.publicyourls.com/<keyword>

format is json, xml, jsonp (with callback) or simple; xml when it is left out.
Percent-encode url, or put it last: an address written out as it is
runs to the end of the line, with its own ? and & in it.

The same address gives the same short link every time, unless you name
it yourself. Links do not expire.

Notice: Undefined index: HTTP_REFERER in /var/www/html/yourls/includes/functions-html.php on line 412