Loading tool...
How Tesseract.js OCR works in your browser
This tool runs Tesseract.js v4 — a WebAssembly port of Google's Tesseract OCR engine, originally developed at HP Labs in the 1980s and open-sourced (then maintained by Google) since 2006. The WASM binary includes a pre-trained LSTM (Long Short-Term Memory) neural network that recognises Latin character sets — the same core recognition model used by Google Docs' built-in "Open with Google Docs" OCR feature.The binary (~12 MB) is cached in your browser after the first load. All recognition runs on your CPU inside a Web Worker — no image data leaves your device.
What affects OCR accuracy
Accuracy varies significantly depending on the input image quality. Here's what to expect:| Input type | Typical accuracy |
|---|---|
| Screenshot of a PDF or digital document | 98–99%+ |
| High-resolution scan, flat document | 95–98% |
| Phone photo of a document (good light, flat) | 85–95% |
| Phone photo with glare, shadow, or angle | 70–85% |
| Handwriting | Not supported (Tesseract is trained on printed fonts) |
Tips to improve accuracy:
- Crop the image to just the text area before uploading — extraneous backgrounds add noise
- Ensure the text is horizontal (not rotated more than ~15°)
- Higher resolution = better results; if you have a choice, use a 300 DPI scan over a 72 DPI screen capture
- High contrast (dark text on light background) gives best results
How to use the Text Extractor
- Upload an image — Drop a screenshot, photograph, or scanned document (PNG, JPEG, or WebP).
- Tesseract.js runs recognition — The engine pre-processes the image (binarisation, deskew), segments text blocks, then classifies each glyph using the LSTM model.
- Copy the extracted text — The result appears in an editable text box. Correct any recognition errors, then click Copy.
Why use this over a cloud OCR API?
Cloud OCR services (Google Vision API, AWS Textract, Adobe Acrobat online) upload your image to their servers for processing. For most images this is fine — but for confidential documents like:- Tax returns and financial statements
- Contracts and NDAs
- Medical records
- Passport or ID scans