Tuesday, March 11, 2003
Little URL Desk - a little desk for little URLs
Paste the long one in the box and I will hand you a short one back. Pick a name for it if you want. Leave that box empty and I pick one. Add a + to the end of any short link to see where it leads.
For the programs out there: this is how to use it from a script.
Little URL Desk: a free URL shortener. No sign-up and no API token.
Make a link. The answer is the short link on one line:
https://www.littleurldesk.com/?u=https://example.com/a/long/address
From a shell:
curl -G https://www.littleurldesk.com/shorten --data-urlencode 'u=https://example.com/page?a=1&b=2'
curl https://www.littleurldesk.com/shorten -d 'u=https://example.com/a/long/address'
Pick the short name yourself, 1 to 64 letters, digits, - or _:
https://www.littleurldesk.com/?alias=my-name&u=https://example.com/a/long/address
As JSON:
https://www.littleurldesk.com/?format=json&u=https://example.com/a/long/address
curl https://www.littleurldesk.com/shorten -H 'Accept: application/json' -d 'u=https://example.com/page'
Follow a link, or see where it leads without going there:
https://www.littleurldesk.com/s/<code> redirects
https://www.littleurldesk.com/s/<code>+ the address as text
https://www.littleurldesk.com/s/<code>.json the address and when the link was made
Put u last, or percent-encode it: 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. A name that is taken answers 409. Links do not expire.