Skip to main content

Extract Text from Images & Scanned Documents (OCR)

Extract text from images and scanned documents.

Loading tool…

Your file stays in this browser. Nothing is uploaded.

How OCR Image & Document to Text works

Extract text from scanned documents and photos with Tesseract.js in your browser. The first use of a language downloads its recognition data. Document pixels are processed locally.

How to use this tool

  1. Select the document language before loading the OCR engine.
  2. The browser downloads and caches the language data on first use.
  3. Drop a scanned PDF, JPG, PNG, or WebP into the tool.
  4. Watch the OCR progress bar as text lines and characters are recognized in your browser.
  5. Review extracted text in the editor, copy to clipboard, or download as a TXT file.

Common uses

  • Accountants extracting itemized text from photographed receipts and invoices.
  • Students converting printed textbook pages into searchable study notes.
  • Lawyers digitizing printed court filings and physical contract archives.
  • Translators extracting foreign text from signage and product packaging.

Frequently asked questions

Are my confidential contracts, legal files, or receipts sent to cloud servers?

No. Tesseract.js runs in your browser using WebAssembly, so your image or PDF is not uploaded for recognition. Only the language recognition data is downloaded, the first time you select a language.

What languages can the OCR engine read?

The language menu offers English, Spanish, French, German, Chinese Simplified, Japanese, Portuguese and Italian. Each language's recognition data downloads the first time you use it, so pick the language that matches your document.

How can I get the highest optical recognition accuracy?

Use a sharp, well-lit, flat and upright image with dark text on a plain light background, and choose the matching language. PDF pages are rendered at up to 2x scale before recognition. Handwriting and low-resolution scans may read poorly.

Can I extract text from smartphone photos of book pages?

Yes. Photograph the page flat, in even light and upright, then drop the image into the tool or select it. It reads one file at a time and accepts images and PDFs. Shadows and curved page edges can reduce accuracy.

Can I download the recognized text as a text file?

Yes. After recognition, use Download TXT to save the result as extracted_text.txt, or Copy Text to put it on your clipboard. The recognized text appears on the page first, so you can check it before saving.

Details and limits

Retyping printed documents by hand is slow. This OCR tool runs Tesseract.js, compiled to WebAssembly, in your browser to recognize text in eight languages. Accuracy depends on scan quality, so check the result.

Where your pages are processed

Text recognition runs inside your browser using Tesseract.js compiled to WebAssembly. The engine code ships with the page, and your image or PDF is read on your own device. The document itself is never uploaded.

The first time you use a language, the browser downloads its recognition model from Browser Toolset and caches it for later use. The downloaded models range from roughly 0.7 to 3 MB per language. Your documents and extracted text stay on your device.

Features and limits

  • Languages: English, Spanish, French, German, Chinese Simplified, Japanese, Portuguese and Italian. Choose one before loading the engine; each run recognizes a single language.
  • Inputs: JPG, PNG, WebP or PDF, one file at a time, with no fixed size limit.
  • PDFs: each page is drawn to an image at up to twice its size (reduced for very large pages) and recognized in turn, with progress shown as page N of M. Pages are joined by a blank line.
  • Output: plain text in an editable box, which you can copy or download as extracted_text.txt. Layout, tables, fonts and columns are not preserved, and no searchable PDF is produced.
  • Speed depends on your device. A long scanned PDF can take several minutes. If a PDF already has selectable text, the PDF to Text Converter is faster and exact.

Tips for best results

Accuracy is decided mostly by the image. Photograph the page flat, upright and in even light, crop away the table or desk, and avoid shadows and glare. A sharp 300 dpi style scan beats a small, blurry screenshot every time.

  • Pick the correct language first. A French page read as English comes out with broken accents and wrong words.
  • The engine is built for printed text. Handwriting, stylized fonts and heavy background patterns give poor results.
  • Proofread numbers. Letters and digits such as 0 and O, or 1, l and I, are easily confused, so double-check totals taken from receipts and invoices.
  • If you see No text was recognized, the image is probably too small or low in contrast. Rescan at a higher resolution.
  • Mixed-language pages need two passes, one per language, and you merge the results by hand.