Image to text

Turn a photo or scan of printed text into a plain .txt file you can edit, search and paste.

or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.

Downloads a small public example. Your own files are not used.

Boost contrast before reading
Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To convert an image to text, drop a JPG, PNG, WebP, HEIC or TIFF onto this page and press Read the text. Tesseract, an open-source OCR engine, reads it inside your browser, so the picture is never uploaded. You get a .txt file per image plus a confidence score. The bundled model reads English printed text.

A worked example

See a real input and result

This synthetic sample produced 1 output file from 1 input file. These are synthetic demonstration files, not someone’s documents.

Input sample

Input sample: input-1-scan.jpg

Actual output

Input count
1
Output count
1
Words recognised
2
Confidence
96%
Input 1 dimensions
1000 × 280 px
Recognized text 1
HELLO WORLD
Input bytes
13764
Downloadable output bytes
11

Settings used: preprocess: true

This synthetic sample only; results depend on the input. Recognition runs on your device — the image is never uploaded, which is the only responsible way to handle a scanned passport or payslip. Check the result against the original: OCR is very good, not perfect. Proofread recognized text and numbers before use.

Ran through this tool on . Use “Try sample files” above to run it yourself.

How to extract text from an image for free

  1. STEP 1

    Add your images

    Choose or drag in one or more JPG, PNG, WebP, HEIC or TIFF files. They stay on your device.

  2. STEP 2

    Leave contrast boost on

    Boost contrast before reading converts the image to greyscale and stretches it, which helps most photos and scans.

  3. STEP 3

    Press Read the text

    The first run downloads about 7 MB of OCR assets. Wait for that download to finish; recognition time then depends on image size and your device.

  4. STEP 4

    Check and save

    Look at the words recognised and the confidence score, then save the .txt files, zipped if there are several.

What OCR actually does

Optical character recognition looks at the pixels of an image, finds shapes that look like letters, groups them into words and lines, and writes out the characters it is most confident about. A photo of a page contains no text at all as far as a computer is concerned until something like this has run.

Accuracy depends far more on the image than on the engine. Sharp, evenly lit, straight-on text at a decent size reads almost perfectly. Small type, motion blur, curved pages, coloured backgrounds and decorative fonts are where every OCR engine starts guessing.

What survives, and what does not

The page loads tesseract.js, a WebAssembly build of the Tesseract engine, together with its English LSTM model, all served from this site rather than a third-party CDN. With "Boost contrast before reading" on, each image is first converted to greyscale and its brightness range stretched to full black and white, which helps faint or low-contrast scans. One recogniser is started and reused, so the second image in a batch is much quicker than the first.

What you keep

Line breaks roughly as they appear on the page

Every image in a batch, each as its own .txt file

A confidence percentage; in a batch it is the highest image score, not an average or a score for every file

What you lose

Fonts, bold, italics, colours and layout: the output is plain text

Languages other than English: only the English model is bundled, so accented and non-Latin text reads poorly

Multi-page TIFFs beyond the first page

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

Image to text at a glance

InputJPG, PNG, WebP, GIF, BMP, AVIF, HEIC, TIFF (first page)
OutputPlain text (.txt), UTF-8
LanguageEnglish
BatchYes, one .txt per image
Enginetesseract.js (WebAssembly)
First-use downloadAbout 7 MB, cached afterwards
Works offlineAfter the first use

If something goes wrong

The recognition engine could not start

Reconnect and retry so the OCR worker, WebAssembly core and English model can finish downloading from this site. An incomplete first download cannot run offline.

It says no text could be read

The text is probably too small or blurred. Crop to just the text, photograph it closer and straight on, and make sure the contrast boost is on.

The words are mostly right but full of odd symbols

That usually means a busy background or a decorative font. Crop out pictures and borders, or try a cleaner scan of the same page.

A HEIC photo fails with contrast boost off

HEIC and TIFF are decoded by the contrast step. Turn Boost contrast before reading back on and run it again.

Image to text questions

Is my image uploaded to extract the text?

No. The OCR engine and its language model are downloaded to your browser once and run there. The image itself never leaves your device, which is why this is a reasonable place to read a payslip, ID or medical letter.

How accurate is it?

On a clean scan or screenshot of ordinary printed English, very accurate, often with only a handful of errors per page. Accuracy drops quickly with blur, small type, skewed photos and stylised fonts. The confidence score shown after each run is a good guide to how much proofreading to do.

Which languages does it support?

English only at the moment. The bundled Tesseract model is the English one, so French or German text comes out with accents dropped or mangled, and scripts such as Chinese, Arabic or Cyrillic will not be read usefully.

Can I extract text from an image on iPhone or Android?

Yes. Open the page in Safari or Chrome, tap to choose a photo from your library, and the recognition runs on the phone itself. It is slower than on a laptop, and the first run needs the 7 MB engine download.

Does it work offline?

Yes, once you have used it on that browser. The engine files are cached by the site after the first download, so later runs work with no connection.

Can it read a PDF?

Not this tool, which takes images only. For a scanned PDF use Scan to searchable PDF, which reads every page and lays the text back into the document.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/image-to-text
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy