The Barcodes module provides a Field Formatter for various field types, a Block plugin, and a Twig Filter to display various field types as rendered Barcodes. Supports using tokens for barcode values.
Drush Commands are also provided to manually work with Barcodes from the command line.
To find out more about these features and how to use this module, please read the Barcodes module documentation.
Available barcode types
- CODE 128
- CODE 128 A
- CODE 128 B
- CODE 128 C
- CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
- CODE 39 + CHECKSUM
- CODE 39 EXTENDED
- CODE 39 EXTENDED + CHECKSUM
- CODE 93 - USS-93
- CODABAR
- CODE 11
- EAN 13
- EAN 2-Digits UPC-Based Extension
- EAN 5-Digits UPC-Based Extension
- EAN 8
- Interleaved 2 of 5
- Interleaved 2 of 5 + CHECKSUM
- IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200
- IMB - Intelligent Mail Barcode pre-processed
- KIX (Klant index - Customer index)
- 1D RAW MODE (comma-separated rows of 01 strings)
- MSI (Variation of Plessey code)
- MSI + CHECKSUM (modulo 11)
- PHARMACODE
- PHARMACODE TWO-TRACKS
- PLANET
- POSTNET
- RMS4CC (Royal Mail 4-state Customer Bar Code)
- Standard 2 of 5
- Standard 2 of 5 + CHECKSUM
- UPC-A
- UPC-E
- AZTEC Code (ISO/IEC 24778:2008)
- DATAMATRIX (ISO/IEC 16022)
- PDF417 (ISO/IEC 15438:2006)
- QR-CODE (ISO/IEC 23941)
- 2D RAW MODE (comma-separated rows of 01 strings)
Configuration
- Add a field of one of the types of email, integer, link, string, telephone, text, text_long or text_with_summary, bigint, uuid
- Choose Barcode as formatter
- Adjust the settings like type, color and dimensions to your liking
- Add a barcode block to your page and provide the value in the settings
Optional dependencies
- Composer manager (Drupal 7.x)
You may use composer manager module to manage external dependencies. - Token
You may use Token module, if you need token replacement functionality in your barcode data.
Dependencies
The Barcodes module integrates the tecnickcom/tc-lib-barcode PHP barcode library into Drupal. More information about this library may be found on that project page on GitHub.
- No further system dependencies, just PHP and Drupal
- No external service dependencies
- No special font dependencies
Similar projects
Unlike Barcodes, which supports 37 different barcode formats including QR code, the other modules in Drupal just support the QR code format and nothing else.
-
Endroid Qr Code (https://www.drupal.org/project/endroid_qr_code)
"The Endroid QR Code module enables to generate a QR Code image."
Uses the endroid/qr-code-bundle library. -
QR Code Fields (https://www.drupal.org/project/qrcode_fields)
"Enables site builders to easily generate dynamic QR codes and integrate them into their content types."
Calls a third-party web service for QR code generation. See https://goqr.me/ -
vCard QRCode Generator (https://www.drupal.org/project/vcard_qr)
"This module aims to generate a vCard as QRcode for contacts."
Uses the chillerlan/php-qrcode and sabre-io/vobject libraries. -
EasyQRCodeJS (https://www.drupal.org/project/easyqrcodejs)
"A render element for rendering a simple QR-code."
Uses the ushelp/EasyQRCodeJS library. -
Auto Short QR (https://www.drupal.org/project/autoshortqr)
Extends this module (Barcodes) by adding autocomputed short url and QR code fields to nodes and terms. -
Page URL QR Code Block (https://www.drupal.org/project/page_url_qr_code_block) (Drupal 7 only)
"This is a very tiny module just for displaying a block with QR Code of current Page URL."
Calls third-party web services to generate QR code images. Either http://qr.liantu.com/api.php or http://chart.apis.google.com/chart
Other unsupported or obsolete projects
-
Barcode (https://www.drupal.org/project/barcode)
The Barcode module provides a text field to generate barcode images. -
Google QR Code Generator (https://www.drupal.org/project/google_qr_code)
This project leverages the Google QR Code Generator from their charts API to display a block containing a QR code for the current URL. -
Mobile Codes (https://www.drupal.org/project/mobile_codes)
Provides the ability to render Text, URLs or any other form of informaton as a Mobile Code, including but not limited to the QR codes and Datamatrix formats. -
QR Codes (https://www.drupal.org/project/qr_codes)
This modules allows for the creation of two dimensional (2D) QR barcodes. -
QR-Code (https://www.drupal.org/project/qrcode)
Provides the ability to create and manage qrcodes.
🇺🇦 |
#StandWithUkraine Please consider supporting Ukraine in a fight for their freedom and safety of Europe. |
Logo icon by Solar Icons in CC Attribution License via SVG Repo
Project information
- Project categories: Content display, E-commerce, Site structure
931 sites report using this module
- Created by sanduhrs on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.

