Skip to main content
net9.0net9.0-android35.0net9.0-ios18.0net9.0-maccatalyst18.0net9.0-windows10.0.19041net10.0

This package provides the functionality to utilize the features of Syncfusion® Maui Barcode controls and more.

Published
Oct 20, 2026
yesterday
Total Downloads
175.7K
175,693

Install

dotnet add package Syncfusion.Maui.Barcode --version 35.1.41
ProductVersions
.NET
net10.0net10.0-android36.0net10.0-ios26.0net10.0-maccatalyst26.0net10.0-windows10.0.19041net9.0net9.0-android35.0net9.0-ios18.0net9.0-maccatalyst18.0net9.0-windows10.0.19041

README

Syncfusion .NET MAUI Barcode Generator (SfBarcodeGenerator)

The Syncfusion .NET MAUI Barcode Generator is a comprehensive barcode generation component for creating and displaying machine-readable barcodes. Build rich, interactive barcode applications for Android, iOS, macOS, and Windows from a single codebase. Supporting 14 symbologies—8 linear and 6 matrix types—you can encode any data with customizable styling and export capabilities.

Documentation · Getting Started · API Reference · Demos on GitHub · Product Page · Release Notes

Key features

Barcode Symbologies (14 Total)

  • Linear (8): Code128, Code39, Code93, Codabar, EAN13, EAN8, UPC-A, UPC-E
  • Matrix (6): QRCode, DataMatrix, PDF417, Aztec, Micro QR, MaxiCode

Data encoding and customization

  • Encode any text data into machine-readable format
  • Automatic data validation and error handling
  • Customizable bar width, height, and colors
  • Display optional text labels below barcodes
  • Full control over appearance and styling

Interaction

  • Tap to copy: Copy barcode data to clipboard
  • Export support: Save barcodes as PNG/JPG images
  • Real-time updates: Dynamic value changes with smooth transitions
  • Multi-symbology support: Easy switching between barcode types

Performance

  • Optimized rendering for fast barcode generation
  • Efficient encoding algorithms
  • Responsive handling of large batch operations
  • Hardware-accelerated image export

More

  • Export to Image: Export barcodes as PNG/JPG files with customizable quality
  • Right-to-left (RTL) support and localization
  • Accessibility support for inclusive applications
  • Error detection and correction for matrix codes (QR, DataMatrix, etc.)

Supported platforms

Platform Target framework
Android net9.0-android, net10.0-android
iOS net9.0-ios, net10.0-ios
macOS (Mac Catalyst) net9.0-maccatalyst, net10.0-maccatalyst
Windows net9.0-windows10.0.19041, net10.0-windows10.0.19041

Minimum OS versions follow the .NET MAUI supported platforms.

Installation

.NET CLI

dotnet add package Syncfusion.Maui.Barcode

Package Manager Console

Install-Package Syncfusion.Maui.Barcode

Getting started

1. Register the Syncfusion core handler

In MauiProgram.cs, call ConfigureSyncfusionCore():

using Syncfusion.Maui.Core.Hosting;

public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .ConfigureSyncfusionCore();

        return builder.Build();
    }
}

2. Create a model and a ViewModel

using System.Collections.ObjectModel;

public class BarcodeData
{
    public string Value { get; set; }
    public string Symbology { get; set; }
}

public class BarcodeViewModel
{
    public string BarcodeValue { get; set; }
    public ObservableCollection<string> AvailableSymbologies { get; set; }

    public BarcodeViewModel()
    {
        BarcodeValue = "123456789";
        AvailableSymbologies = new ObservableCollection<string>
        {
            "Code128", "QRCode", "DataMatrix", "Code39"
        };
    }
}

3. Add SfBarcodeGenerator to your page

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:syncfusion="clr-namespace:Syncfusion.Maui.Barcode;assembly=Syncfusion.Maui.Barcode"
             xmlns:local="clr-namespace:YourAppNamespace"
             x:Class="YourAppNamespace.MainPage">

    <ContentPage.BindingContext>
        <local:BarcodeViewModel />
    </ContentPage.BindingContext>

    <VerticalStackLayout Padding="20" Spacing="10">
        <syncfusion:SfBarcodeGenerator Value="{Binding BarcodeValue}"
                                        Symbology="Code128"
                                        HeightRequest="150" />
    </VerticalStackLayout>

</ContentPage>

Run the app to see your barcode in action. For more features and detailed examples, see the Barcode documentation.

Barcode Symbology Reference

Linear Barcodes (1D)

Symbology Use Case Character Set Example
Code128 General purpose, variable length Numeric, ASCII Shipping labels, invoices
Code39 Industrial, alphanumeric 0-9, A-Z, symbols Inventory tracking
Code93 Improved Code39 0-9, A-Z, symbols Document control
Codabar Library, medical, retail 0-9, dash, dollar, colon Blood bank labels
EAN13 Retail products (13-digit) Numeric only Product barcodes
EAN8 Retail products (8-digit) Numeric only Small product codes
UPC-A US retail products (12-digit) Numeric only US product identification
UPC-E Compressed UPC-A (6-digit) Numeric only Compact product codes

Matrix Barcodes (2D)

Symbology Capacity Error Correction Use Case
QRCode High capacity Yes (4 levels) URLs, contact info, mobile payments
DataMatrix Medium capacity Yes Small labels, circuit boards, marking
PDF417 Very high capacity Yes ID cards, airline boarding, documents
Aztec High capacity Yes Tickets, documents, transit
Micro QR Small data Yes Component marking, labels
MaxiCode Very high capacity Yes USPS shipping labels

Dependencies

Installing this package also installs the following packages:

  • Microsoft.Maui.Controls
  • Syncfusion.Maui.Core

System Requirements

Using this package with an AI coding agent

Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:

Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com, then report the detected platform, installed skill pack, MCP status, and any required licensing action.

The setup detects your project's platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.

Platform reference: https://ai.syncfusion.com/maui/llms.txt

Support and feedback

License

This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a license here or start a free 30-day trial here.

About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 26,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1600+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (.NET MAUI, Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI, Flutter and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.


[email protected] | www.syncfusion.com | Toll Free: 1-888-9 DOTNET

Changes from Previous Version

No structural changes between v35.1.40 and v35.1.41.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 10 target frameworks; confirm the exact target used by your application.The published metadata declares 20 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.