How to use the image to text (ocr)
- Pick the language of the text.
- Choose one or more images, drop them on the box, or paste a screenshot with Ctrl+V (⌘V on a Mac).
- Press Extract text.
- Check the result, then press Copy text or Download .txt.
How it works
The tool uses Tesseract, the open-source text recognition engine that was started at Hewlett-Packard, developed further by Google, and is now used in thousands of apps. Its current version reads whole lines at a time with a neural network (an LSTM), which is why it copes well with different fonts and sizes.
Before recognition, the tool enlarges small images and flattens transparency onto white, two steps that noticeably improve results for screenshots. All of this happens in your browser. The engine and the language data download once, about 3 MB per language, and are kept for your next visit.
Getting the best result
| Problem | Fix |
|---|---|
| Text is tiny or blurry | Zoom in before taking the screenshot, or crop to just the text with crop image |
| Photo of a page is tilted | Take the photo straight on, with the page filling the frame; rotate it if it is sideways |
| Shadows or uneven light | Photograph near a window, not under a lamp; turning up the contrast with brighten image can help |
| Light text on a dark background | Usually fine; if not, use invert image first so the text is dark on light |
| Wrong letters like é or ñ missing | Choose the right language |
| Two columns get mixed together | Crop each column into its own image, then add both |
Line breaks
Text in an image is broken into lines wherever the original layout wrapped it. Keep line breaks gives you exactly those lines, which is right for lists, addresses, code and poems. Join lines into paragraphs removes the line breaks inside paragraphs and repairs words that were split with a hyphen at the end of a line, which is what you want for pasting into an email or a document.
What people use it for
- Copying text from a screenshot of a video, an app, a PDF that won't let you select text, or a message.
- Digitizing printed pages: recipes, letters, worksheets, book quotes and receipts.
- Grabbing details from a photo: a Wi-Fi password on a router sticker, a serial number, a business card, a sign.
- Translating: extract the text, then paste it into a translator. Most translators need text, not pictures.
- Accessibility: turn an image of text into real text that a screen reader or text to speech can read aloud.
Several images at once
Add up to 20 images and they are read in order. In the result, each image's text starts with a line showing its file name, so you can tell where each part came from. Copy everything at once, or download it as one text file.
Scanned PDFs
If your text is in a PDF, try PDF to text first. It reads the text layer that most PDFs already have. If it comes back empty, the PDF is a scan made of pictures: convert the pages with PDF to JPG, then add those images here.