Description
tesseract-wasm is a WebAssembly build of the Tesseract OCR engine for reading text from document images in web pages and in Node.js. It detects and recognizes text, and supports many languages through different trained model files. This build is trimmed for browsers by removing the code that parses image formats, which keeps the download small: the library and English training data together are about 2.1 MB with Brotli compression. When the browser supports it, the engine uses WebAssembly SIMD to recognize text faster. Developers can choose between two APIs. The high-level asynchronous OCRClient runs OCR in a Web Worker so the page stays responsive, while the lower-level synchronous OCREngine gives more control over where the work happens. To set it up, add the package to a project, serve the WebAssembly and worker files from its dist folder, and host the language data file at a URL your JavaScript can load. The README notes that its demo currently supports English.…
Highlights
- Runs OCR in the browser or in Node.js
- Multiple languages through trained model files
- Browser-trimmed build, about 2.1 MB with English data
- WebAssembly SIMD for faster recognition where supported
- High-level OCRClient API that uses a Web Worker
Ratings & Reviews
No ratings yet
Be the first to rate Tesseract Wasm.
People also visit
Tesseract Wasm FAQ
What is tesseract-wasm?
A WebAssembly build of the Tesseract OCR engine. It reads text from document images in a web page or in Node.js.
Which languages does it support?
It supports multiple languages through different trained models. The README points to the tessdata_fast repo for training data, and says eng.traineddata covers English and works with many documents in other languages that use the same script.
How do I install it?
Add the tesseract-wasm package to your project, serve the tesseract-core.wasm, tesseract-core-fallback.wasm and tesseract-worker.js files from its dist folder, and host the language data file at a URL your JavaScript can load.
Which browsers get the faster build?
WebAssembly SIMD is used when the browser supports it. The README lists Chrome 91+, Firefox 90+ and Safari 16.4+.
Is it free and open source?
The source is public on GitHub. The README does not mention any paid tier.
What are the best Tesseract Wasm alternatives?
Popular alternatives to Tesseract Wasm include Franken OCR, Kraken and OpenCV. See all Tesseract Wasm alternatives



