How to Extract Text From an Image

ScanText converts readable text in a photo, screenshot, or scanned document into editable text. The tool uses optical character recognition (OCR) in your browser, so you can quickly copy, edit, or download the result.

1. Choose an image

Open the image-to-text converter and choose a JPG, JPEG, PNG, or WEBP file from your device. A clear image with sharp, high-contrast text gives OCR the best chance of recognizing each word correctly.

2. Extract the text

Select Extract Text to begin OCR. The browser analyzes visible characters in the image and returns a text version that you can review. Processing time varies with the image size, quality, and amount of text.

3. Review and use the result

OCR can make mistakes, especially with handwriting, shadows, low-resolution images, or unusual fonts. Edit the extracted text if needed, then copy it to your clipboard or download it as a TXT file.

How OCR reads your image

Behind those three steps, the OCR engine works through the image in stages. First it prepares the picture: adjusting contrast and looking for the lines and blocks where text sits. Then it breaks those blocks into individual characters and matches each shape against the letterforms it knows. Finally it assembles the characters into words and lines, using the patterns of the selected language to make sense of ambiguous shapes — for example, telling a letter O apart from a zero. Because every stage builds on the one before it, a problem early on, such as a shadow across the page, shows up as mistakes in the final text.

Languages and scripts

OCR works best when it knows which language and script to expect. ScanText has dedicated converters for scripts that many tools handle poorly: Urdu, Hindi, Arabic, and Bangla. If the text in your image is in a language you do not read, the image translator can extract it and translate it in one flow. Choosing the right script page matters: right-to-left scripts such as Urdu and Arabic need an engine that reads lines in the correct direction.

When image-to-text OCR is useful

What to do with the extracted text

Plain text is only the starting point. Turn it into a formatted document with the text to Word converter, make a shareable file with text to PDF, or — if your image contains a table — use image to Excel to get the rows and columns into a spreadsheet instead. If you have many images to process, the batch image to text tool runs them all in one go.

Tips for more accurate OCR

Use a well-lit, in-focus image. Keep the page as straight as possible, crop away irrelevant areas, and make sure the text is large enough to read. For complex layouts, always compare the result with the original image before using important information.

Try the image-to-text tool