Design a tiny URL or URL shortener 8

Title: How to design a tiny URL or URL shortener? Source:

How to design a system that takes big URLs like “” and converts them into a short 6 character URL. It is given that URLs are stored in database and every URL has an associated integer id.

One important thing to note is, the long url should also be uniquely identifiable from short url. So we need a Bijective Function

Java solution

Design a tiny URL or URL shortener
Rate this post

8 thoughts on “Design a tiny URL or URL shortener

  1. Reply Apr 5,2016 7:42 pm

    Currently it sounds like Movable Type is the top blogging platform available right now.
    (from what I’ve read) Is that what you’re using on your blog?

    • Reply Anupam Jain Apr 10,2016 9:28 am

      we are not sure what you mean by “Movable Type” platform? Could you please be a little bit more elaborate?

  2. Reply escort antalya Nov 16,2016 2:38 pm

    Hey there this is somewhat of off topic but I was wondering if
    blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding skills so I wanted to get
    guidance from someone with experience. Any
    help would be greatly appreciated!

    • Reply Anupam Jain Jul 4,2017 12:56 pm


      Yes blogs do use WYSIWYG editors. All popular ones, namely: Blogspot, WordPress etc. have such editors.


  3. Reply writing thesis statements college Jul 7,2018 1:29 am

    After exploring a few of the articles on your web page, I honestly appreciate your way
    of blogging. I added it to my bookmark webpage list and will be checking back in the near future.

    Please visit my web site too and tell me what you think.

  4. Reply moz Sep 30,2018 5:52 am

    This article will assist the internet users for setting up new
    weblog or even a blog from start to end.

  5. Reply Oct 20,2018 3:44 pm

    It’s really a nice and helpful piece of info.
    I am satisfied that you simply shared this useful information with us.

    Please stay us informed like this. Thanks for sharing.

Leave a Reply