How to extract text from an image with OCR
Reviewed 22 November 2026 · 6 min read · Written and maintained by Toolnexo
A screenshot of a receipt, a photographed page, a scanned letter: the words are there, but you cannot copy them. Optical character recognition (OCR) turns the pixels back into text. This guide explains what OCR does, how to prepare an image so the engine reads it accurately, and how to choose the right language. The image-to-text tool on this site runs the recognition inside your browser with Tesseract compiled to WebAssembly, so your image is never uploaded.
What OCR actually does
An OCR engine first cleans the image and separates text from background, then divides it into lines and words and finally recognises each character using a model trained on that language. It reports how confident it is in its result. The output is plain text. It does not reproduce fonts, columns or tables, although the order of lines usually follows the page.
Prepare the image first
Most bad OCR results are image problems, not engine problems. The biggest factors are resolution, contrast and straightness. Text that is at least about 20 pixels tall reads well; tiny text from a small thumbnail does not. High contrast helps: dark text on a plain light background is easiest. Photos with shadows, glare or a curved page lose characters.
- Use the largest, sharpest version of the image you have.
- Crop to the text so borders and pictures do not confuse the engine.
- Make sure the text is upright; rotate sideways photos first.
- Avoid heavy JPEG compression, which smears edges.
- For a photo of a page, flatten it and light it evenly.
Choose the right language
The engine only knows the language you choose. Reading Urdu text with the English model produces nonsense, and the reverse is equally true. The tool supports English, Urdu, Arabic, French, German, Spanish and Hindi, one at a time. For a page that mixes languages, run it once per language and combine the results.
The first time you use a language, the browser downloads its recognition data (a few megabytes from a public file host) and caches it, so later runs are fast and work without re-downloading.
Always proof-read
OCR is good, not perfect. Look especially for confusions between similar shapes (zero and the letter O, one and lowercase L, rn and m) and for numbers, where a single wrong digit matters. The tool shows an average confidence figure; if it is low, compare the text with the image before you rely on it. Handwriting, decorative fonts and very small text are the hardest cases.
Why running it in your browser matters
Images that contain text are often the sensitive ones: ID cards, contracts, bank statements, medical letters. Many online OCR services upload every image to a server. Because this tool performs recognition on your own device, nothing leaves your browser except the one-off download of the public language data. You can confirm it yourself by watching the Network panel in your browser's developer tools while it runs.
Put it into practice
Image to Text Converter (OCR)
Extract text from images, screenshots and scanned pages with OCR that runs in your browser, in English, Urdu, Arabic, French, German, Spa…
Runs in your browserPDF OCR
Turn a scanned or image-based PDF into searchable plain text.
Runs in your browserImage Rotator
Rotate a photo by any angle, turn it 90° left or right, or flip it horizontally or vertically, with a live preview before you download.
Runs in your browserImage Cropper
Crop a photo by dragging a box on it or typing exact pixels, with ready ratios for square, 4:5, 16:9 and 9:16 posts and stories.
Runs in your browserHow this guide is maintained
This page is reviewed when the related tools change. It describes what the published tools actually do: the tools run in your browser tab, so your files stay on your device. If you find something inaccurate, email [email protected] and it will be corrected.
Other guides
- How to merge PDFs without uploading them6 min · 17 November 2026
- OCR a scanned PDF: accuracy, limits and privacy7 min · 17 November 2026
- Compress a PDF without destroying readability6 min · 17 November 2026