Making a URL Shortener

How I made a URL shortener, and how you can too!

Making a URL Shortener

Recently, I've been making projects, trying to fill up my portfolio. One project I really wanted to make was a URL shortener.

Honestly, I thought it would be a lot harder. But I was able to break it down into a few easy steps:

  1. Allow user to submit a URL
  2. Create a unique identifier for the URL
  3. Save that identifier and URL to a database
  4. Show the user their new, shortened URL with the identifier.
  5. Redirect user if they go to the new URL, by getting the URL from the database.

That might not have been the best explanation, but you can check out mine here.


If you found this article helpful, please subscribe (it's free!) and share my blog with others.