


URL shorteners generate a random string, map the main URL to the shortcode and provide a new URL. The process of URL shortening is pretty simple. Also, it is difficult for users to mistype shorter links. Short links save a lot of space when exhibited as they are small and clear. It is not only useful with Twitter but also in any other situation where long links are unmanageable. To solve this problem, you use a URL shortener to lessen the link. Users are redirected to the primary URL when they click these short links.įor example, you may want to share a post and include a link to Twitter, but you face the characters limit. URL shortenerĪ URL shortener is a tool that takes a long and complex URL and compresses it to a short and clear link that is easier to share. Make sure you have WAMP or XAMPP servers installed on your computer. Have a text editor installed on your computer, preferably Visual Studio Code. Table of contentsĪ basic understanding of HTML, CSS, JavaScript, and PHP is needed. We will be building the API that shortens long links using JavaScript, PHP, and MySQL databases. In this tutorial, you will build a service that does this. With URL shorteners, you can shorten long URLs to make them easy to share. I am pretty sure that most of you have heard of bit.ly, goo.gl, and other URL shorteners. In this project, we are going to build a Uniform Resource Locator (URL) shortener service.
