How to get text from an image
- Check the language of the text above the button. It starts with your browser's language when the page has it.
- Choose pictures, drop them on the page, or paste a screenshot. Each one is read as soon as it is added.
- Copy the text, edit it in the box, or save it as a .txt file.
What it reads well
The page uses Tesseract, an open-source text recognition engine, compiled to run in your browser. It reads printed and on-screen text: screenshots, scanned pages, photos of documents, signs and slides. It does best with straight lines of dark text on a light background. Handwriting comes out poorly, and text in pictures with busy backgrounds may come out with mistakes or not at all.
The first time, your browser loads the engine (about 4 MB) and the model for the language you chose (between 0.5 and 6 MB). After that it keeps them, and later pictures are read without loading them again.
How small the text can be
How small the text can be
- This page (enlarged 2× first)
- Read as it is
We drew the first paragraph of Alice's Adventures in Wonderland, black on white, at each size and read it back with this page's engine, once as it was and once enlarged 2 times first, as this page does with pictures under 2,000 pixels across. Enlarging made the difference for small text: at 7 pixels, 7% of the characters came out right as it was and 98% enlarged. The size is the font size in screen pixels; on a phone or a laptop at normal zoom, body text is usually 14 to 16.
Show the numbers
| Text size | Sans-serif, this page | Sans-serif, as it is | Serif, this page | Serif, as it is |
|---|---|---|---|---|
| 6 px | 93% | 0% | 87% | 9% |
| 7 px | 98% | 7% | 98% | 36% |
| 8 px | 100% | 89% | 100% | 61% |
| 9 px | 100% | 98% | 100% | 98% |
| 10 px | 100% | 99% | 100% | 99% |
| 11 px | 100% | 100% | 100% | 100% |
| 12 px | 100% | 100% | 100% | 100% |
| 14 px | 100% | 100% | 100% | 100% |
| 16 px | 100% | 100% | 100% | 100% |
| 20 px | 100% | 100% | 100% | 100% |
So you do not need to enlarge small screenshots yourself; the page does it. Pictures 2,000 pixels across or larger, such as phone photos, are read at their own size.
What JPG compression does to small text
- 12 px text
- 9 px text
The same paragraph in the sans-serif typeface, saved as JPG at each quality and read as this page reads it. At 12 pixels the setting hardly mattered (98% even at quality 20). At 9 pixels it did: 78% at quality 20 against 100% at 70. Heavily compressed pictures of small text lose characters first.
Show the numbers
| JPG quality | 9 px text | 12 px text |
|---|---|---|
| 20 | 78% | 98% |
| 30 | 98% | 100% |
| 40 | 99% | 100% |
| 50 | 99% | 100% |
| 60 | 100% | 100% |
| 70 | 100% | 100% |
| 85 | 100% | 100% |
| 95 | 100% | 100% |
Getting cleaner text from a photo
- Hold the phone straight over the page, so the lines are level and not tilted away from you.
- Use even light without shadows across the text.
- Crop to the part with the text; a picture with only the text in it is read faster and with fewer stray characters.
- Choose the right language. A model for another language guesses letters it does not know, such as accented ones.
Languages
Each language has its own model, which the page loads when you choose it. Text in another script than the chosen language's is not read correctly.
| Language | Model file |
|---|---|
| English | eng.traineddata |
| Arabic (العربية) | ara.traineddata |
| Chinese, simplified (简体中文) | chi_sim.traineddata |
| Czech (Čeština) | ces.traineddata |
| Dutch (Nederlands) | nld.traineddata |
| French (Français) | fra.traineddata |
| German (Deutsch) | deu.traineddata |
| Greek (Ελληνικά) | ell.traineddata |
| Hebrew (עברית) | heb.traineddata |
| Hindi (हिन्दी) | hin.traineddata |
| Italian (Italiano) | ita.traineddata |
| Japanese (日本語) | jpn.traineddata |
| Korean (한국어) | kor.traineddata |
| Polish (Polski) | pol.traineddata |
| Portuguese (Português) | por.traineddata |
| Russian (Русский) | rus.traineddata |
| Spanish (Español) | spa.traineddata |
| Turkish (Türkçe) | tur.traineddata |
| Vietnamese (Tiếng Việt) | vie.traineddata |
Questions
Is it free?
Yes, with no sign-up and no limit on how often you use it.
Are my pictures uploaded?
No. The text is read in your browser, and neither the pictures nor the text leave your device. You can check: read a picture, turn off your internet connection, and read another one in the same language.
Can it read handwriting?
Only very neat handwriting, and with many mistakes. The engine was trained on printed text.
Why are there mistakes in the text?
Usually because the text is small, blurred, tilted or on a busy background, or because a different language is chosen. In our tests text of 12 pixels and more was read without a single error, and this page read 98% of 7-pixel text right by enlarging it first. Below that, mistakes grow quickly.
Does it keep the layout, like columns and tables?
No. The text comes out as plain text, line by line. Tables lose their columns, and the order of text in several columns may need fixing by hand.
Which files can I use?
JPG, PNG, WebP and HEIC pictures (HEIC is the iPhone photo format), up to 30 at a time. PDF files are not read here.
