How to extract text from image files and get it right
To extract text from image files, the picture matters more than any setting: sharp, straight, dark letters on a plain light background, cropped so the words fill the frame. This guide covers what to do before you start, how to run the reading, how to proofread it and which pictures will never read well.
What makes it easy to extract text from image files
Text recognition looks at shapes and decides which letter each one is. It succeeds when the shapes are clean and fails when they are smudged, so almost every good result comes from a good picture. A screenshot is the easiest case: the letters are crisp, perfectly horizontal and drawn in a standard font. A photo of a printed page comes next, provided the page is flat and evenly lit.
Four things help most. First, contrast: dark letters on a light background beat pale grey on white, and white letters on a dark background are riskier than the reverse. Second, size: the letters should be big enough that each one covers a good number of pixels, and a rough rule of thumb is a capital letter at least 20 pixels tall. Third, straightness: a page photographed at an angle, with the far edge narrower than the near one, makes the lines drift. Fourth, a quiet background: a pattern, a photo or a gradient behind the words gives the reader false shapes to chase.
If your picture already fits that description, you can go straight to the steps below. If not, the next sections fix the usual problems before you run anything.
Steps: turning a photo into text in your browser
The Image to text tool on this site reads the picture on your own device. Nothing is uploaded, nothing is installed, there is no sign-up and no watermark. This is the sequence:
- Add the picture with ‘Choose a file’, or drop it on the page. A scanned PDF also works and is read page by page.
- Under ‘Document language’, tick every language that appears in the text. English is ticked to begin with, and your choice is remembered next time.
- Click ‘Extract text’. The first run downloads the reading engine and the data for your languages, then a progress bar follows.
- Read the result in the box. It is ordinary editable text, so fix wrong letters right there.
- Click ‘Copy’ to put it on the clipboard, or ‘Save as TXT’ to download a plain text file. ‘Start over’ clears the page for the next picture.
Crop to the words before you run the reading
The tool reads the whole picture and has no way to select a region. That matters because a screenshot full of menus, icons and buttons produces a pile of stray characters around the lines you actually wanted. A photo of a desk gives you the label you meant plus half a dozen scraps of print from everything nearby.
The fix takes a few seconds. Open Crop image, drag the frame so it holds only the paragraph, table or sign you want, and save the cropped file. Then feed that file to the text reader. A tighter picture also reads faster, because there is less to scan, and it lines up better with how the engine splits text into blocks.
Leave a small margin of background around the words instead of cutting right against the letters. A frame that touches the first and last characters can clip them, and clipped letters are one of the quieter ways to end up with a missing word.
Small text: enlarge the picture first
Tiny print is the most common reason a photo to text converter returns nonsense. If the letters are only 8 or 10 pixels tall, several of them blur together, and no amount of patience in the reader can recover shapes that are not in the file. Enlarging the picture first gives each letter more pixels to be described with.
Open Upscale image and choose 2× or 4×, or use Resize image to set an exact size. A caption that is 12 pixels tall becomes 24 after a 2× enlargement and 48 after a 4×. Enlarging cannot invent detail that was never recorded, so it helps most for text that is small but still readable to your own eye, and helps little for a smear.
There is a ceiling worth knowing. The reader scales any picture down so that its longer side is at most 3000 pixels. A picture of 1500 × 1000 pixels is a good candidate for a 2× enlargement, which lands at 3000 × 2000 and is read in full. A 3000-pixel picture gains nothing from a further enlargement, because it would only be shrunk back. For a PDF, each page is drawn at twice its normal size, which is 144 dpi.
Pick the right language, or several
The tool can read English, German, French, Spanish, Portuguese, Japanese and Korean. Each name is shown in its own language, for example Deutsch or Español. The setting is not a detail: the reader uses the language to decide which words are likely, so a French menu read as English comes out with broken accents and invented words.
Tick every language that actually appears. A bilingual sign, a product label with two languages or a Japanese page with English product names are cases for two ticks. Do not tick extra languages just in case, because each one makes the reading slower and gives the engine more wrong answers to choose from. The data for each language is between 0.7 and 3 MB and the engine itself is roughly 4 MB, downloaded once and then kept by your browser.
For scripts such as Japanese and Korean, which have thousands of characters, the quality of the picture matters even more than for the Latin alphabet, because a single stroke separates one character from another. Use the largest, cleanest version of the picture you have.
Proofread: how to check the text you copied
Treat the result as a first draft and never as a verified copy. When the run ends, a line reports how many characters were found, with spaces and line breaks not counted. That number is a quick sanity check: if the picture had a full page and the count is tiny, the reading missed most of it. If it reports none, try a sharper picture or another language.
Then read the text against the picture, with extra attention to anything where a slip would cost you: names, phone numbers, amounts, dates, codes and addresses. Look for shapes that are easy to confuse, such as the digit 0 and the letter O, the digit 1 and a lowercase l, or rn read as m. Accents and punctuation are also easy to lose, so check them in languages that use them heavily.
The result is plain text. Bold, columns, table borders and font sizes are not kept, and a table comes out as lines that you may need to rearrange. Several pages are separated by a heading line for each page. Because the text sits in an editable box, correct it there before you copy or save.
What does not work, and what to try instead
Handwriting is the main limit. The engine is built for printed letters, so neat block capitals may come out partly right and joined-up writing usually will not. Curved text, such as a label wrapped around a bottle or a page bulging out of a book spine, bends the lines and the letters, and results get patchy toward the curve. Photograph it flatter and from straight on if you can.
Low resolution, heavy compression, motion blur, glare across the words and very decorative fonts all lower the odds. White text over a busy photo is a bad case too. Rotated pictures are another trap: a sideways photo should be turned upright with Rotate image before it is read.
If the result is poor, change the picture and not the settings: move closer, light the page evenly, shoot square on, crop, enlarge, and try again. No tool can promise a particular accuracy, and this one does not. If the file is a PDF whose text you can already select, copying it directly from the viewer is more exact than reading it as a picture.
Questions and answers
How do I extract text from image files without installing anything?
Open the Image to text tool, add the picture with ‘Choose a file’, tick the language of the text and click ‘Extract text’. Then use ‘Copy’ or ‘Save as TXT’. It runs in your browser, so nothing is installed and the picture is not uploaded.
Can I copy text from a photo of a page or a sign?
Yes, if the letters are printed and sharp. Photograph the page flat, in even light and straight on, crop to the words, and the result is usually usable after a proofread. Curved, blurry or tilted shots read much worse.
Why is my image to text result full of strange characters?
The usual causes are a small or blurry picture, the wrong document language, or a busy background. Crop to the words, enlarge small text with Upscale image, and tick the language the text is really written in.
Which languages can it read?
English, German, French, Spanish, Portuguese, Japanese and Korean. You can tick more than one for mixed text, but every extra language slows the reading down.
Can it read handwriting?
Not reliably. It is built for printed letters. Neat block writing may be partly right, while cursive usually is not, so plan to retype handwritten notes.
Do I need to proofread the extracted text?
Yes. Recognition can swap look-alike shapes such as 0 and O, so check names, numbers and amounts against the original before you rely on them.