Files tool

Image to Text OCR

Choose a clear image, select its language and recognize text on your device.

Runs in your browser. No upload.

Works in your browser. Your files stay on your device.

About this tool

Image to Text OCR made simple.

OCR downloads language data when needed and uses your device memory and processor. Results can contain mistakes, especially for handwriting, small text, low contrast or rotated images. Review the output before using it.

Guide

Using Image to Text OCR

The Image to Text OCR tool reads printed words from a picture and gives them back as text you can edit. You choose a JPG, PNG or WebP file, pick the language of the writing, turn the picture if it lies on its side, and press Recognize text. You can then copy the text or save it as a TXT file. It can make mistakes, so always compare the output with the picture.

How to use it

  1. Press Choose file and pick one JPG, PNG or WebP image. It must be 20 MB or smaller and no more than 20 megapixels. A straight, sharp picture works best, and the Tesseract notes say to use dark text on a light background.
  2. Select the language of the text from the list of 16. If the picture is sideways or upside down, choose a rotation of 90, 180 or 270 degrees.
  3. Press Recognize text. A progress bar appears, the first run may wait while language data loads, and Cancel stops the job.
  4. Read the result in the text box and compare it with the picture. The box is read-only, so press Copy text or Download TXT and correct the mistakes in your own editor.

Worked examples

A photographed printed letter in English

You enter
File
letter.jpg
Language
English
Rotation
No rotation
You get
Status
Text recognized. Review it for OCR mistakes.
Text box
the recognized text of the letter

The words appear in the text box as plain text, with line breaks following the lines in the picture. Check names, numbers and punctuation first, since those are easy to misread. This was not run in a browser, because it needs a real image.

Not run through the tool. Treat it as an illustration.

A scan that is lying on its side

You enter
File
scan-sideways.png
Language
Español
Rotation
90°
You get
Result
the picture is turned 90 degrees before recognition

The rotation option turns the picture before the text is read, in steps of 90 degrees. If the text still comes out as nonsense, try 270 degrees, which turns it the other way. Read from the code and not tested with a real file.

Not run through the tool. Treat it as an illustration.

A phone photo that is too big

You enter
File
photo.jpg
Size
25 MB
You get
Message
Choose an image up to 20 MB.

A file larger than 20 MB, which is 20 times 1,048,576 bytes, is refused before any reading starts. A picture with more than 20 megapixels is also refused. Reduce the picture first, then try again. Taken from the code and not tried in a browser.

Not run through the tool. Treat it as an illustration.

When it helps

  • Copy a few lines from a screenshot of a document that cannot be selected.
  • Pull the text out of a photo of a printed page, a sign or a label.
  • Get a first rough text version of a scanned letter before you correct it by hand.
  • Read text in another language from a picture and then paste it into a translator.

Limits to keep in mind

  • Only JPG, PNG and WebP are offered in the file picker, one image per run, up to 20 MB and 20 megapixels.
  • You choose one language per run. A page that mixes two languages will read best in the main one.
  • The page warns that handwriting, small text, low contrast and rotated pictures often give mistakes. The tool shows plain text only, without layout, tables or a searchable PDF.
  • Recognition runs on your device, so large images are slow and use a lot of memory. The first use of a language may wait while its data loads.

Tips

  • Use the original screenshot or scan instead of a photo of a screen, and photograph paper straight on in even light.
  • The Tesseract documentation says the engine works best with images of at least 300 dpi, so a larger original often reads better than a shrunken copy.
  • Straighten a tilted page before you load it. The Tesseract documentation says reading quality drops a lot when text lines are not horizontal.

Sources

Common questions

About Image to Text OCR.

Is my image uploaded?

No. The page says the image is processed in your browser and your files stay on your device. The language data needed for recognition is loaded when needed, but the picture itself is not sent anywhere.

Why is recognition slow?

OCR uses the memory and processor of your device, and the first run loads language data. The page recommends a computer for large images. A smaller, cleaner picture is usually faster.

Which languages can it read?

There are 16: English, Spanish, French, German, Portuguese, Italian, Japanese, Korean, Simplified Chinese, Arabic, Hindi, Russian, Bengali, Turkish, Vietnamese and Urdu. Pick the one that matches the writing in the picture.

Can it read handwriting?

It is built for printed text. The page warns that results can contain mistakes, especially for handwriting, so expect to correct a lot and do not rely on the output without checking it.

What if the text comes out sideways or garbled?

Try the rotation option in 90 degree steps. The tool cannot straighten a slight tilt, so fix that in an image editor first. Low contrast and tiny letters are other common causes of nonsense.

Can I use a PDF or several pictures at once?

No. The tool takes one JPG, PNG or WebP file at a time. For several pictures, run them one after another and copy each result into your own document.

What is in the downloaded TXT file?

It holds the text from the result box as plain UTF-8 text, named after your image with a .txt ending. The box cannot be edited in the page, so corrections have to be made after you copy or download the text.

How do I extract text from an image?

Choose a clear image, select the language that matches the text and start recognition. Copy or download the text result.

Is the image uploaded, and why can OCR be slow?

The image is processed in your browser. OCR uses memory and processing power; a computer is recommended for large images. Recognition can make mistakes.