URL Shortener Using PHP with Source Code


In the vast landscape of the internet, long and complex URLs can be cumbersome and difficult to share. That's where a URL shortener comes to the rescue. This project, "URL Shortener Using PHP," offers a simple yet powerful solution to shorten those lengthy web addresses and make them more user-friendly.

The "URL Shortener Using PHP" project is designed to provide a seamless and efficient way to shorten URLs, making them easier to share and manage. With this web application, you can quickly generate short, customized links for your long URLs, helping you save space, track link usage, and create a more pleasant user experience.

You may also check some PHP projects that uses CRUD:

Why Use a URL Shortener?

URL shorteners are invaluable tools for simplifying and managing your web links. They are particularly useful for social media sharing, email communication, and optimizing user experience. With the "URL Shortener Using PHP," you can take full advantage of these benefits.

Experience the convenience and efficiency of URL shortening with our project. Get started today and make your long URLs more accessible!

Key Features

  1. Shorten URLs
    • Generate concise and custom short URLs for your long web addresses. This project allows you to create memorable and manageable links that are perfect for sharing on social media, in emails, or anywhere you need a more compact URL.
  2. Edit Short URLs
    • Need to make changes to a short URL? No problem. This project also provides the functionality to edit your custom short URLs, giving you full control over your links.
  3. Copy to Clipboard
    • Copying a short URL has never been easier. With a single click, you can copy your custom short URL to the clipboard, making sharing and pasting effortless.
  4. User-Friendly Interface
    • The project features a clean and intuitive user interface that makes URL shortening and management a breeze. It also incorporates responsive design principles to ensure a seamless experience on various devices.

Sample Screenshots of the Project:

URL Shortener Landing Page


Display URLs (table form)

Copy URL

Edit URL

Delete URL

How To Run?

  • Download and Install XAMPP.
  • Download the provided source code zip file.

Note: The database is included on the provided zip file.


  • Transfer the provided source code to the htdocs folder.
  • Create a database named "url_shortener_db" in phpMyAdmin MySQL.
  • Import the provided SQL file into the created database.


In conclusion, the "URL Shortener Using PHP" project offers a practical solution for managing and simplifying long web addresses. By providing a user-friendly interface and a range of useful features, this project empowers users to create custom short URLs that are easier to share and manage.

This project also embraces responsive design principles, ensuring a seamless experience across various devices, making it accessible and convenient for users on the go.

The "URL Shortener Using PHP" project simplifies the complexities of managing web links, making the internet a more user-friendly and efficient space. Start using this tool today and experience the benefits of URL shortening for yourself. Say goodbye to unwieldy URLs and hello to compact, manageable web links.

That's it! I hope this "URL Shortener Using PHP" will assist you on your programming journey, providing value to your current and upcoming PHP projects.

For additional tutorials and free source code, explore our websites.  

Enjoooy :>>

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment