
The C# OCR Library
IronOCR is the leading C# OCR library for reading text from images and PDFs. Its user friendly API allows developers to have OCR up and running in their .NET projects in minutes.
Images to Text with OCR
using IronOcr;
var ocr = new IronTesseract();
using var input = new OcrInput();
input.LoadImage("attachment.png");
input.LoadPdf("report.pdf");
OcrResult result = ocr.Read(input);
string text = result.Text;
A C# OCR Library that prioritizes accuracy, ease of use, and speed.
Tesseract 5 OCR in the language you need. We support 127+.
Cross Platform Support
Designed for C#, F#, & VB.NET running on .NET 8, 7, 6, Core, Standard, or Framework

Compatibility
.NET Languages:
- C#, VB.NET, F#
Platforms:
- .NET 8, 7, 6 & 5
- .NET Core 2x & 3x
- .NET Standard 2
- .NET Framework 4.6.2+
App types:
- Console, Web, & Desktop
Operating Systems:
- Microsoft Windows
- macOS
- Linux
- Docker
- Azure
- AWS
IDEs
- Microsoft Visual Studio
- JetBrains ReSharper & Rider
Certification
- Microsoft Authenticode
OCR Engine
Underlying OCR Engine
- Tesseract 5 (Custom for .NET)
International Languages
- 125 Languages
- High and Fast Quality
- Custom Languages
Text and Barcode Reading
- Text and Numbers
- Multiple Languages at Once
- Barcodes
Specialist Documents
- Receipts
- Checks (Cheques)
- Invoices
Concurrency
- Single and Multithreading
- Async Support
- Suspend current thread
- Cancel OCR Reading
Computer Vision:
- Find text with trained models
OCR Input
Read from Many Formats:
- Images (jpg, png, gif, tiff, bmp)
- Multi-Page/Frame (tiff, gif)
- System.Drawing Objects
- Streams
- PDFs (optimized target DPI)
Filters:
- Filter Wizard (Find best filter combination)
- Image Correction (Sharpen, Enhance Resolution, Denoise, Dilate, Erode)
- Fix Image Orientation (Rotate, Deskew, Scale)
- Fix Image Colors (Binarize, Grayscale, Invert, ReplaceColor, SelectTextColor)
Apply a Crop Region:
- CropRectangle
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
- OCR Export
- HTML Export
- Page or Text as image
- Barcode or QR as Image
Highlight Text and Save:
- Characters, words, lines, and paragraphs
Status and Analytics:
- OCR Progress Tracking
- Result Confidence