Skip to content
Deadpool2000Public

About

Free open-source QR code generator (offline desktop GUI in Python & PyQt6). Create high-resolution QR codes with custom sizes, colors, and filenames—export cleanly to PNG, JPG, or WEBP without tracking or internet access.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

QRForge

A free, open-source, offline desktop and web QR code generator. Create crisp, high-resolution QR codes with live previews, custom dimensions, and instant export to PNG, JPG, or WEBP.

QRForge - Free Open-Source Offline QR Code Generator


Features

  • 6 QR Code Types:
    • URL: Validates web links and automatically prepends https:// when omitted.
    • Contact (vCard 3.0): Supports First name (required), Last name, Prefix, Organization, Job title, Email, Phone, Mobile phone, Fax, Street, City, Region, Postcode, Country, and multiple dynamic URL/Website/Social entries (+ Add URL), with a live contact badge preview.
    • Social: Quick platform presets for Facebook, YouTube, Instagram, WhatsApp, X (Twitter), LinkedIn, Snapchat, TikTok, and Spotify (accepts either full URLs or handles).
    • Plain Text: Multi-line text editor with live character count.
    • Phone: Encodes direct-dial tel: QR codes with international format support.
    • Custom: Supports raw custom strings/URIs as well as structured templates for Wi-Fi, Email (mailto:), SMS (SMSTO:), and Geo Coordinates (geo:).
  • Customization & Export:
    • Live QR code preview that updates as you type.
    • Preset resolutions (256×256, 512×512, 1024×1024, 2048×2048 px) or any custom size from 128 to 4096 px.
    • Output formats: PNG (.png), JPG (.jpg), and WEBP (.webp).
    • Custom foreground/background colors, quiet-zone margin (0–12 modules), and Reed-Solomon error correction levels (L, M, Q, H).
    • Saves to the Output/ folder by default with custom file names, auto-name suggestions, and collision-safe auto-numbering (with optional overwrite).

Prerequisites

  • Python 3.10 or higher
  • Dependencies listed in requirements.txt:
    • PyQt6>=6.5.0
    • qrcode>=7.4
    • Pillow>=10.0.0

Setup & Installation

  1. Clone or open the repository:

    git clone https://github.com/Deadpool2000/QRForge.git
    cd QRForge
  2. Create and activate a virtual environment (recommended):

    On Linux / macOS:

    python3 -m venv .venv
    source .venv/bin/activate

    On Windows:

    python -m venv .venv
    .venv\Scripts\activate
  3. Install dependencies from requirements.txt:

    pip install -r requirements.txt

How to Run

Launch the GUI application with:

python3 main.py

Alternatively, run it as a Python module:

PYTHONPATH=src python3 -m qr_generator

(On Windows PowerShell, use $env:PYTHONPATH="src"; python -m qr_generator.)


Usage

  1. Select a QR category from the top bar (URL, Contact, Social, Plain Text, Phone, or Custom).
  2. Fill in the content fields and check the live preview on the right.
  3. Choose your desired Size Preset or enter a Custom Size (px), select Image Format (PNG, JPG, or WEBP), and optionally adjust Error Correction, QR Color, Background, or Margin.
  4. Enter a Custom File Name (or click Auto to generate one from the content).
  5. Click Generate & Save QR Code. The image is saved inside the Output/ folder (or a custom folder selected via Browse).

Running Tests

Run the unit and offscreen PyQt6 UI test suite:

PYTHONPATH=src QT_QPA_PLATFORM=offscreen python3 -m unittest discover -s tests -v

Web Version

Access QRForge directly in your browser on desktop, tablet, or mobile - everything runs locally in your browser with no signup or server uploads:

  • Online: Open qrforge-zeta.vercel.app
  • Offline / Local: Open index.html directly in any modern browser from anywhere (works offline as well).

Author

About

Free open-source QR code generator (offline desktop GUI in Python & PyQt6). Create high-resolution QR codes with custom sizes, colors, and filenames—export cleanly to PNG, JPG, or WEBP without tracking or internet access.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages