IRONSOFTWARE
  • PRODUCTS
  • ENTERPRISE
  • FREE TOOLS
  • USE CASES
  • COMPANY
  • CONTACT US
205 N. Michigan Ave. Chicago, IL 60601, USA
+1 (312) 500-3060
CONTACT US
Icon Triangle related to C# Barcode Generator
  • Sales
  • Support
  • Partnerships
  • Corporate
Live Chat 24/5
  • En
      Icon Triangle related to C# Barcode Generator
    • English
    • Español
    • Deutsch
    • Français
    • 日本語
    • 简体中文
    • 繁體中文
  • Icon Triangle related to C# Barcode Generator
    • Customers Case Studies
    • Industry White Papers
    Icon Triangle related to C# Barcode Generator
    • About Us
      Icon Text Wearehiring related to C# Barcode Generator
    • Company News
      Icon Text Wearehiring related to C# Barcode Generator
    • Customers & Case Studies
      Icon Text Wearehiring related to C# Barcode Generator
    • Environmental Commitments
      Icon Text Wearehiring related to C# Barcode Generator
    • Startup Impact Grant
      Icon Text Wearehiring related to C# Barcode Generator
    • Beta Program
      Icon Text Wearehiring related to C# Barcode Generator
    • Year in Review: 2024
      Icon Text Wearehiring related to C# Barcode Generator
    • Careers
      Icon Text Wearehiring related to C# Barcode Generator
    • Consulting Partners
    • Content Creators
    • Resellers Partners
    • Technology Partners
    • Microsoft MVPs
    • Affiliates
    • Global Resellers
    • Merchant of Record
    • Trust Center
    • Sales
    • Support
    • Partnerships
    • Corporate
    Live Chat 24/5
    Icon Triangle related to C# Barcode Generator
    Icon Logo Ironsuite related to C# Barcode Generator

    IRONSUITE

    All 10 for the Price of 2

    Save 80% with Iron Suite
    Logo 1 Percent related to C# Barcode Generator
    Logo IronPDF
    Logo IronPDF

    Create, read, and edit PDFs

    Logo IronPPT
    Logo IronPPT

    Edit PowerPoint Files. No Office Interop required

    Logo IronQR
    Logo IronQR

    Read and write QR codes with ML detection

    Logo IronWebscraper
    Logo IronWebscraper

    Extract structured data from website

    Logo IronWord
    Logo IronWord

    Edit DOCX Word Files. No Office Interop required

    Logo IronOCR
    Logo IronOCR

    Image to text in 127 languages

    Logo IronPrint
    Logo IronPrint

    Customized Printing Files

    Logo IronXL
    Logo IronXL

    Edit Excel & CSV Files. No Office Interop required

    Logo IronBarcode
    Logo IronBarcode

    Read and write Barcodes

    Logo IronZIP
    Logo IronZIP

    Zip and unzip archives

    Icon Triangle related to C# Barcode Generator
    Icon Logo Ironsuite related to C# Barcode Generator
    Icon Text Ironsuite related to C# Barcode Generator

    Enterprise Licensing

    Icon Logo Ironsecuredoc related to C# Barcode Generator
    Icon Text Ironsecuredoc related to C# Barcode Generator

    PDF Security & Compliance

    Icon Triangle related to C# Barcode Generator
    Icon Logo Irondrawing related to C# Barcode Generator
    Icon Text Irondrawing related to C# Barcode Generator

    System.Drawing.Common Replacement

    Icon Logo Ironfreetools related to C# Barcode Generator
    Icon Text Ironfreetools related to C# Barcode Generator

    Free Software Development Tools

    IronBarcode Library for C# .NET
    • Home
    • Licensing
      • Licensing
      • EULA
      • Support & Update Extensions
      • License Upgrades
      • How to Use License Keys
      • Start Free Trial
    • Features
      • Overview
      • Generate
      • Style
      • Read
      • Filters
      • Compatibility
      • Fault Tolerance
      • Others
    • Demos
      • Online Demo
      • Code Examples
      • Book a Live Demo
    • Docs
      • Get Started
      • Tutorials
      • How-Tos
      • Troubleshooting
      • Product Updates
      • API Reference  
    Search
    Ctrl
    K
    Start for Free
    NuGet Download DLL Download Start Free Trial
    Logo Icon related to C# Barcode Generator
    IronBarcode Library for C# .NET
    for
    .NET
    • IRONSOFTWARE HOME
    • PRODUCTS
      • IRONSUITE

      • IRONPDF
        UPDATED
      • IRONWORD
      • IRONXL
      • IRONPPT
      • IRONOCR
      • IRONBARCODE
      • IRONQR
      • IRONZIP
      • IRONPRINT
      • IRONWEBSCRAPER
    • ENTERPRISE
      • IRONSUITE ENTERPRISE
      • IRONSECUREDOC
    • OPEN SOURCE
      • IRONDRAWING
      • IRONFREETOOLS
    • ABOUT US
      • About Us
      • Company News
      • Customers
      • Environmental Commitments
      • Beta Program
      • Year in Review: 2024
      • Live Chat
      • Global Resellers
      • Join our team
    • CONTACT US
    • HOME
    • LICENSING
      • Licensing
      • EULA
      • Support & Update Extensions
      • License Upgrades
      • How to Use License Keys

      • Start Free Trial
    • FEATURES
      • Overview
      • Generate
      • Style
      • Read
      • Filters
      • Compatibility
      • Fault Tolerance
      • Others
    • DEMOS
      • Online Demo
      • Code Examples
      • Book a Live Demo
    • DOCS
      • Get Started
      • Tutorials
      • How-Tos
      • Troubleshooting
      • Product Updates

      • API Reference  
    Message icon

    C# Barcode Generator

    1. Generates barcodes in C# & VB.NET
    2. Built to generate barcodes & QRs
    3. Reads Barcodes in C#
    Free NuGet Download Total downloads 1,616,742
    Start for Free
    NuGet Download DLL Download Start Free Trial

    Or download the DLL directly here

    Nuget Passed
    Generating Barcodes See All \b Code Examples
    using IronBarCode;
    using System.Drawing;
    
    /*** CREATING BARCODE IMAGES ***/
    
    // Create and save a barcode in a single line of code
    BarcodeWriter.CreateBarcode("12345", BarcodeWriterEncoding.EAN8).ResizeTo(400, 100).SaveAsImage("EAN8.jpeg");
    
    /*****  IN-DEPTH BARCODE CREATION OPTIONS *****/
    
    // BarcodeWriter.CreateBarcode creates a GeneratedBarcode which can be styled and exported as an Image object or file
    GeneratedBarcode MyBarCode = BarcodeWriter.CreateBarcode("Any Number, String or Binary Value", BarcodeWriterEncoding.Code128);
    
    // Style the Barcode in a fluent LINQ-style fashion
    MyBarCode.ResizeTo(300, 150).SetMargins(20).AddAnnotationTextAboveBarcode("Example EAN8 Barcode").AddBarcodeValueTextBelowBarcode();
    MyBarCode.ChangeBackgroundColor(Color.LightGoldenrodYellow);
    
    // Save the barcode as an image file
    MyBarCode.SaveAsImage("MyBarCode.png");
    MyBarCode.SaveAsGif("MyBarCode.gif");
    MyBarCode.SaveAsHtmlFile("MyBarCode.html");
    MyBarCode.SaveAsJpeg("MyBarCode.jpg");
    MyBarCode.SaveAsPdf("MyBarCode.Pdf");
    MyBarCode.SaveAsPng("MyBarCode.png");
    MyBarCode.SaveAsTiff("MyBarCode.tiff");
    MyBarCode.SaveAsWindowsBitmap("MyBarCode.bmp");
    
    // Save the barcode as a .NET native object
    Image MyBarCodeImage = MyBarCode.Image;
    Bitmap MyBarCodeBitmap = MyBarCode.ToBitmap();
    
    byte[] PngBytes = MyBarCode.ToPngBinaryData();
    
    using (System.IO.Stream PdfStream = MyBarCode.ToPdfStream())
    {
        // Stream barcode image output also works for GIF, JPEG, PDF, PNG, BMP and TIFF
    }
    
    // Save MyBarCode as an HTML file or tag
    MyBarCode.SaveAsHtmlFile("MyBarCode.Html");
    string ImgTagForHTML = MyBarCode.ToHtmlTag();
    string DataURL = MyBarCode.ToDataUrl();
    
    // Save MyBarCode to a new PDF, or stamp it in any position on any page(s) of an existing document
    MyBarCode.SaveAsPdf("MyBarCode.Pdf");
    MyBarCode.StampToExistingPdfPage("ExistingPDF.pdf", 200, 50, 1);  // Position (200, 50) on page 1
    MyBarCode.StampToExistingPdfPages("ExistingPDF.pdf", 200, 50, new[] { 1, 2, 3 }, "Password123");  // Multiple pages of an encrypted PDF
    BarCode?style=flat&logo=nuget&label=Downloads&labelColor=4D4D4D&color=4382BF&cacheSeconds=432000 related to C# Barcode G...
    Install-Package BarCode
    IronBarcode

    Reading and Writing Barcodes & QR in C#...

    .NET Developer Support

    Human Support

    Talk directly with our development team

    Ask a Question
    C# API Reference and Get Started Tutorials

    Documentation

    Clear online manuals in plain English.

    View Documentation
    C# Library Licensing

    Simple Licensing

    Free development license. Commercial from $749.

    Browse Options
    Install The C# Barcode library

    Get Started Now

    Get started in minutes with NuGet or DLL.

    Install & Try Now
    Try IronBarcode for Free
    Get Set Up in 5 Minutes
    Icon Lightbulb related to C# Barcode Generator
    C# NuGet Library for PDF
    Install with NuGet
    Version: 2025.4
    Install-Package BarCode
    nuget.org/packages/BarCode/
    1. In Solution Explorer, right-click References, Manage NuGet Packages
    2. Select Browse and search "IronBarCode"
    3. Select the package and install
    C# PDF DLL
    Download DLL
    Version: 2025.4
    Download Now
    Manually install into your project
    1. Download and unzip IronBarCode to a location such as ~/Libs within your Solution directory
    2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronBarCode.dll"
    Licenses from $749

    Have a question? Get in touch with our development team.

    15 1000 1
    Nuget Logo
    Now you've installed with Nuget
    Your browser is now downloading IronBarcode

    Next step: Start free 30-day Trial

    No credit card required

    • Test in a live environment
    • Fully-functional product
    • 24/5 technical support
    Get your free 30-day Trial Key instantly.
    Thank you.
    If you'd like to speak to our licensing team:

    badge_greencheck_in_yellowcircle
    The trial form was submitted
    successfully.

    Your trial key should be in the email.
    If it is not, please contact
    support@ironsoftware.com

    Schedule a call
    Have a question? Get in touch with our development team.
    No credit card or account creation required
    15 1000 1
    Nuget Logo
    Now you've installed with Nuget
    Your browser is now downloading IronBarcode

    Next step: Start free 30-day Trial

    No credit card required

    • Test in a live environment
    • Fully-functional product
    • 24/5 technical support
    Thank you.
    View your license options:
    Thank you.
    If you'd like to speak to our licensing team:
    View Licensing
    Schedule a call
    Have a question? Get in touch with our development team.
    Have a question? Get in touch with our development team.
    ironbarcode_for_dotnet

    Get started for FREE

    No credit card required

    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    bullet_test
    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    bullet_calendar
    24/5 technical support

    Full access to our support engineering team during your product trial

    bullet_support
    Support Team Member 6 related to C# Barcode Generator Support Team Member 3 related to C# Barcode Generator Support Team Member 14 related to C# Barcode Generator Support Team Member 4 related to C# Barcode Generator Support Team Member 2 related to C# Barcode Generator
    ironbarcode_for_dotnet
    Get your free 30-day Trial Key instantly.

    bullet_checkedNo credit card or account creation required

    badge_greencheck_in_yellowcircle
    The trial form was submitted
    successfully.

    Your trial key should be in the email.
    If it is not, please contact
    support@ironsoftware.com

    Trusted by Millions of Engineers Worldwide
    • aetna_logo
    • wwf_logo
    • nasa_logo
    • usda_logo
    • 3m_logo
    • tesla_logo
    ironbarcode_for_dotnet

    Get started for FREE

    No credit card required

    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    bullet_test
    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    bullet_calendar
    24/5 technical support

    Full access to our support engineering team during your product trial

    bullet_support
    Support Team Member 6 related to C# Barcode Generator Support Team Member 3 related to C# Barcode Generator Support Team Member 14 related to C# Barcode Generator Support Team Member 4 related to C# Barcode Generator Support Team Member 2 related to C# Barcode Generator
    ironbarcode_for_dotnet
    Get your free 30-day Trial Key instantly.
    Install with NuGet
    View Licensing

    Licenses from $749. Have a question? Get in touch.

    Trusted by Millions of Engineers Worldwide
    • aetna_logo
    • wwf_logo
    • nasa_logo
    • usda_logo
    • 3m_logo
    • tesla_logo
    Iron Barcode
    Book Free Live Demo

    Book a 30-minute, personal demo.

    No contract, no card details, no commitments.

    Iron Software Product Demo Team
    Here's what to expect:
    • A live demo of our product and its key features
    • Get project specific feature recommendations
    • All your questions are answered to make sure you have all the information you need.
      (No commitment whatsoever.)
    CHOOSE TIME
    YOUR INFO
    Book your free Live Demo
    Booking Badge related to C# Barcode Generator

    Trusted by Over 2 Million Engineers Worldwide

    Iron Software's customer logos
    Experience the full power of IronBarcode Start Free Trial
    Logo 1 Percent related to C# Barcode Generator
    Textlogo Iron Suite related to C# Barcode Generator

    IronBarcode
    is a part of IRONSUITE

    10 .NET API products for your office documents

    Get 10 products for the price of 2   Start Free Trial
    • Icon Hash related to C# Barcode Generator
      ironpdf_logo
      - Create, read, and edit PDFs. HTML to PDF for .NET.
    • Icon Hash related to C# Barcode Generator
      ironword_logo
      - Edit DOCX Word Files. No Office Interop required.
    • Icon Hash related to C# Barcode Generator
      ironxl_logo
      - Edit Excel & CSV files. No Office Interop required.
    • Icon Hash related to C# Barcode Generator
      ironppt_logo
      - Create, read, and edit presentations. No Office Interop required.
    • Icon Hash related to C# Barcode Generator
      ironocr_logo
      - OCR (extract text from images) in 127 languages.
    • Icon Hash related to C# Barcode Generator
      ironbarcode_logo
      - Read and write QR & Barcodes.
    • Icon Hash related to C# Barcode Generator
      ironqr_logo
      - Read and write QR codes.
    • Icon Hash related to C# Barcode Generator
      ironzip_logo
      - Zip and unzip archives.
    • Icon Hash related to C# Barcode Generator
      ironprint_logo
      - Print documents in .NET applications.
    • Icon Hash related to C# Barcode Generator
      ironwebscraper_logo
      - Scrape structured data from websites.
    1% for the Planet
    IronBarcode
    is a part of IRONSUITE

    10 .NET API products for your office documents

    Get 10 products for the price of 2
       Start Free Trial 
    • ironpdf_logo
      - Create, read, and edit PDFs. HTML to PDF for .NET.
    • ironword_logo
      - Edit DOCX Word Files. No Office Interop required.
    • ironxl_logo
      - Edit Excel & CSV files. No Office Interop required.
    • ironppt_logo
      - Create, read, and edit presentations. No Office Interop required.
    • ironocr_logo
      - OCR (extract text from images) in 127 languages.
    • ironbarcode_logo
      - Read and write QR & Barcodes.
    • ironqr_logo
      - Read and write QR codes.
    • ironzip_logo
      - Zip and unzip archives.
    • ironprint_logo
      - Print documents in .NET applications.
    • ironwebscraper_logo
      - Scrape structured data from websites.
    IronBarcode for .NET

    When you need to read, write, and style Barcodes, fast.

    Search

    CtrlK

    Documentation

    • Code Examples
    • How-Tos
    • API Reference
    • Features
    • Blog
    • Product Brochure

    Tutorials

    • Get Started
    • C# Barcode Image Generator
    • C# QR Code Generator
    • Barcodes in C# lesen

    Licensing

    • Buy a License
    • Find a Reseller
    • License Upgrades
    • Product Update Renewals
    • How to Use License Keys
    • EULA

    Try IronBarcode Free

    • Download on NuGet
    • Download DLL

    • Start Free Trial
    1. IronBarcode
    2. C# Barcode Generator
    Back to top
    Iron Software
    205 N. Michigan Ave. Chicago, IL 60601 USA +1 (312) 500-3060
    • About Us
    • News
    • Customers
    • Careers
    • Academy
    • Contact Us
    • English
      • English
      • Español
      • Deutsch
      • Français
      • 日本語
      • 简体中文
      • 繁體中文
    Github related to C# Barcode GeneratorYoutube related to C# Barcode GeneratorTwitter X related to C# Barcode GeneratorFacebook related to C# Barcode GeneratorLinkedin related to C# Barcode Generator
    Slack Icon related to C# Barcode Generator Join Iron Slack

    Supporting Teamseas

    Copyright © Iron Software LLC 2013-2025

    • Terms
    • Privacy
    • Cookie