Image to text: extract text from images and PDF (OCR)

Get the text out of a photo, screenshot or scanned PDF and copy it or download a .txt. Recognition runs on your device, without uploading the file.

Updated on

On this page
  1. Use the tool
  2. How to use it
  3. OCR in your browser, without uploading the file
  4. PDF with text or scanned PDF
  5. How to get a better result
  6. Frequently asked questions

Language of the text

Works best with printed, sharp, straight, well-lit text. Handwriting and tilted, dark or low-resolution photos usually come out with errors. The first time, the text reader and the language (5 to 8 MB) are downloaded from the Clicaluz website itself and stay stored in your browser.

Recognition runs in your browser with Tesseract.js. The image or PDF is not uploaded. Check the text before using it, because OCR can mix up similar letters and numbers.

How to use it

  1. Choose or drop the image, screenshot or PDF. It is not uploaded.
  2. Choose the language of the text: Portuguese, English or both.
  3. Tap Extract text and wait for the progress bar.
  4. Check the text, fix what you need and tap Copy text or Download .txt.

OCR in your browser, without uploading the file

OCR is optical character recognition: the program looks at the image and works out which letters are there. This page uses Tesseract.js, a version of Tesseract that runs inside the browser. The reader and the English and Portuguese data are stored on the Clicaluz website itself and are only downloaded the first time you use the tool.

PDF with text or scanned PDF

Some PDFs already contain the text, like the ones created in Word. In those cases the page copies the text directly, without OCR, which is faster and more accurate. If the page is a photo or a scan, it is drawn at high resolution and goes through OCR, one page at a time.

How to get a better result

Use images with straight, sharp, high-contrast text, ideally printed text on a light background. Screenshots usually come out very well. Photos taken from far away, with shadows, tilted or shaky lose letters. Handwriting, complex tables and multi-column text may come out of order.

Frequently asked questions

Is the image or PDF sent anywhere?

No. Recognition happens in your browser. The file is not uploaded to a Clicaluz server, and the text leaves the page when you close or refresh it.

Which languages does the tool recognize?

English and Portuguese, separately or together. Choosing the right language improves accents and recognized words. Text in another language with the same alphabet may come out with more errors.

Does it work with handwriting?

Usually not very well. OCR is made for printed text. Very clear block letters sometimes work, but cursive handwriting almost always comes out with many errors.

Why is it slow the first time?

The first time, the browser downloads the text reader and the language, 5 to 8 MB in total, from the site itself. After that they stay stored and the next use is faster. Reading itself takes a few seconds per page, depending on the device.

Can I extract text from a whole PDF?

Yes, up to 30 pages at a time. Pages that already have text are read directly; scanned pages go through OCR. For larger PDFs, use the Pages field and do it in parts.

Does it work on a phone?

Yes. Choose the photo or screenshot from your gallery and tap Extract text. On simpler phones, reading may take a bit longer.