A simple, elegant web application that converts URLs into QR codes instantly. Built with vanilla JavaScript, styled with Tailwind CSS, and hosted on GitHub Pages.
- ✨ Instant QR Code Generation - Convert any URL to a QR code in seconds
- 📱 Responsive Design - Works seamlessly on desktop, tablet, and mobile devices
- 💾 Download Functionality - Save generated QR codes as PNG images
- ✅ URL Validation - Ensures only valid URLs are processed
- 🎨 Modern UI - Clean, gradient-based design with smooth animations
- 🚀 Fast & Lightweight - No build process, pure vanilla JavaScript
Visit the live application: QR Code Generator
(Update the URL above after deploying to GitHub Pages)
- Enter a URL - Type or paste any valid URL (must start with
http://orhttps://) - Generate - Click the "Generate QR Code" button or press Enter
- Download - Click the "Download QR Code" button to save the image
- HTML5 - Semantic markup structure
- CSS3 - Custom styles and animations
- JavaScript (ES6+) - Application logic
- Tailwind CSS - Utility-first CSS framework (via CDN)
- QRCode.js - QR code generation library (via CDN)
To run this project locally:
- Clone the repository:
git clone https://github.com/your-username/qr-code-generator.git
cd qr-code-generator- Open
index.htmlin your web browser:
# On macOS
open index.html
# On Linux
xdg-open index.html
# On Windows
start index.htmlOr use a local development server:
# Using Python 3
python -m http.server 8000
# Using Node.js (http-server)
npx http-serverThen navigate to http://localhost:8000 in your browser.
qr-code-generator/
├── index.html # Main HTML file
├── app.js # JavaScript logic
├── style.css # Custom CSS styles
├── README.md # Project documentation
└── .gitignore # Git ignore rules
This project is configured for GitHub Pages deployment:
- Push your code to GitHub
- Go to repository Settings → Pages
- Select "Deploy from a branch"
- Choose
mainbranch and/ (root)folder - Click Save
Your site will be live at https://your-username.github.io/qr-code-generator
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
- QRCode.js - QR code generation library
- Tailwind CSS - CSS framework
- Icons from Heroicons
Created by [Your Name] - feel free to reach out!
Made with ❤️ using vanilla JavaScript