Overview
Dub automatically generates QR codes for every short link you create. Customize them with your brand colors, logos, and export in multiple formats. Track scans separately from regular link clicks with detailed analytics.Accessing QR Codes
From the Dashboard
Press Q to quickly open the QR code modal when viewing a link.
Via API
Generate QR codes programmatically:Customization Options
QR Code Color
Customize the foreground color of your QR code:- Dashboard
- API
- Open the QR code modal
- Click on the color picker or preset colors
- Enter a custom hex color code
- Preview updates in real-time
#000000- Black (default)#C73E33- Red#DF6547- Orange#F4B3D7- Pink#F6CF54- Yellow#49A065- Green#2146B7- Blue#AE49BF- Purple
Background Color
Set a custom background color:Logo Customization
Add your brand logo to the center of the QR code:- Dashboard
- API
- Open the QR code modal
- Toggle the “Logo” switch
- The logo from your domain or workspace settings is used
- On Free plans, the Dub logo is shown
Custom logos and logo hiding are available on Pro plans and above. Free plans always show the Dub logo.
Size Configuration
Generate QR codes in different sizes:For print materials, use sizes of 1000px or larger for optimal quality.
Error Correction Level
Set the QR code error correction level:L- Low (~7% correction) - Default, best for clean environmentsM- Medium (~15% correction)Q- Quartile (~25% correction)H- High (~30% correction) - Best when logo is displayed or printing quality varies
Margin Control
Adjust the margin around the QR code:Export Formats
SVG Export
Export as scalable vector graphics:- Dashboard
- API
- Open QR code modal
- Click the download icon
- Select “Download SVG”
- File downloads as
{key}-qrcode.svg
SVG is ideal for print materials as it scales infinitely without quality loss.
PNG Export
Export as PNG for web and digital use:- Dashboard
- API
- Open QR code modal
- Click download icon
- Select “Download PNG”
JPEG Export
Export as JPEG:- Dashboard
- API
Click download icon → “Download JPEG”
Copy to Clipboard
Quickly copy QR codes:Copy Image
- Open QR code modal
- Click the copy icon
- Select “Copy Image”
- Paste directly into documents, emails, or design tools
Copy URL
Get a direct URL to the QR code:- Open QR code modal
- Click copy icon
- Select “Copy URL”
- URL format:
https://api.dub.co/qr?url={shortLink}
QR Code Analytics
Tracking Scans
QR code scans are automatically tracked separately:The
trigger field distinguishes QR code scans (qr) from regular link clicks (link).Scan Locations
Track where QR codes are being scanned:Use Cases
Print Materials
Add QR codes to business cards, flyers, posters, and product packaging
Event Check-ins
Use QR codes for event registration and attendee tracking
Product Labels
Link to product information, manuals, or support resources
Restaurant Menus
Create contactless digital menus with trackable QR codes
Retail Displays
Drive online traffic from in-store displays and signage
Marketing Campaigns
Track offline marketing effectiveness with QR scan analytics
Advanced Features
Dynamic QR Codes
All Dub QR codes are dynamic - update the destination URL without changing the QR code:This is a huge advantage over static QR codes - fix mistakes or update campaigns without reprinting.
Batch QR Code Generation
Generate QR codes for multiple links:Design Consistency
QR codes automatically use:- Domain Logo: If your domain has a logo configured
- Workspace Logo: Falls back to workspace logo
- Dub Logo: Default for free plans
Best Practices
Use High Contrast
Dark QR codes on light backgrounds scan best - avoid light colors
Test Before Printing
Always test QR codes with multiple devices before mass printing
Size Appropriately
Minimum 2cm × 2cm for printed codes, larger for distant scanning
Include Instructions
Add “Scan to visit” or similar text near QR codes for clarity
Use Error Correction
Use level H for printed materials with logos or potential damage
Monitor Performance
Track scan analytics to optimize placement and design