What is OCR and how does image-to-text work?
OCR stands for Optical Character Recognition — the technology that reads the shapes of letters and numbers inside a picture and converts them into real, editable text. When you take a photo of a page, capture a screenshot, or scan a document, the result is just an image: a grid of colored pixels that a computer cannot search, copy, or edit. OCR bridges that gap by analyzing the pixel patterns, detecting individual characters and words, and outputting them as a text string you can select, copy, and paste anywhere.
This tool is powered by Tesseract.js, a JavaScript port of the well-established Tesseract OCR engine originally developed at Hewlett-Packard and later maintained by Google. Recognition runs directly inside your web browser using WebAssembly, so no server ever sees your image. The one network step is fetching the engine itself: on first use your browser downloads the Tesseract.js engine and language model (about 4.4 MB for English) from the public cdn.jsdelivr.net CDN. When you load an image, the engine binarizes and segments it, isolates lines and words, and matches the character shapes against a trained language model to produce the recognized text. Because the processing happens locally, your documents, receipts, and private screenshots are never uploaded anywhere — a real advantage when the content is confidential.
The first time you run the tool, your browser downloads the engine and the language model (the trained data file the engine uses to recognize characters) from cdn.jsdelivr.net. This download is then cached, so subsequent runs start faster; only these program files travel over the network, never your image. English is used by default, and you can switch to Spanish, French, German, Chinese (Simplified) or Japanese, each with its own model downloaded the first time you pick it. Larger or more detailed images take a little longer to process because there are more pixels to analyze.
How to use Image to Text (OCR), step by step
- Drop an image, screenshot or scan onto Drop an image. Crop away anything that is not text first; it gives the engine less to misread.
- Choose the Language of the text: English (default), Spanish, French, German, Chinese (Simplified) or Japanese.
- Press Extract text. The first run for a language downloads the recognition engine and language model from a public CDN; later runs reuse the browser's copy.
- Read the result in Extracted text. Proofread numbers, email addresses and words next to quote marks; that is where errors usually appear.
- Press Copy text, or Download TXT to save it as extracted-text.txt.
- If the text is small in the image, enlarge it first with the resizer (2× is often enough) and run it again.
Real example: the same four lines at two text sizes
We made a 900 × 300 screenshot of four lines (239 characters: an order number, weights, a tracking code, an email address, a phone number and a price in pounds) set in Arial at 16px. In English mode the text came back with no errors at all, in 1.0 second including the first download of about 7 MB of engine and model files. A second run in the same tab took 0.6 seconds.
The same lines at 11px came back with 7 of 41 words wrong: parcel became parce, support@ became suppori@, Total became Tota, and stray quote marks appeared at two line starts.
| Text size | Words wrong | Time |
|---|---|---|
| 16px Arial | 0 of 41 | 1.0 s (first run), 0.6 s (repeat) |
| 11px Arial | 7 of 41 | 1.1 s |
| Our test graphic (title + caption) | 0 | 1.1 s |
Last updated
Image to Text (OCR) compared with other ways to do it
Live Text, Snipping Tool and PowerToys
Recent macOS versions let you select text directly in photos with Live Text, Windows 11's Snipping Tool has Text actions, and Microsoft PowerToys includes Text Extractor. If you have them, they are quicker for a screenshot you just took. This tool works the same in any browser and saves the result as a TXT file.
Adobe Acrobat and desktop OCR
Acrobat's OCR turns scanned PDFs into searchable documents with the layout kept, across many pages at once. That is the right tool for whole documents. This tool reads one image at a time and returns plain text without layout, which suits screenshots, receipts and photos of a page.
Upload-based OCR services
Cloud OCR services often support more languages and can do better on handwriting and poor photos. They need the image uploaded. Here only the recognition engine is downloaded; the image stays in the browser, which matters for receipts, letters and screenshots of private messages.
Getting the best results from OCR
OCR accuracy depends heavily on the quality of the source image. Clean, high-contrast scans and screenshots of printed text produce the most reliable results — often near-perfect on clear documents. To improve accuracy, use a well-lit, in-focus image where the text is large, sharp, and roughly horizontal. Straightening a tilted photo, cropping away irrelevant background, and increasing contrast all help the engine isolate characters correctly.
Be aware that OCR is not perfect. Handwriting, stylized or decorative fonts, low-resolution photos, heavy JPEG compression, glare, shadows, and skewed or curved text can all reduce accuracy or introduce mistakes. The engine is optimized for printed, machine-set type rather than cursive or hand-lettering, so handwritten notes may come out garbled. Complex page layouts with multiple columns, tables, or text overlaid on busy backgrounds can also confuse the line-detection step and jumble the reading order.
For these reasons it is always worth proofreading the extracted text before you rely on it, especially for numbers, punctuation, and unusual names where a single misread character matters. Common workflows include digitizing a printed article so you can quote it, pulling a phone number or address out of a screenshot, converting a receipt into editable text for expense tracking, or copying code and error messages from a screenshot instead of retyping them by hand. Because the whole process is free, private, and instant after the model loads, you can try it as many times as you like and re-run on a better-quality image if the first attempt falls short.