7 Open Source And Free URL Shortener Scripts To Create Your Own

URL shortening services, with the popularity of Twitter, has a very wide usage, probably more than anyone had expected few years ago.

These services not only makes URLs shorter but more readable & trackable. Also, some offer features like password-protecting, custom URLs & more.

Although there are very succesful services like TinyURL or bit.ly, you may still want to have your own as these services can be shut down one day like tr.im (a huge service that is closed yesterday – update: tr.im re-opened which was a good example for the stability risk of these services). Or, you may be asking for more/custom features.

Here are 7 open source & free URL shortener scripts to create your own:

Shorty

Shorty - Short URL Script

Shorty is a free URL shortener script built with PHP & MySQL. It comes with an admin interface where links can be edited/deleted & number of clicks can be viewed.

YOURLS

Wordpress Short URL Script

It is a set of PHP scripts for running a custom URL shortening service.

It can be private or public, custom keyword URLs can be picked, counts clicks & has an API. Best of all, a WordPress plugin integrates it with your blog & links are shortened automatically.

kissa.be!

kissa.be URL Shortener Script

This short URL script has support to shorten various inputs:

  • URL
  • e-mail
  • text
  • image

It is built with PHP/MySQL & has an API for shortening/expanding URLs.

PHPurl

PHP URL Shortener Script

PHPurl is a simple script to shorten URLs. Optionally, custom URLs can be defined for more readable links. The script is created with PHP & MySQL.

BrokenScript

Basic URL Shortener Script

This is a basic URL shortening script where a custom info is required to generate the URL.

TightURL

TightURL Short URL Script

TightURL is a PHP/MySQL script which has a nice spam control feature. It checks entries in various spam databases before shortening them.

phurl

phurl - Free Short URL Script

The script has a captcha & re-captcha support to prevent bots. It also comes with a basic admin interface which enables deleting URLs.

 

And Some Fresh Ones (updated 28 August 2009)

70 Comments
  1. Reply Ivan August 11, 2009 at 3:18 AM

    Correction: tr.im got shutdown, not is.gd

  2. Reply Mark Rushworth August 11, 2009 at 10:00 AM

    Brilliant post and worthy of a repost on my blog! well done peeps!

    http://markrushworth.com/template_permalink.asp?id=403

  3. Reply EasyWPAdmin August 11, 2009 at 10:13 AM

    I like the idea of branding your own short URL’s. Very cool!

  4. Reply Ryan Hamilton August 11, 2009 at 10:42 AM

    Phurl is my personal choice. When I was a PHP novice, I still found the code running it to be easy to understand and a good learning experience. I was off integrating it with the site’s design in no time.

    If you’re new to PHP and want to run your own url shortener, you should try Phurl.

  5. Reply koko August 11, 2009 at 2:38 PM

    tr.im is back in business http://blog.tr.im/ but i do not know which post is the original one http://is.gd/2ccWA

  6. Reply Wallpapers August 11, 2009 at 3:13 PM

    Cool Websites , Thanks for sharing

  7. Reply SanjayU August 11, 2009 at 3:43 PM

    Correction: tr.im is now un-shutdown. ==> http://blog.tr.im/post/160697842/tr-im-resurrected

  8. Reply Nile August 11, 2009 at 4:56 PM

    Thank you for mentioning my script PHPurl.

  9. Reply RandallB August 11, 2009 at 5:49 PM

    tr.im is back but its funny how bit.ly offered to buy it and nambu turned them down then a few hours later was back up?

    I would watch if I was using there service, it might close down again.

    They said they would be open but you never really know.

    Plus I am going to start my own URL service something small.

  10. Reply Umut M. August 12, 2009 at 12:27 AM

    @Ivan,
    Thanks fixed it.

    And thanks all for the updates on is.gd being re-opened. Edited the post.

  11. Reply Timo Reitnauer August 12, 2009 at 4:56 PM

    Good overview of Open Source shorteners. There are also some hosted URL shortening services:

    http://iwantmyname.com/blog/2009/08/10-tools-to-run-an-url-shortener-on-your-own-custom-domain.htm

  12. Reply Sean O August 13, 2009 at 10:08 AM

    Great list. I like Shorty’s admin panel.

    If you’re looking to create your own URL shortener from scratch, rather than downloading one, I’ve recently posted a tutorial on how to do so in under 50 lines of code:

    http://sean-o.com/short-URL

  13. Reply Adrian August 18, 2009 at 6:15 AM

    For those interested in a very, very simple URL shortener written in Ruby on Rails, try cortito: http://github.com/akosma/cortito/

    I’m using it as my own URL shortener: http://url.akosma.com/

  14. Reply Matt September 30, 2009 at 10:24 PM

    Or there’s the just released urlShort 2.0.0, which offers many of the features of popular short URL services like bit.ly in a free, open source package. http://mavrev.org/urlshort

  15. Reply thexyz November 24, 2009 at 6:59 PM

    Thexyz.org is good one that pays users for using it.

  16. Reply Janan December 6, 2009 at 4:39 PM

    Sweeet! I’ve been looking for a free script to run my own url shrinking service.

    thanks alot!

  17. Reply Sharif Khan December 8, 2009 at 12:01 AM

    I like to use http://l4u.in
    It gives short domains rather than /something.
    It also gives me statistics of total clicks. Great short URL service to use.

    I suggest to this article’s author to add this link as url shorten in this article πŸ™‚
    Features:

    Visit http://l4u.in to create shortened/redirected URLs to any long URL.
    # AJAX interface;
    # Bulk URL shortening;
    # Password-protected URLs;
    # Temporary URLs;
    # Custom tags;
    # Custom tags for bulk URLs (automatically assigned tags like tag1, tag2, tag3 and so on);
    # Redirects statistic – referer domain, referer page, visitor’s IP (+ link to geographical information about each visitor), date;
    # URLs and hits statistics can be seen even without registration (IP-based authorization);
    # Registered users: edit/delete URLs;
    # Mass upload URLs from file;
    # Export links to CSV file;

  18. Reply Adrian December 28, 2009 at 11:42 AM

    Where’s cortito?
    http://github.com/akosma/cortito/
    BSD license, done in Ruby on Rails πŸ˜‰
    Enjoy!

  19. Reply Samin Shams January 6, 2010 at 2:21 PM

    http://ur1.ca/ is also open

  20. Reply Wahyu February 26, 2010 at 9:39 PM

    Kissa.be url shortener service is shutdown

  21. Reply endless beginning March 15, 2010 at 1:45 AM

    nice collection. I am going to adapt one. Can you please tell which one is the best overall?

  22. Reply Kawika April 20, 2010 at 7:13 PM

    Great list, thanks! I didn’t know there were so many URL shorteners to choose from.

  23. Reply Bid Directory May 20, 2010 at 4:28 AM

    Nice list and post. I was looking for a URL shortener script and I’m sure I can find one here.

    It looks like I’ll be trying phurl.

    Thanks for the informative post. Bookmarked!

  24. Reply Michel May 29, 2010 at 9:09 AM

    There is also the open-source php tool based on the symfony framework : http://xav.cc

    The source is available at https://opensource.lacot.org/xav.cc/svn/trunk/

  25. Reply web designer June 29, 2010 at 8:47 PM

    ehm.. which one of them that using ajax ?
    thanks

  26. Reply Akif July 13, 2010 at 8:58 AM

    Yeah! Thats Working. Thanks for this URL Shortener!

  27. Reply Alex July 29, 2010 at 3:25 AM

    @webdesigner: YOURLS used AJAX!

  28. Reply Francisco July 30, 2010 at 5:38 PM

    Excellent Scripts, I personally like the phpurl, it’s excellent.

    Thanks for this blog

  29. Reply Shayen August 11, 2010 at 9:40 AM

    I am going to install it at http://www.ho.pe / its a short and memorable domain name πŸ™‚

    thanks

  30. Reply Manim September 14, 2010 at 11:55 PM

    Hi Friend,

    I am looking the script for the following purpose.

    Is there any open source script to “Open multiple URLs” at once?

    Thanks in advance!
    Manim

  31. Reply SolY Mounir October 29, 2010 at 8:50 PM

    Thank you for that post , i`m searching for a script which make me wait 5 seconds in a page with Ads , and then redirects me to the destination , anybody knows which one is like this ?

  32. Reply Alyster November 1, 2010 at 5:29 PM

    With the popularity of Twitter and facebook, this is a good way to have your own shortening script on the website. I think I’ll try phurl.

  33. Reply nurussadad November 26, 2010 at 6:18 PM

    Thanks a lot.. I want to make a url shirtener service too πŸ˜€

  34. Reply Carl Williams December 21, 2010 at 2:34 AM

    I will definitely be using yourls starting asap. I was on a webinar a couple of weeks ago and heard about it but forgot the name. Thanks for providing information on it.

  35. Reply ger December 30, 2010 at 9:03 AM

    i tried PHPurl and i can’t login to the admin. some error on line 13. followed the readme step by step. garbage!

  36. Reply Derek Moore January 11, 2011 at 4:06 PM

    Awesome list (and comments) Thanks for posting it. I’m trying to figure out which software to use. Here is one for Drupal which looks promising:

    http://www.lullabot.com/articles/drupal-url-shortener

    Working Example:
    http://lb.cm

    My site shortened:
    http://lb.cm/iw

  37. Reply Ginva February 7, 2011 at 9:38 AM

    thank’s for the great list, i want to create my own url shortener.

  38. Reply Peter May 14, 2011 at 7:00 AM

    Thanks for post i’ll try phpURL πŸ™‚

  39. Reply jehzlau June 26, 2011 at 11:02 AM

    exactly what I’m looking for! πŸ˜€ gonna try them all and see which works best πŸ˜€

  40. Reply OCD July 11, 2011 at 4:46 AM

    YourLS is by far the best one freely available on the market. Very professional, well designed and FAST. Has all or most of the features I wanted including Plugin support and API. Good administration interface. The rest do not come close. If your going to spend time developing your code then this is a package to use.

    Installation was a breeze. Just like wordpress.

    Thanks to the writer ohz..@ http://yourls.org

  41. Reply Daniel July 12, 2011 at 1:09 PM

    Mini URLs is a relatively new url shortening script that is based on php and mysql. When you install it on your server and get it running, you can not only shorten urls, . You also get an API to work. A β€˜/stats/’ in any shortened url gets you its stats and number of page views. You can check out a demo, multi language, administrator page.

  42. Reply Clint July 29, 2011 at 10:34 AM

    Got YOURLS working in 10 minutes. Pretty good!

  43. Reply Eloktavian August 10, 2011 at 10:25 PM

    Thx you 4 sharing…. awesome all.
    Confused to choose one πŸ™

  44. Reply crivion September 10, 2011 at 6:20 AM

    I would add this great one http://scriptoggle.com/web-scripts/scripts/free-url-shortening-script. It’s simple, shiny and has an admin panel

  45. Reply Marvs September 26, 2011 at 6:51 PM

    Great share, will try some to see which one works best for me. πŸ™‚

  46. Reply Wanesa November 2, 2011 at 6:14 AM

    The YOURLS is really great. As simple to operate as it can be. The most important for me was the ability to edit very easily the links added previously. So if you for example sell something on Allegro (it’s a “Polish eBay”) continuosly, you may still promote your auctions with the same shorten-links all over the Internet (FB, e-mails, other social network pages, forums). And the only thing you do when your auction expires is a little change to a current auction URL in the script’s panel. And all the links everywhere are valid again! That’s exactly what you can achieve with mentioned script.
    Probably many others do the same, but I stick to YOURLS. And the stats… Simply great.

  47. Reply Hello Monster December 14, 2011 at 3:00 AM

    YOURLS is the only way to go, hands down. The api alone is worth it, but if you are using wordpress, the author, ozh, is a published legend. You couldn’t do better if you paid for it.

  48. Reply Yours January 23, 2012 at 6:35 AM

    Hi there,

    YEAH just what I was looking for to offer on my url shorten site. I will try this one with yourls.org and give you a notice if i succeed.

    Thanks a lot

  49. Reply kamal ashraf February 21, 2012 at 1:16 AM

    phurl is best, i like this very much as it support bookmark button in bookmark bar like like google bookmark.

  50. Reply Anthony May 14, 2012 at 12:48 PM

    I opted for YOURLS and wasn’t disappointed. This is what I created: http://yi.tl

    yi.tl is the first URL shortener to offer support for category tags. This unique service allows users to group related URLs and easily retrieve old links. To save time, the site will even make tag suggestions based on the URL being shortened.

  51. Reply Lenard February 11, 2014 at 11:49 PM

    I love looking through a post that will make people think. Also, thank you for permitting me to comment!

  52. Reply Regan February 12, 2014 at 12:01 AM

    If some one wants to be updated with latest technologies then he must be pay a quick visit this web site and be up to date all the time.

  53. Reply Cleta February 12, 2014 at 12:03 AM

    Hello colleagues, its impressive article regarding tutoringand entirely defined, keep it up all the time.

  54. Reply Janine February 14, 2014 at 8:33 AM

    Great beat ! I would like to apprentice while you amend your web site, how could i subscribe for a blog site? The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear idea

  55. Reply Gavin February 14, 2014 at 1:06 PM

    Nice post. I learn something new and challenging on sites I stumbleupon every day. It’s always interesting to read through articles from other authors and practice a little something from their sites.

  56. Reply Lily February 15, 2014 at 1:18 AM

    Good one particular! Love it! Thanks!

  57. Reply Antonetta February 15, 2014 at 3:53 AM

    I might see the ideal article writer employment service to get a lots of supreme details regarding this excellent theme generally if i were definitely you!

  58. Reply Sherrill February 15, 2014 at 9:24 AM

    Hi, the whole thing is going well here and ofcourse every one is sharing facts, that’s really excellent, keep up writing.

  59. Reply Dessie February 15, 2014 at 3:04 PM

    It’s awesome designed for me to have a web site, which is valuable designed for my knowledge. thanks admin

  60. Reply Damian February 15, 2014 at 8:04 PM

    Every weekend i used to pay a quick visit this web site, for the reason that i want enjoyment, for the reason that this this site conations actually nice funny stuff too.

  61. Reply Kareem February 15, 2014 at 11:00 PM

    naturally like your web site but you need to test the spelling on quite a few of your posts. A number of them are rife with spelling problems and I in finding it very bothersome to inform the truth then again I’ll certainly come back again.

  62. Reply Jacklyn February 15, 2014 at 11:07 PM

    This article is in fact a nice one it helps new internet viewers, who are wishing in favor of blogging.

  63. Reply Chas February 16, 2014 at 5:30 AM

    Thank you, I have recently been searching for information about this subject for a long time and yours is the greatest I’ve came upon so far. But, what concerning the bottom line? Are you positive about the supply?

  64. Reply Meredith February 17, 2014 at 10:08 AM

    Spot on with this write-up, I actually believe this website needs much more attention. I’ll probably be back again to read through more, thanks for the advice!

  65. Reply Charlie February 17, 2014 at 2:09 PM

    It’s an awesome post designed for all the web users; they will obtain advantage from it I am sure.

  66. Reply Minerva February 17, 2014 at 2:22 PM

    And of course, using this eye wrinkle cream on the area under your eyes for so long, you can’t remember when anti eye wrinkle cream reviews they first appeared? The best over the counter eye wrinkle cream which can help figure out and solve your problem.

  67. Reply Rich February 17, 2014 at 7:54 PM

    Wonderful beat ! I wish to apprentice at the same time as you amend your website, how could i subscribe for a weblog website? The account aided me a applicable deal. I have been tiny bit acquainted of this your broadcast offered brilliant clear concept

  68. Reply Georgina February 18, 2014 at 8:42 AM

    I am no longer sure where you are getting your information, however great topic. I must spend some time finding out much more or figuring out more. Thanks for excellent information I was searching for this information for my mission.

  69. Reply Arlen February 18, 2014 at 10:11 AM

    Howdy! I’m at work surfing around your blog from my new iphone 3gs! Just wanted to say I love reading through your blog and look forward to all your posts! Keep up the excellent work!

  70. Reply Jonnie February 18, 2014 at 10:28 AM

    It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I wish to suggest you some interesting things or suggestions. Perhaps you can write next articles referring to this article. I desire to read more things about it!

Leave a reply

Search