Image to Text (OCR)
Drop a screenshot, a photo of a page or a scan, and the text in it comes out as text you can copy, search and edit. Recognition is done by Tesseract, the open-source OCR engine, compiled to WebAssembly and running in this tab — the picture is never sent to a server.
Drop screenshots, photos or scans here
PNG, JPG, WebP, GIF, BMP — multiple files allowed
First run downloads the OCR engine (1.1 MB) and the English model (2.8 MB) from jsDelivr; your browser keeps both afterwards. The image itself is never sent anywhere.
How to get text out of an image
- Drop the image, click the box to browse, or paste a screenshot straight from the clipboard with Ctrl/⌘+V.
- Pick the language the text is written in. The first run downloads the engine and that language's model; the sizes are shown before anything is fetched.
- Press Read text. The text appears in the box, ready to copy, and each image also gets its own
.txtdownload — with several images, one ZIP holds them all. - If the result is poor, change Layout before anything else — see below.
Getting a clean read
Tesseract's own documentation is blunt about what it needs, and this page does three of those things for you before the image is read:
- Dark text on a light background. Since version 4, Tesseract expects that way round. With colours on Auto, an image whose average brightness is dark is inverted first, so a dark-mode screenshot reads like a printed page. Text on a transparent PNG is placed on white — or on black and then inverted, if the text itself is pale.
- A margin. Text cropped tight to the edge of the image can be missed, so a 12-pixel white border is added around every image.
- Resolution. Tesseract works best on images of at least 300 dpi — a page of ordinary print scanned at 300 dpi has letters several times taller, in pixels, than the 11-pixel labels in a screenshot. So images whose longer side is under 1,600 pixels are enlarged 2× before reading. Untick the box if a large, clean scan comes out worse.
What it cannot fix: blur, heavy JPEG artefacts, curved pages and steep angles. Straighten a tilted photo with Rotate by angle or Perspective, and crop away everything that is not text with Crop, before running OCR.
Which layout mode
- Auto — Tesseract's default: it finds the text blocks and columns itself. Right for pages, documents and most screenshots.
- One block of text — treats the whole image as a single paragraph. Use it when Auto splits one paragraph into pieces or misses a block.
- One column, mixed sizes — a single column with headings and body text of different sizes, such as a receipt or an article cut-out.
- A single line — a cropped line of text: a serial number, a caption, a code.
- Scattered text — finds as much text as possible in no particular order. For diagrams, maps, screenshots of interfaces with labels everywhere.
Line breaks are kept as Tesseract found them, and runs of spaces between words are preserved, so a screenshot of a table or of code keeps roughly its columns. Formatting — bold, fonts, colours — is not recognised.
Languages and downloads
One language per run, chosen before you start. Each model is a separate download of 0.4 to 2.9 MB (the list shows each one), on top of the 1.1 MB engine. Tesseract.js stores each model in your browser after the first download, so a second visit does not fetch it again. Running English over French text loses every accent; running it over Cyrillic or Chinese produces nonsense — pick the language of the text, and for a page that mixes two, the main one.
What OCR will not do
- Handwriting. Tesseract's own FAQ: you can try, "but it won't work very well, as Tesseract is designed for printed text."
- Barcodes and QR codes are not text and are not read.
- PDFs. This page takes images. For a scanned PDF, use OCR PDF on pdftoolskit.org, which can also make the PDF searchable.
FAQ
Is my image uploaded to do the OCR?
No. The engine and the language model are downloaded from jsDelivr, a public CDN, and the recognition runs in a worker inside this tab. Those downloads carry no image data, and nothing is sent back.
What does the confidence percentage mean?
It is Tesseract's own average confidence in the words it recognised, from 0 to 100. It is a useful warning light rather than an accuracy figure: a low number means check the text carefully, but a high one does not promise every character is right.
Why is the first run slow?
It is downloading the engine and the language model and starting them up. Later runs on the same page reuse the running engine, and changing the language downloads only the new model.
The output is empty or garbage. What now?
Try, in order: the right language; another layout mode (One block of text or Scattered text); setting colours to match the image; cropping to just the text. A photo taken at an angle should be straightened first.
Can it read several images at once?
Yes. Drop them all; they are read one after another with the same language and layout. The text box shows them in order, each under its file name, and every image gets its own .txt file plus a single ZIP.
Part of: Tidy up a scan or a photographed document
Deskew before cropping, or the crop keeps the tilt and cuts a corner off.
- 1 Rotate by angle Straighten it by a fraction of a degree
- 2 Perspective Pull a photographed page back to rectangular
- 3 Auto levels Make the paper white and the ink black
- 4 Auto-trim Cut the desk out of the edges
- 5 Image to text (OCR) Copy the words off the page as editable text
- 6 PNG to PDF Bundle the pages into one document