Convert PNG to text

Read the text in PNG images, diagrams and screenshots, and copy it out, all on your device.

Convert PNG images and screenshots to text in your browser. It is free, needs no account and adds no watermark, and your files are not uploaded: everything runs in your browser on your device. The first run downloads the text reader (about 4 MB) and the WebAssembly engine that runs it to your browser, and after that the tool works offline.

Drop PNG images to convert to textor click to choose files. Batches welcome.
    Details

    Reads printed English text. The first run downloads the text reader and its WebAssembly engine (about 4 MB) from this site; after that it works offline.

    Working…

    Done

    Free, no ads. Support StayPut

    Your files are processed on this device and never sent to a server. Reload the page to clear everything from memory.

    PNG is the format for screenshots, exported slides, diagrams and scans saved without compression, so its text is usually crisp and an easy read for OCR. Drop a PNG here and its words come back as plain text you can copy or save.

    PNGs with transparent backgrounds, like logos or text cut out of a design, are placed on white first so dark lettering does not vanish into a black background. Small images are enlarged before reading.

    Everything runs in your browser. Diagrams from work, screenshots of documents and exported slides stay on your machine; the page does not upload them, and after your first run it keeps working offline.

    PNG is the usual format for exported slides, UI mockups and screenshots of code, and each has its own quirk. Slides read well, but text boxes laid out side by side can be read in an unexpected order. Mockups often use pale grey labels that are easy to miss. For code, keep line breaks as they are; the words and symbols come through, but indentation and runs of spaces are usually lost, so reformat it in your editor.

    A PNG saved from a design tool at 1x can be small, a button label only a dozen pixels tall. Images under 1200 px on the long side are doubled before reading, which rescues most of these. If a small PNG still reads badly, export it again at 2x or 3x rather than enlarging it yourself. A fresh export draws the letters with real detail, while an enlarged copy only makes the existing blur bigger.

    How it works

    1. Drop one or more PNG files, or tap to pick them.
    2. Keep line breaks, or join them into paragraphs.
    3. Read text, then copy it or save the .txt files.

    In your browser, not on a server

    Your browser decodes the image (libheif or the Squoosh decoders step in for HEIC, AVIF and JPEG XL), enlarges small screenshots so letters are big enough to read, and hands the pixels to Tesseract, the open-source OCR engine first built at HP and later developed by Google, compiled to WebAssembly by tesseract.js (Apache-2.0). Its neural network model for English is served by this site and loaded the first time you run it. The text is recognised line by line inside a worker in your tab.

    Compared with upload-based tools: The pictures people want text from are often private: a letter, a receipt, a bank statement, a prescription, a screenshot of a conversation. Online OCR sites upload the image to their server to read it and keep it for hours, and several limit free use or ask for an account. Here the image never leaves your device, and after your first run the page keeps working with Wi-Fi off.

    Verify it yourself. Give the page a short while after your first run to save itself for offline use, then turn off Wi-Fi or switch to airplane mode and run the tool again. Or open your browser's developer tools (F12, or Cmd-Option-I on a Mac), pick the Network tab, and watch it while you convert. The panel above does the same count for you.

    Questions

    Does it read text in diagrams and charts?

    It reads labels, titles and legends, but not the shapes or the connections between them. Text at an angle, such as a rotated axis label, is often skipped.

    Why convert a PNG to text instead of keeping the image?

    Text is searchable, a fraction of the size, can be edited and read aloud by a screen reader, and pastes into anything.

    Does it keep the indentation in a screenshot of code?

    Usually not. The reader returns each line’s words and symbols with single spaces between them, so leading spaces and alignment are dropped. Keep line breaks as they are so each line of code stays on its own line, then let your editor’s format command put the indentation back.

    Why are some labels in my exported slide missing?

    Text that is very pale, very small or set at an angle is the most likely to be skipped. Text over a photo or a strong gradient can also be missed. Exporting the slide at a larger size, or with the background image hidden, gives the reader a cleaner picture of the words.

    Is the file uploaded anywhere?

    No. There is no server in this process. The page is a static file and the work is done by code running inside your browser tab. Give the page a short while after your first run to save itself for offline use; then you can turn off Wi-Fi and it still works.

    More image tools

    Other conversions

    Guides