AIMCP Server and Agent Skills included

React Barcode Generator, now easier to build with AI

Generate Code 128, Code 39, Code 93, Codabar, EAN, UPC, and GS1 barcodes, along with QR code, Data Matrix, and PDF417 symbologies. Customize the display text, colors, size, and logo, and export the result as an image. AI assistants set it up for you from the current docs.

  • 260K+npm downloads
  • 4.5/5850+ G2 reviews
  • 4.6/5950+ Capterra reviews
  • 1D and 2Dsymbologies
  • QR codeswith logos

Trusted by the world’s leading companies

Syncfusion customers include Visa, Apple, McDonald’s, Netflix, Starbucks, IBM, Tesla, and Schneider Electric

Now easier with AI

Build barcodes faster with AI

Coding assistants write the Barcode Generator setup from the current docs instead of guessing.

01For developers

Describe a label and get code that uses the documented API

The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Barcode Generator docs and recommended patterns.

See all 31 features

AI coding assistantMCP · Syncfusion React

Generate a Code 128 barcode for the order number.

search_docs“React Barcode linear barcodes” · 2 doc sections

+<BarcodeGeneratorComponent type="Code128"

+ value="ORDER-2048"

+ width={"240px"} height={"90px"} />

Documented API: type, value

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Show an EAN-13 barcode on the product label.

search_docs“React Barcode retail codes: ean and upc” · 2 doc sections

+<BarcodeGeneratorComponent type="Ean13"

+ value="4006381333931"

+ width={"220px"} height={"100px"} />

Documented API: type, value

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Add a QR code that links to the tracking page with our logo in the center.

search_docs“React Barcode qr codes with a logo” · 2 doc sections

+<QRCodeGeneratorComponent

+ value="https://example.com/track/2048"

+ width={"160px"} height={"160px"} errorCorrectionLevel={30}

+ logo={{ imageSource: '/logo.png' }} />

Documented API: QRCodeGeneratorComponent, logo, errorCorrectionLevel

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Print a Data Matrix code with the parcel number.

search_docs“React Barcode data matrix codes” · 2 doc sections

+<DataMatrixGeneratorComponent value="PART-77310"

+ width={"120px"} height={"120px"} />

Documented API: DataMatrixGeneratorComponent, value

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Show "Order 2048" above the barcode, aligned left.

search_docs“React Barcode display text” · 2 doc sections

+<BarcodeGeneratorComponent type="Code39"

+ value="ORDER2048"

+ displayText={{ text: 'Order 2048', position: 'Top', alignment: 'Left' }} />

Documented API: displayText, position, alignment

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Make the bars dark indigo on white, 300 pixels wide.

search_docs“React Barcode colors and size” · 2 doc sections

+<BarcodeGeneratorComponent type="Code93"

+ value="01234567"

+ foreColor="#312e81" backgroundColor="#ffffff"

+ width={"300px"} height={"120px"} />

Documented API: foreColor, backgroundColor, width, height

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Add a button that downloads the barcode as a PNG.

search_docs“React Barcode export to images” · 2 doc sections

+<BarcodeGeneratorComponent ref={barcode} type="Code128"

+ value="ORDER-2048" />

<button

onClick={() => barcode.current?.exportImage('label', 'PNG')}>Download</button>

const base64 = await

barcode.current?.exportAsBase64Image('PNG');

Documented API: exportImage, exportAsBase64Image

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Encode the boarding pass details in a PDF417 code with three data columns.

search_docs“React Barcode pdf417 stacked codes” · 2 doc sections

+<PDF417GeneratorComponent value="BP-2048 LHR-JFK 14C"

+ columns={3}

+ width={"320px"} height={"120px"} />

Documented API: PDF417GeneratorComponent, value, columns

ResultRendered in your app

Features in depth

React Barcode features in depth

Open a demo to try each one, or the docs to see the API.

Code 128, Code 39, and Code 93 barcodes

Code 128 with sets A, B, and C encodes full ASCII at high density. Code 39, Code 39 Extended, Code 93, and Code 93 Extended suit badges, inventory, and industrial labels.

Retail barcodes: EAN-8, EAN-13, UPC-A, and UPC-E

Generate the numeric product codes used in retail. A UPC-A symbol holds 11 data digits and one check digit, and EAN-8, EAN-13, and UPC-E have their own demos.

Codabar, Code 11, and Code 32

Codabar serves libraries, blood banks, and package delivery. Code 11 labels telecommunications equipment, and Code 32 encodes Italian Pharmacode with an automatic check digit.

GS1 barcodes

Generate GS1-compliant barcodes such as GS1 DataMatrix, GS1 QR code, and GS1-128 with application identifiers, so supply chain, healthcare, and retail labels follow the GS1 standard.

QR codes with logos and error correction

Encode numeric, alphanumeric, and Shift JIS data in a QR code. Embed a logo at the center and increase the error correction level so the code stays readable.

Data Matrix and PDF417 codes

Draw square or rectangular Data Matrix codes for printed media, and stacked PDF417 codes for ID cards, boarding passes, and shipping labels.

Display text, colors, and size

Show the value or custom text at the top or bottom, aligned left, center, or right. Customize the bar and background colors, size, and margin to match your design.

Export as images or Base64 strings

Download a barcode, QR code, or Data Matrix code as a PNG or JPG file, or get the image as a Base64 string for storing or printing.

SVG or canvas rendering without fonts

Codes render as SVG by default or on a canvas, need no barcode fonts, and are optimized for printing and on-screen scanning.

Get started

Get your first barcode generator running, with or without AI

With an AI coding assistant

  1. Connect the Syncfusion MCP serverWorks in VS Code, Cursor, JetBrains, and other MCP-compatible assistants.Set up the MCP server
  2. Add Agent Skills to your projectYour agent follows Syncfusion’s recommended Barcode patterns.Install Agent Skills
  3. Describe the barcode generatorCopy this prompt to start.

    Add the Syncfusion React Barcode Generator to my shipping label with a Code 128 barcode for the order number and a QR code for the tracking link.

By hand, in three steps

1 · Install

npm install @syncfusion/ej2-react-barcode-generator --save

2 · Colors

<BarcodeGeneratorComponent foreColor="#111827" backgroundColor="#ffffff" />

3 · src/App.tsx

import { BarcodeGeneratorComponent } from '@syncfusion/ej2-react-barcode-generator';

export default function App() {
  return (
    <BarcodeGeneratorComponent type="Code128" value="SYNCFUSION-128" width={"240px"} height={"90px"} />
  );
}
Read the getting started guide

Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements

Customer reviews

Trusted by developers and teams

G2

4.5/5

From 850+ reviews of Essential Studio®

Read the reviews on G2

“Awesome, enough said”

Easy usability, solving real-life problems, easy to implement. Most of the cases have the operators and settings possibilities you need right away.

Oliver O.Creative and Art Direction, Small Business

“A giant framework with great pricing options”

I have loved the components and options that Syncfusion has; besides, its documentation, demos, and support are excellent.

Alejandro Javier V.CEO, Small Business
75%
lower costs
50%
faster development

Customer story · Igniatek

Igniatek cuts development time 50% and costs 75% with Essential Studio®

“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”

Somnath Maji, Founder, Igniatek Consultancy

Award-winning

Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.

Recent industry awards won by Syncfusion

Complete feature list

Every barcode generator feature, included in the license

  • Every feature includedNo separate enterprise edition
  • Royalty-freeNo runtime or deployment fees
  • Weekly patchesPlus regular feature releases
  • Expert supportFrom Syncfusion engineers

Related data visualization components:React ChartsReact Stock ChartReact HeatMapReact Circular Gauge

Questions and answers

React Barcode FAQ

What is the React Barcode Generator?

The Syncfusion React Barcode Generator draws industry-standard 1D and 2D codes, such as Code 128, EAN-13, QR codes, and Data Matrix codes, from a text value. Explore the demos

Which barcode types are supported?

Linear types are Code 128 (A, B, and C), Code 39, Code 39 Extended, Code 93, Code 93 Extended, Code 32, Code 11, Codabar, EAN-8, EAN-13, UPC-A, UPC-E. Two-dimensional types are QR codes, Data Matrix, and PDF417. GS1 barcodes, including GS1-128, GS1 DataMatrix, and GS1 QR code, are also supported. Read about the barcode types

How do I add a barcode in React?

Install @syncfusion/ej2-react-barcode-generator and render BarcodeGeneratorComponent with a type, a value, and a width and height. Read the getting started guide

How do I generate a QR code?

Render QRCodeGeneratorComponent with the value to encode, such as a URL. Add a logo at the center and raise the error correction level for readability. QR code demo

When should I use a Data Matrix code instead of a QR code?

Both are 2D codes. Data Matrix codes are common with couriers and in the food industry, while QR codes usually carry URLs, business cards, and contact details. Data Matrix demo

Can I hide or change the text under a barcode?

Yes. displayText sets the text, its visibility, its position above or below, and its alignment. Read about customizing the text

Can I change the colors and size?

Yes. foreColor and backgroundColor set the colors, and width, height, and margin set the size. Read about customization

Can I save a barcode as an image?

Yes. exportImage downloads it as PNG or JPG, and exportAsBase64Image returns a Base64 string you can store or send. Read about export

Does the barcode generator need special fonts?

No. Codes render as SVG by default, or on a canvas with mode, and are optimized for printing and on-screen scanning. Read the getting started guide

Can I generate PDF417 codes for ID cards and boarding passes?

Yes. PDF417GeneratorComponent draws stacked PDF417 codes with automatic compaction, error correction, and row and column layout. Read about PDF417

Can AI coding assistants build with the React Barcode Generator?

Yes. The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Barcode Generator docs and recommended patterns. You need a Syncfusion API key and an active license, which can be a commercial, Community, or trial license. Set up the MCP server

Is the Syncfusion React Barcode Generator free?

It is a commercial component with a 30-day free trial. A free Community License is available for companies and individuals with less than $1 million USD in annual gross revenue, five or fewer developers, and 10 or fewer total employees. Check Community License eligibility

Syncfusion React Barcode

Build your React barcodes faster with AI

The full Barcode Generator, the MCP server, and Agent Skills, free for 30 days.

  • No credit card required
  • Free Community License for eligible teams
  • No runtime or deployment fees