Skip to content
Generates QR Codes from text strings and byte arrays.
Pascal Python PHP
Branch: master
Clone or download
Latest commit f6002de Feb 13, 2020
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE add issues template. Oct 16, 2018
QRCodeGenLib.Demo minor cleanup Feb 11, 2020
.gitignore first code commit. Oct 11, 2018 update travis url Aug 25, 2019
.travis.yml fix README and travis. Oct 12, 2018
LICENSE update license year Feb 17, 2019 Merge Experimental FMX Support to Master Repository. (#1) Nov 19, 2018

QRCodeGenLib4Pascal License

QRCodeGenLib4Pascal is a Delphi/FPC Port of Fast-QR-Code-generator written by Nayuki. It provides an easy to use interface for generating QR Codes.

Build Status Build Status


Core features:

  • Supports encoding all 40 versions (sizes) and all 4 error correction levels, as per the QR Code Model 2 standard
  • Output formats: Raw modules/pixels of the QR symbol, SVG XML string/file, ImageObject(bmp (jpg and png) for VCL and LCL only).
  • Encodes numeric and special-alphanumeric text in less space than general text
  • Ability to change the backgound and foreground colors of the generated QRCode.
  • Open source code under the permissive MIT License

Manual parameters:

  • User can specify minimum and maximum version numbers allowed, then library will automatically choose smallest version in the range that fits the data
  • User can specify mask pattern manually, otherwise library will automatically evaluate all 8 masks and select the optimal one
  • User can specify absolute error correction level, or allow the library to boost it if it doesn't increase the version number
  • User can create a list of data segments manually and add ECI segments

Supported Compilers

FreePascal 3.0.0 and Above.

Delphi XE3 and Above.

Supported Visual Frameworks

LCL Framework (Lazarus)

VCL Framework (Delphi)

FMX (Support is currently experimental, to use, enable the define "{.$DEFINE Framework_FMX}" in "").

Installing the Library.

Method One:

Use the Provided Packages in the "Packages" Folder.

Method Two:

Add the Library Path and Sub Path to your Project Search Path.


Check out the QRCodeGenLib.Demo folder.


This "Software" is Licensed Under MIT License (MIT) .

Tip Jar

  • 💵 Bitcoin: 1MhFfW7tDuEHQSgie65uJcAfJgCNchGeKf
  • 💶 Ethereum: 0x6c1DC21aeC49A822A4f1E3bf07c623C2C1978a98
  • 💷 Pascalcoin: 345367-40
You can’t perform that action at this time.