Photo2Text - home
Menu

Home / Guide

How to Extract Text from an Image

A beginner walkthrough for turning photos and screenshots into editable text with free, private browser OCR.

·

What OCR actually does

Optical character recognition (OCR) looks at pixels and guesses characters. It is not magic and it is not 100% accurate, especially on blurry phones, fancy fonts, or complex scripts. Treat every result as a draft you may need to fix. Photo2Text uses the open-source Tesseract engine inside your browser so the image itself does not get uploaded to our servers.

Step-by-step: extract text from an image

  1. Prepare the image. Use even lighting, reduce glare, and crop tightly around the words you care about.
  2. Open the converter. Go to the Image to Text tool on Photo2Text.
  3. Choose a language. English is fine for most screenshots; pick Urdu or Arabic when the page is in those scripts.
  4. Upload or drop the file. JPG, PNG, and WebP work. On phones you can also take a photo.
  5. Click Extract Text. The OCR model loads on demand, that keeps the first page visit fast.
  6. Edit, copy, or download. Fix obvious mistakes in the textarea, then copy or save a .txt file.

Quick quality checklist

  • Text should be readable when you zoom the photo yourself.
  • Prefer PNG for UI captures , run OCR on a PNG when fonts look sharp on screen.
  • Camera photos are usually JPEG , convert a JPG photo at high quality rather than re-compressing it for chat apps.
  • Error dialogs and chat bubbles? Pull text from a screenshot with English as the default language.
  • One language (or a deliberate combined mode) beats guessing.
  • If output is gibberish, recrop and reshoot before blaming the tool.

Choosing the right image format before you start

Most images you meet are JPG, PNG, or WebP, and the format already decides how much detail the OCR engine has to work with. PNG keeps every pixel exactly as captured, which is why it is the best choice for screenshots, slides, and any image with sharp text on a flat background. JPG compresses the image to save space, and heavy compression blurs the edges of small letters, so a photo saved at low quality can lose letters that were clear on screen. WebP sits between the two and usually works fine when it comes straight from a browser or a modern phone. The practical rule is simple: use the original file whenever you can. Do not screenshot a photo, do not re-save a PNG as a low-quality JPG, and do not run OCR on a copy that has already passed through a chat app, because each save throws away detail. If someone sends you an image on WhatsApp or a similar app, ask for the original file instead of the compressed forward when the text matters.

Photographing a printed page well

A good photo starts before you open the OCR tool. Lay the page flat on a plain surface and hold the phone parallel to it, so the lines stay horizontal and the top of the page is not smaller than the bottom. Stand so your own shadow does not fall across the text, and use soft daylight or a lamp off to the side rather than a flash pointed straight at glossy paper, because glare turns whole words white. Fill the frame with the paragraph you need instead of photographing a whole desk, and tap the screen to focus on the middle of the text before you shoot. The rear camera of a phone is usually sharper than the front camera, so use it even if it feels less convenient. Take two or three shots and zoom into each one on the phone screen: if you can read every line comfortably at full zoom, the OCR engine probably can too. If a line looks soft, move closer or add light rather than hoping the tool will guess it. A creased or curled page is worth flattening under a book for a minute, because a fold that bends a line will bend the OCR result with it.

Working with screenshots and chat messages

Screenshots are some of the easiest images to convert, because the text was drawn by software and never passed through a camera lens. The main job is cropping: cut away the status bar, the navigation buttons, and any unrelated chat above or below the message you need, so the engine spends its effort on the right words. Chat bubbles can confuse line order when two speakers alternate, so crop one message at a time when the order matters. Error dialogs and small settings text are worth capturing at full screen resolution, and on a phone you can zoom the display or take the screenshot in landscape when the text is tiny. Dark mode is usually fine because the contrast between light text and a dark background is still strong, but a screenshot with a busy photo behind translucent text will struggle, so crop to the text block itself. If the screenshot is long, split it into two or three images instead of shrinking the whole page into one small file, because shrinking is the fastest way to lose small letters.

Dealing with mixed languages and scripts

Many real documents mix scripts: an Urdu letter with an English address, an Arabic certificate with Latin numbers, or a screenshot with English menus and Arabic chat. The OCR engine reads best when it knows which scripts to expect, so pick the language that matches most of the page, and use a combined mode such as English plus Urdu or English plus Arabic when both scripts share the same crop. When one script dominates a page and the other appears only in a heading or a footer, crop the two parts separately and run each with its own language, because a single language choice across a mixed page often produces errors in the minority script. Numbers written in Latin digits inside Arabic or Urdu text are usually handled well by combined modes, but numbers written in Arabic-Indic digits need the Arabic or Urdu model to be active. If the result mixes up the order of a bilingual line, split the line into two crops, one per script, and join the results yourself in your document. That extra minute is cheaper than untangling a jumbled paragraph later.

Editing and fixing OCR output

Every OCR result is a draft, and a short proofreading pass is part of the workflow, not a sign that the tool failed. Read the output against the image line by line, and pay special attention to names, dates, amounts, and phone numbers, because a single wrong digit changes the meaning completely. Common confusions are predictable: the digit 0 and the letter O, the digit 1 with a lowercase l and an uppercase I, and the letter pair rn read as m. Punctuation is another weak spot, since a comma can vanish and a full stop can appear where a speck of dust sat on the page. Keep the original image open beside the text while you edit, and fix problems in the order they appear rather than jumping around, so you do not skip a line. Do not delete the source image until the text is saved and checked, because re-running OCR on the same image is quick, but re-taking a photo of a page you have already returned is not. When the text will be quoted or sent to someone else, read it once aloud: your ear catches missing words that your eye skips over.

Common mistakes and how to fix them

  • Gibberish output: the wrong language is selected, or the image is upside down. Check the language setting and rotate the image so the text reads normally.
  • Missing first or last lines: the crop cut them off, or a shadow darkened the edge of the page. Include a small margin around the text and re-shoot with even light.
  • Jumbled line order: the page has two columns, a table, or a sidebar. Crop one column at a time and run each separately.
  • Words joined together: the text is small or the contrast is weak. Crop tighter, increase the size, and check that dark ink sits on a light background.
  • Extra stray characters: background patterns, stamps, or ruled lines are being read as text. Crop them out or cover them before you extract.
  • Same errors on every retry: the image itself is the problem, not the tool. Re-shoot the page instead of running the same blurry file again.

What OCR cannot do

Knowing the limits saves more time than any tip. Casual handwriting is unreliable for open-source OCR, because every person writes the same letter differently, and joined-up handwriting blurs the boundaries between characters. Heavily stylized or decorative fonts, text curved around a logo, and text photographed at a steep angle are all likely to fail, because the engine expects roughly straight lines of ordinary print. Very small text that is already unreadable when you zoom in will not become readable by running OCR on it, and a low-resolution image cannot be repaired by enlarging it, since enlargement only makes the same blurry pixels bigger. Text inside a complex diagram, a table with merged cells, or a form with boxes and lines needs a human to check the layout, because the engine reads characters, not meaning. Treat OCR as a fast first draft for printed text in good condition, and budget a few minutes of checking for anything important.

Saving and reusing your extracted text

Once the text looks right, save it somewhere you can find it again. Copy it into a notes app or a document for editing, or download the plain text file and give it a name that describes the source, such as the document title and the date, rather than leaving it as an untitled download. Keep the original image with the text file when the document matters, because the image is your proof of what the page actually said, and it lets you re-check any line you later doubt. Extracted text is easy to reuse: paste it into a search box to find the same document online, drop it into a translation tool, quote it in a message, or turn it into a checklist. If you extract text from the same kind of document often, such as receipts or certificates, keep one folder for the images and one for the text files, so a later search finds both. A small habit of naming and filing saves the second extraction entirely.

Where to go next

Need script-specific help? See prep tips for Urdu photos, then open Urdu OCR (اردو او سی آر) or Arabic OCR (العربية) for the matching language model. Format-focused pages: screenshot to editable text, JPG photos, and PNG captures. Comparing options? Read our honest free OCR comparison. Back to the homepage OCR tool when you are ready to extract. Site info: About, Contact, Privacy Policy, Terms, and the full sitemap.

Sources & further reading

Try our OCR tools

Same private browser OCR. Pick the page that matches your language or file type.

Frequently asked questions

Not with Photo2Text. Open the site in a modern browser, choose an image, and run OCR locally. No desktop install and no account are required for the basic workflow.