A simple, elegant QR code generator with a black and white interface. Generate QR codes from URLs with customizable appearance options.
- Clean Interface: Minimalist black and white design with automatic dark mode support
- URL Input: Generate QR codes for any URL
- Customizable Appearance:
- Adjustable size (128px - 512px)
- Error correction levels (Low, Medium, Quartile, High - up to 30%)
- Three QR code styles: Square, Dots, Rounded
- Independent corner square styles: Square, Dot, Extra Rounded
- Independent corner dot styles: Square, Dot
- Customizable foreground and background colors
- Auto-Generate: QR code updates automatically as you type or change options
- URL Persistence: Settings are saved in the URL hash for easy sharing
- Download: Save generated QR codes as PNG images
- Plain JavaScript: No framework dependencies, minimal external libraries
- Responsive: Works on desktop and mobile devices
- Enter a URL in the input field (must start with
http://orhttps://) - (Optional) Adjust size, style, error correction level, and colors
- The QR code auto-generates as you type and change settings
- Click "Generate QR Code" to manually regenerate, or "Clear" to reset
- Click "Download QR Code" to save the image
- Share the page URL with others to share your QR code settings
- Create a new repository on GitHub
- Upload the
index.htmlfile to the repository - Go to repository Settings → Pages
- Under "Source", select the branch (usually
main) and root folder - Click Save
- Your site will be available at
https://yourusername.github.io/repository-name/
# Initialize git repository
git init
# Add files
git add index.html README.md
# Commit
git commit -m "Initial commit: QR code generator"
# Add remote (replace with your repository URL)
git remote add origin https://github.com/yourusername/qr-code-gen.git
# Push to GitHub
git branch -M main
git push -u origin mainThen enable GitHub Pages in your repository settings as described in Option 1.
- QR Code Library: Uses qr-code-styling for advanced styling support
- No Build Process: Single HTML file with embedded CSS and JavaScript
- Browser Compatibility: Works in all modern browsers that support Canvas API and URLSearchParams
- URL Parameters: Settings are stored in URL hash (e.g.,
#url=...&size=256&style=dots)
- Square: Classic QR code with square modules (default)
- Dots: Modern circular dot pattern
- Rounded: Square modules with rounded corners
- Extra Rounded: More aggressive rounded corners for a smoother look
- Classy: Vertical lines with smooth curves
- Classy Rounded: Classy style with additional rounding
QR codes have three large position markers (finder patterns) in the corners. You can customize these separately:
- Corner Square: The outer square frame of the position markers
- Square, Dot, or Extra Rounded
- Corner Dot: The inner square/dot within each position marker
- Square or Dot
Mix and match main patterns with corner styles for unique designs!
- Low (7%): Can recover up to 7% of data
- Medium (15%): Can recover up to 15% of data (default)
- Quartile (25%): Can recover up to 25% of data
- High (30%): Can recover up to 30% of data
Higher error correction levels make the QR code more resilient to damage but increase its complexity.
Free to use and modify.