A sleek, modern URL shortener web application built with Flask and HTML/CSS. Convert long URLs into short, shareable links in seconds!
- ⚡ Instant URL Shortening - Generate short codes in milliseconds
- 🎨 Beautiful UI - Modern gradient design with smooth animations
- 📋 One-Click Copy - Copy shortened URLs to clipboard instantly
- 🔄 Duplicate Detection - Returns existing short code if URL already shortened
- 💾 Persistent Storage - All links saved in
urls.jsonfor future use - 🚀 Zero Dependencies - Only Flask required for the backend
- 📱 Fully Responsive - Works seamlessly on desktop and mobile devices
- ⌨️ Keyboard Friendly - Press Enter to shorten URLs quickly
- ⏰ Time Period - Each link lasts only 12 hours
- Python 3.8 or higher
- pip (Python package manager)
-
Clone or download the project:
cd "Shorty-link shortner"
-
Install Flask:
pip install flask
-
Run the application:
python app.py
-
Open your browser: Navigate to
http://localhost:5000
- Enter a URL - Paste your long URL into the input field
- Click Shorten - Press the "Shorten" button (or hit Enter)
- Copy Link - Click the "Copy" button to copy the shortened URL
- Share - Distribute your short link anywhere!
- Original:
https://www.example.com/very/long/url/path/that/goes/on/and/on - Shortened:
http://localhost:5000/aB3xYz
| Issue | Solution |
|---|---|
| Port 5000 already in use | Change port in app.py or stop the conflicting app |
| Module not found error | Run pip install flask |
| URLs not persisting | Ensure urls.json has write permissions |
Happy link shortening! 🚀