pngtoolskit.org
PNG and image utilities, in the browser
Workflows Sign in Create accountSign up

Image to Text (OCR)

Tesseract.js · 23 languages · screenshots, photos, scans · copy or .txt · nothing uploaded

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.

    no files
    Ready.

    How to get text out of an image

    1. Drop the image, click the box to browse, or paste a screenshot straight from the clipboard with Ctrl/⌘+V.
    2. 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.
    3. Press Read text. The text appears in the box, ready to copy, and each image also gets its own .txt download — with several images, one ZIP holds them all.
    4. 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:

    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

    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

    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. 1 Rotate by angle Straighten it by a fraction of a degree
    2. 2 Perspective Pull a photographed page back to rectangular
    3. 3 Auto levels Make the paper white and the ink black
    4. 4 Auto-trim Cut the desk out of the edges
    5. 5 Image to text (OCR) Copy the words off the page as editable text
    6. 6 PNG to PDF Bundle the pages into one document

    All 29 step-by-step workflows