Skip to content
PicInverter

How to extract text from an image (and get more accurate results)

Optical character recognition (OCR) reads the letters in a picture and gives you text you can edit. The quality of the result depends mostly on the image, so a few habits make a big difference.

Published by Satyajit Srichandan · Published · Updated · 5 min read

Featured image: How to extract text from an image (and get more accurate results)

Why do this?

Typing text out of a picture is slow and easy to get wrong, especially in Hindi, where matras and conjunct letters are hard to type.

OCR reads the letters for you, so you only need to proofread. Because it runs in your browser, you can use it on documents you would rather not upload to a website.

Choose the right tool

  • Image to Text is for whole images, and for batches. Add several images, pick a language and download each result or one combined TXT file.
  • Extract Text from Image is for one image where you only want part of it. Draw a box around the text you need and the rest is ignored.

Prepare the image

  • Photograph or scan the page straight on, so lines are horizontal and not angled.
  • Use even light with no shadows or glare across the text.
  • Make sure the letters are large enough. If the text is tiny, retake the photo closer or at a higher resolution.
  • Crop away borders, pictures and other clutter, or select only the area you need.
  • A screenshot is usually cleaner than a photo of a screen, so use a screenshot when you can.

Pick the language

Choose the language the text is written in. The languages currently available are English, Spanish and Hindi (printed text), and combinations of English with Spanish or Hindi. A wrong choice produces nonsense, especially with accents and non-Latin letters. Other languages are not available yet.

Extract, then proofread

  1. Step 1: Add the image

    Open Image to Text and drag in a JPEG, PNG or WebP image, or press “Browse Files”. A straight, well-lit photo works best.

    The Image to Text upload box with the “Browse Files” button marked in orange.
  2. Step 2: Choose the language

    Pick the language the text is written in. Available: English, Spanish and Hindi (printed text), and English with Spanish or Hindi. A wrong choice gives nonsense.

    The “Language of the text” list marked in orange.
  3. Step 3: Press Extract text

    Press “Extract text” and wait for the progress bar. The first run downloads the engine and language data, so it takes longer.

    The “Extract text” button marked in orange.
  4. Step 4: Proofread, then copy or download

    Read the text box and fix mistakes in place, paying most attention to numbers, names and punctuation. Then press “Copy text” or download a TXT file.

    The extracted text box and the “Copy text” button marked in orange.

What OCR can't do well

  • Handwriting is not supported and usually gives unusable results.
  • Tables, forms and multi-column pages may come out in a different order than you read them, and formatting is not kept.
  • Blurry, low-resolution, curved or decorative text lowers accuracy. The confidence figure is the engine's own estimate, not a guarantee.

Privacy

Recognition runs in your browser, using an engine hosted on this site. Your images and the extracted text are not uploaded to PicInverter's servers.

Open Image to Text

Frequently asked questions

Can I extract text from a PDF?

Not directly. Use PDF to Image to turn the pages into images, then run Image to Text on them.

Why is the text wrong or in the wrong order?

Blur, low resolution, glare, unusual fonts, tables and columns all reduce accuracy. Retake or crop the image, check the language, and proofread.

Can it read Hindi?

Yes, printed Hindi (Devanagari) is available as a language. Handwriting is not supported.

Tools used in this guide

More guides