ToolDoor
ToolsGuidesPricing
  1. Home
  2. /
  3. Guides
  4. /
  5. Image to Text (OCR)

9 min read · updated August 2, 2026

Image to Text: How OCR Works and How to Get Clean Output

Image to Text (OCR)

Extract text from images using OCR — free, no signup

Image to text conversion — optical character recognition, or OCR — reads the pixels of a screenshot, scan, or photo and returns editable, searchable text you can paste anywhere. What used to require desktop software and a flatbed scanner now runs from a browser upload, and on clean printed input the accuracy is high enough that proofreading beats retyping by a wide margin.

The gap between a near-perfect extraction and a garbled one is rarely the engine; it is the input and the operator. A crooked phone photo of a receipt under warm restaurant lighting is a fundamentally harder problem than a straight 300 DPI scan, and knowing why helps you fix it before uploading rather than correcting fifty errors after. This guide explains how OCR actually reads glyphs, how to prepare images so it reads them well, and where its remaining blind spots are — especially the ones, like digits, that spellcheck will never catch for you.

What actually determines OCR accuracy

Input quality dominates every other factor. The long-standing scanning standard of 300 DPI exists because at that resolution, ordinary body text renders with enough pixels per character for an engine to distinguish similar shapes; the practical floor is a character height of roughly 20 to 30 pixels. Below that, an e and a c, or an 8 and a B, collapse into the same smudge and the engine starts guessing.

After resolution, the big three are contrast, skew, and noise. Engines want dark text on a light, even background; a shadow falling across half a page photographed on a desk creates two exposure zones and a band of errors along the boundary. Skew — the page rotated a few degrees — degrades the line-detection step that everything downstream depends on. Noise covers the rest: JPEG artifacts from heavy compression, paper texture, bleed-through from the reverse side of thin paper, and the moiré patterns that appear when you photograph a screen instead of taking a screenshot.

This is why screenshots are the best-case input for OCR and phone photos of paper are the worst. A screenshot is perfectly flat, perfectly lit, and pixel-aligned. A phone photo adds perspective distortion, uneven lighting, focus falloff at the edges, and lens curvature — every one of which the engine has to overcome before it reads a single letter.

How OCR reads glyphs

An OCR pipeline starts with preprocessing that has nothing to do with letters. The image is converted to grayscale and then binarized — every pixel forced to pure black or pure white — using a threshold the software chooses from the image's brightness distribution, often adaptively so a shadowed corner gets a different threshold than a bright center. The page is then deskewed by detecting the dominant text angle and rotating it flat.

Next comes layout analysis and segmentation. The engine finds blocks of text and separates them from images and rules, splits blocks into lines, and lines into words. Older engines went one step further and cut words into individual characters, then classified each one by comparing its shape features — strokes, loops, endpoints — against trained patterns. That character-by-character approach is exactly where broken or touching glyphs caused cascading errors.

Modern engines instead feed whole line images to a neural network — typically a recurrent architecture trained on millions of text-line samples — that outputs a character sequence directly, without ever cutting the line into pieces. The network learns context along the way: having read the pixels of a slightly smeared word, it knows that t-h-e is overwhelmingly more likely than t-l-i-e. A language layer weighs alternatives the same way, which is how engines resolve visually identical cases — rn versus m, l versus 1 — that pure shape-matching cannot. Engines also report a confidence score per word, which is why good tools can flag their own shaky guesses.

That contextual strength has a flip side worth remembering: the language layer only helps where language exists. Serial numbers, phone numbers, prices, and reference codes give it nothing to lean on, so digit strings carry the highest error rates in any extraction — a fact that should shape how you proofread.

Preparing an image for the best extraction

A minute of preparation routinely cuts the error count more than switching engines would. The principle behind every item below is the same: do part of the preprocessing yourself, with judgment the software does not have. You know which region of the page matters, which shadow is a shadow rather than ink, and whether the document was photographed at an angle — the engine has to infer all of it from pixels.

Work down this list before uploading:

  • Crop to the text you actually want. Surrounding UI, page furniture, and background clutter add layout-analysis noise and junk lines to the output.
  • Shoot straight-on, not at an angle. Perspective distortion warps letterforms in ways deskewing cannot fully undo; lay documents flat and hold the camera parallel to the page.
  • Fix the lighting. Even, diffuse light beats bright light with shadows; avoid flash on glossy paper, which blows out a hotspot in the middle of the text.
  • Check the resolution before uploading, not after. Zoom in — if you cannot comfortably read a character on screen, the engine cannot either. Re-shoot closer rather than enlarging a small image, which interpolates pixels and adds no information.
  • Prefer originals over recompressed copies. A screenshot saved as PNG is lossless; the same image after a trip through a chat app has been recompressed and its glyph edges softened.
  • Increase contrast on faded input. For old receipts and light pencil, a quick contrast boost in any editor pushes gray strokes toward black and lifts the paper toward white — doing crudely, in advance, what binarization will attempt anyway.

What OCR still gets wrong, and how to catch it

The classic confusable glyphs remain the largest error class: 0 and O, 1 and l and I, 5 and S, 8 and B, rn and m. In prose, the language layer silently fixes most of them. In numbers, nothing fixes them — an invoice total, an IBAN, a part number, or a phone number can come through plausible-looking and wrong. The efficient proofreading strategy follows directly: skim the prose, but verify every digit string against the source, character by character, because those errors are both the most likely and the most costly.

Layout is the second weak spot. Multi-column pages can be read straight across the columns, interleaving two articles into nonsense; tables lose their cell structure and come out as word soup in roughly reading order; and text wrapped around images may be reassembled out of sequence. When a document is column-heavy, cropping and extracting one column at a time is often faster than untangling a merged result.

Handwriting is its own tier of difficulty. Neatly printed block letters extract passably; cursive remains unreliable for general engines because segmentation and letterforms vary per writer, per word. Stylized display fonts, dense watermarks behind text, and colored text on colored backgrounds all push error rates up for the same underlying reason — they widen the gap between what the engine was trained on and what it is being shown.

A practical habit that catches most of what slips through: paste the extracted text next to the source image and read the output while glancing at the original, rather than reading the output alone. Errors that survive OCR are by definition plausible-looking, so reading the extraction in isolation feels clean even when it is not. Side-by-side review takes marginally longer and catches the substitutions that matter — a wrong digit in a total, a swapped letter in a name — before they propagate into a spreadsheet or a contract.

Real workflows where OCR saves the retype

The everyday case is rescuing text trapped in a screenshot: an error message posted as an image, a quote from a video slide, a paragraph in a PDF that disables copying. Ten seconds of upload-and-copy replaces retyping, with the bonus that the extracted text becomes searchable later. The break-even point is lower than most people assume — anything past a sentence or two is usually faster to extract and proofread than to type, and unlike typing, extraction does not introduce its own transposition errors into names and addresses.

Beyond that, a few workflows come up constantly:

  • Expense handling: extracting merchant, date, and total from receipt photos for reports — with the digit-checking caveat applied to every amount.
  • Document digitization: turning a filing drawer of printed contracts and records into searchable text, one straight, well-lit capture at a time.
  • Contact capture: pulling names, numbers, and emails from photographed business cards straight into a contacts app or CRM.
  • Study and research: extracting passages from printed books, lecture slides, and journal scans so they can be quoted and annotated instead of retyped.
  • Code from images: recovering snippets from tutorial videos and screenshots — expect to rebuild indentation, since OCR preserves characters far better than whitespace.
  • Translation prep: extracting a menu, sign, or form so the text can be pasted into a translator, which works dramatically better on clean extracted text than on the photo itself.

Common questions

Image to Text (OCR) FAQs

How do I extract text from an image?
Upload the image to an OCR tool, let it process, and copy out the recognized text. Accuracy depends mostly on the input, so crop to the text, shoot straight-on, and make sure characters are large enough to read on screen before uploading. Screenshots generally extract almost perfectly; phone photos benefit from a moment of straightening and lighting care.
How accurate is OCR?
On clean scans or screenshots of printed text, modern OCR typically gets the overwhelming majority of characters right, and the language model corrects most residual prose errors invisibly. Accuracy falls with small text, skewed or poorly lit photos, unusual fonts, and handwriting. Digit strings are the weak point regardless of quality, because no language context exists to correct a misread number.
Can OCR read handwriting?
Neat block printing often extracts usably, but cursive handwriting remains unreliable for general-purpose OCR engines. Connected letterforms defeat segmentation, and every writer's shapes differ from the print samples engines are trained on. For cursive documents, expect to treat OCR output as a rough draft that needs line-by-line correction.
Does image to text work on screenshots?
Yes — screenshots are the ideal OCR input because they are perfectly flat, evenly lit, and pixel-aligned with no lens distortion. Extraction from a standard-resolution screenshot of ordinary UI text is usually near-perfect. The main failure mode is very small text on a low-resolution capture, which you can avoid by zooming the content before taking the screenshot.
What resolution do I need for OCR?
The standard target for scans is 300 DPI, which puts ordinary body text comfortably above the roughly 20 to 30 pixels of character height that engines need. For photos and screenshots, apply the same idea directly: zoom in, and if a character is hard for you to read on screen, re-capture closer or larger. Enlarging a small image afterward does not help, because interpolation adds pixels but no detail.
Why does OCR get numbers wrong?
Numbers lack the linguistic context that lets OCR engines correct their own mistakes. A misread letter in a common word gets fixed by the language model, but a 0 read as an O or a 5 as an S in an account number looks equally plausible either way to the engine. Always verify extracted totals, phone numbers, and reference codes against the original before using them.

OCR rewards the user who understands its shape: feed it flat, sharp, high-contrast input and it repays you with text that needs a skim rather than a retype. Crop before uploading, capture straight-on at readable resolution, extract columns separately when layout is complex, and give every digit string the character-by-character check the engine cannot do for itself.

The ToolDoor Image to Text tool is free to use with no signup — upload a screenshot, scan, or photo in your browser and copy out the extracted text in seconds.

Try Image to Text (OCR) now

Free, no signup, no watermarks.

Open the tool

Nearby doors

Screenshot to Code

Extract text from screenshots using OCR

Image Cropper

Crop images with custom dimensions

Image Format Converter

Convert between PNG, JPG, WebP, and more

Image Resizer

Resize images to exact dimensions

ToolDoor

Forty-two free online tools for images, PDFs, text, and the odd jobs in between. A SaTekk LLC product.

Tools

  • Image tools
  • PDF tools
  • Text tools
  • SEO tools
  • Utilities

Popular

  • Merge PDF
  • Compress image
  • PDF to Word
  • QR code generator
  • Word counter

Site

  • Guides
  • Pricing
  • Privacy policy
  • Terms of service
  • Cookie policy

Company

  • Contact
  • About SaTekk

© 2026 SaTekk LLC. All rights reserved. · Built by SaTekk ·