live preview https://piyushkadam96k.github.io/qr-code/
Generate beautiful QR codes with style and flair!
- Generate multiple types of QR codes:
- URLs 🔗
- Plain Text 📝
- WiFi Details 📶
- Contact Cards (vCard) 👤
- Email Links 📧
- SMS Messages 📱
- Locations 📍
- Stylish module shapes:
- Square ⬛
- Rounded ⭕
- Circle 🔴
- Star ⭐
- Diamond 💠
- Heart ❤️
- Hexagon 🔷
- Dots 👾
- Optional center logo embedding 🖼️
- Clean web interface 🎨
- API support (
/api/qr) 🚀
- Python 3.8+ 🐍
- Windows OS 🪟
Recommended: Create a virtual environment first!
PowerShell:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install --upgrade pip
pip install flask qrcode[pil] pillowCMD:
python -m venv .venv
.\.venv\Scripts\activate
pip install --upgrade pip
pip install flask qrcode[pil] pillowFrom project root:
python app.pyThen visit: http://127.0.0.1:5000 🌐
- Use the web interface to customize your QR code ✨
- Choose type, style, size and optional logo 🎨
- Clean interface with no default URLs 🧹
curl -X POST http://127.0.0.1:5000/api/qr \
-F "qr_type=url" \
-F "text=https://example.com" \
-F "style=rounded" \
-F "box_size=10" \
-F "border=4" \
-F "ecc=M"Response: JSON with img_data (base64 PNG) and mime 📦
- MAX upload: 16MB in
app.py📤 - SECRET_KEY: Set via environment variable 🔑
- Missing packages? Run
pip install flask qrcode[pil] pillow📦 - Upload errors? Check
MAX_CONTENT_LENGTH🔧 - Scanner issues? Try 'square' style for best results 🎯
Edit templates/index.html to modify placeholders and remove any hardcoded URLs 🖌️
MIT License - Feel free to modify and share! ⚖️
Made with ❤️ using Flask and Python 🐍