The C# OCR Library
# OCR for C# to scan and read images & PDFs
# .NET OCR library with 127+ global language packs
# Output as text, structured data, or searchable PDFs
# Supports .NET 6, 5, Core, Standard, Framework
Images to Text with OCR
See All 24 Code Examples
using IronOcr;
var ocr = new IronTesseract();
using (var input = new OcrInput())
{
input.AddImage("attachment.png");
input.AddPdf("report.pdf");
OcrResult result = ocr.Read(input);
string text = result.Text;
}
Install-Package IronOcr
Explore the code, install IronOCR with NuGet
Iron Ocr
Cross Platform Support
Designed for C#, F#, & VB.NET running on .NET 6, 5, Core, Standard, or Framework
NET Logo
Visual Studio Logo
Nuget Logo
ReSharper
Windows Logo
Linux Logo
Mac Logo
Docker Logo
Azure Logo
AWS Logo
The C# OCR Library
Tesseract 5 OCR in the language you need. We support 127+.
A C# Library that prioritizes accuracy, ease of use, and speed.
Version: 2022.11 available now.
Compatibility
.NET Languages:
C#
VB.NET
F#
Platforms:
.NET 6 & 5
.NET Core 3x & 2x
.NET Standard 2
.NET Framework 4x
App Types:
Console, Web, & Desktop
OS:
Microsoft Windows
macOS
Linux (Debian, CentOS, Ubuntu)
Docker (Windows, Linux, Azure)
Azure (VPS, Webapps, Websites, Functions)
AWS (EC2, Lambda)
IDEs:
Microsoft Visual Studio
Jetbrains ReSharper & Rider
OCR Engine
Underlying OCR Engine:
Tesseract 5 (Custom .NET Engine)
International Languages:
127 Languages
High, Medium, and Fast Quality
Custom Languages
Text and Barcode Reading:
Text and Numbers
Multiple Languages at once
Barcodes (Over 20 Formats)
QR Codes
Specialist Documents:
Receipts
Checks (Cheques)
Invoices
Concurrency:
Single and Multithreading
Async Support
OCR Input
Read from Many Formats:
Images (jpg, png, gif, tiff, bmp)
Multi Page and Frame TIFF and GIF
System.Drawing Objects
Streams
PDFs
Low Quality Input Correction:
Sharpen
EnhanceResolution
Denoise
DeepCleanBackgroundNoise
Dilate and Erode
Fix Image Orientation:
Crop Rectangles
Rotate
Deskew
Scale
Fix Image Colors:
Binarize
Grayscale
Invert Colors
Replace Colors
Advanced Computer Vision:
Use Computer Vision to find text based on our advanced trained models
OCR Result
Simple Data Output:
.NET Text Strings
Barcode and QR Data
Images
Structured Data Output:
Pages
Blocks
Paragraphs
Lines
Words
Characters
Export Documents:
Searchable PDFs
hOCR Export
HTML Export
Image of any Page or Text Element
Barcode or QR Code as Image
Status and Analytics:
OCR Progress Tracking
Result Confidence