Skip to content
KazamTools

Image to Text (OCR)

Copy the text out of any photo, scan or screenshot, in 39 languages.

Files are processed in your browser and never uploaded.How it works

Language data: about 2.8 MB, downloaded once.

or drop it here, or paste a screenshot with Ctrl+V.

Text recognition runs in your browser with Tesseract. The engine and language data are downloaded once from jsDelivr and cached; your image is never uploaded.

How to use the Image to Text

  1. 1Pick the language of the text. Add English if the text mixes both.
  2. 2Choose an image, take a photo, or paste a screenshot with Ctrl+V.
  3. 3Rotate the image if the text is sideways, then click Extract text.
  4. 4Fix any mistakes in the box, then copy the text or download it as a .txt file.

How image to text (OCR) works

OCR stands for optical character recognition: software that looks at the shapes in a picture and works out which letters they are. This tool uses Tesseract, an open-source OCR engine first developed at HP and later improved by Google, compiled to run inside your browser.

Here is what happens when you click Extract text:

  1. Preparing the image. The photo is turned upright, and small images are enlarged. Tesseract reads best when capital letters are roughly 20 to 40 pixels tall, so a 600-pixel-wide screenshot is enlarged about three times. With Enhance image on, colours are turned to grey and the contrast is stretched, so the darkest 1% of pixels becomes black and the brightest 1% white.
  2. Finding text lines. Tesseract separates text from background, then finds blocks, lines and words.
  3. Reading each line. A neural network (an LSTM, which reads a line as a sequence, a bit like you do) turns each line into characters, using the language data you picked.
  4. Scoring. Every word gets a confidence score. The percentage shown under the result is the average for the page.

The OCR engine and the language file (between 0.4 and 3.7 MB) are downloaded once from jsDelivr and stored by your browser. Your image is processed on your device and never uploaded.

A worked example

A phone photo of a printed receipt, 3,024 × 4,032 pixels, is already large enough, so it is not enlarged. With English selected and Enhance image on, a typical result is about 90 to 95% confidence: totals and dates usually come out right, while faded thermal print and tiny logos may be misread. A screenshot of a web page, 1,280 × 720 pixels, is enlarged to 2,000 × 1,125 before reading and usually scores 95% or more, because screen text is perfectly sharp.

Tips for better accuracy

  • Pick the right language. Tesseract only recognises the characters of the languages you select. For an Urdu letter that contains English names or numbers, keep Also read English words ticked.
  • Get the text upright. Use the rotate buttons until the text reads normally. Sideways text gives nonsense.
  • Shoot straight on. Hold the phone parallel to the page, fill the frame with the text and avoid shadows from your hand or phone.
  • Light it evenly. Daylight from a window is ideal. Avoid flash, which creates a bright glare spot.
  • Crop first. If the image contains photos, logos or several columns, crop it to just the text you need.
  • Screenshots beat photos. If the text is on a screen, take a screenshot instead of photographing the display.

What works well and what does not

Source Typical result
Screenshot of a web page or app Excellent
Scanned typed document (300 DPI) Excellent
Phone photo of a printed page Good, if sharp and evenly lit
Receipt or faded thermal paper Fair; check numbers carefully
Printed Arabic or Naskh Urdu Good on clean, large text
Nastaliq Urdu (newspapers, books) Fair; needs a sharp, high-resolution image
Handwriting Poor; Tesseract is trained on print
Text on curved or creased surfaces Poor to fair

Languages

You can choose from 39 languages, including English, Urdu, Arabic, Hindi, Bengali, Punjabi, Persian, Spanish, French, German, Portuguese, Russian, Turkish, Chinese (Simplified and Traditional), Japanese and Korean. Right-to-left languages (Arabic, Urdu, Persian and Hebrew) are shown right to left in the result box. Each language is a separate download, so adding English to another language adds about 2.8 MB the first time.

After extracting

The result box is editable, so fix any misread words before you copy or download it. Use the word counter to check the length of the text. If you are working with a PDF that already contains selectable text, PDF to text is faster and copies the text exactly, with no recognition errors.

Frequently asked questions

Is this image to text converter free?

Yes, with no page or daily limits and no sign-up. The OCR runs on your own device, so you can convert as many images as you like.

Are my images uploaded?

No. Text recognition happens in your browser. Only the OCR engine and the language file are downloaded (once); your image never leaves your device.

Can it read handwriting?

Only neat, printed-style handwriting, and with mistakes. Tesseract, the OCR engine used here, is trained on printed text, so typed documents, books, receipts and screenshots work far better.

Does it support Urdu and Arabic?

Yes. Choose Urdu, Arabic, Persian or Hebrew and the result box switches to right-to-left. Printed Naskh-style text works best; Nastaliq Urdu (common in newspapers and books) is harder and needs a sharp, high-resolution image.

How accurate is the OCR?

On a clean scan or screenshot of printed text it is usually above 95% accurate. Blurry, dark, curved or angled photos reduce accuracy; the confidence score under the result tells you how sure the engine was.

Can I convert a PDF to text?

If the PDF has selectable text, use PDF to text, which is faster and exact. For a scanned PDF, take a screenshot of each page and use this tool.

Was this tool helpful?