Skip to main content

OCR Tool

Runs Tesseract.js OCR in the browser to extract plain text from JPG, PNG, GIF, WEBP, and PDF files up to 20 MB each, with no upload to a server. Renders PDF pages to images before recognition, queues up to 8 files per batch, and reports a per-file confidence score. Supports 13 languages and a fast or high-accuracy model choice.

Your inputs stay in your browser

Everything you enter is processed on your device. This tool loads a code library from cdnjs.cloudflare.com, which sees your IP address but never what you type.

Productivity
Documents
Photography
Accessibility
Loading the tool
Reference

Documentation

The OCR tool runs Tesseract.js entirely in the browser to extract plain text from JPG, PNG, GIF, WEBP, and PDF files, with no upload to a server. PDF pages render to images before recognition. A global language applies across a batch, with 13 languages supported and a per-file override for any file that needs a different one. A high-accuracy or fast model choice trades recognition quality against speed. Photos are turned upright by their EXIF orientation. A scan carries no such tag, so auto-rotate reads a page that comes back below 60 percent confidence again turned 180, 90 and 270 degrees, keeps a turn only when it reads at least 10 points better, and names every page it turned in the result.

  • Up to 8 files per batch can be added by drag-and-drop, file selection, or pasting from the clipboard.
  • Quality is adjustable between fast and high-accuracy models, and optional processing includes auto-rotate for sideways or upside-down scans, a low-memory mode for large batches, and table-line removal (on by default).
  • Any file that needs a different language can have it set individually before recognition starts.
  • Files process one at a time within a batch, with progress reported per file.
  • Recognized text copies per file or all at once to consolidate outputs.
  • Output downloads per file as a .txt, or as a single .zip with a manifest for the whole batch.
  • Settings persist between sessions via local storage, so preferred defaults carry over.

Limits and logic (plain text for reference): Max files per batch = 8; Max file size = 20 MB; Max combined batch size = 80 MB; Max total PDF pages = 60. PDFs are rendered to images with PDF.js at 144 dpi (twice the page size), capped at 3,000 pixels on the longest side, then passed to Tesseract.js for recognition. Low-memory mode lowers that cap to 2,500 pixels for PDF pages and images alike rather than rendering every page smaller, because below about 144 dpi short words such as "1 m" run together. Pages are read in their original gray levels, never flattened to black and white: Tesseract's line recognizer uses the gray edges of the letters, and a black-and-white copy of a clean scan lost table rows in testing. Confidence shows an approximate quality score (0 to 100). High accuracy mode uses higher-quality language models; fast mode uses lighter models that favor speed. Preserve interword spaces to maintain readable spacing in output.

Ruled tables are a special case for OCR: Tesseract reads ruling lines as stray characters such as | and [ and loses the cell text beside them. On a page that carries a grid of rules, three or more horizontal and two or more vertical, each rule is painted over with the page background before recognition, together with the faint anti-aliased edge that would otherwise read as a |. The cleaned page is then read word by word in sparse-text mode and the words are regrouped into lines by their vertical position, so every table row comes back as one line, with single spaces inside a cell and wider gaps between columns; reading the cleaned page as one block ran the words of a cell together. A line counts as a rule when it runs at least 5 percent of the page width (4 percent of the height for vertical rules) and the paper just beyond the stroke is light on both sides for most of its length; a dark header band with light lettering fails that test and is kept. A vertical line must also reach from one horizontal rule to another, because on a short image 4 percent of the height is no longer than the stem of a large "l", "1" or "I", and erasing those strokes turned "Apples" into "Adoes". Sparse-text mode can skip a cell holding a single short mark such as one digit, so each ruled cell that has ink but returned no text is read again on its own as a single line. Pages without a grid, including underlined headings and fill-in lines on forms, are recognized exactly as they are, and each result notes how many pages had their table lines removed.

OCR extraction speeds up study, research, recordkeeping, and content creation. Text extracted from lecture slides, whiteboard photos, invoices, or printed forms moves into notes, spreadsheets, or writing apps. Auto-rotate recovers pages that were scanned sideways or upside down, and batching files into a single ZIP export saves time with consistent, plain-text outputs.

  • Study and notes: Convert class handouts, textbook excerpts, and whiteboard photos into searchable notes for exam prep.
  • Workplace documents: Capture text from receipts, packing slips, contracts, and reports for bookkeeping and audits.
  • Research and archiving: Digitize magazine clippings and historical pamphlets to create a plain text corpus for analysis.
  • Content repurposing: Turn scanned articles or print designs into editable text for blogs, newsletters, and accessibility versions.
  • Localization prep: Extract source text for translation workflows, then feed it to translation tools or CAT platforms.
  • Developer utilities: Generate plain text from screenshots of logs or terminal output to share snippets and error messages.
  • Accessibility support: Provide text alternatives for images and scanned PDFs to improve screen reader compatibility.
  • Scanned price lists and invoices: Ruled tables come back one row per line, with single spaces inside a cell and a wider gap between columns, ready to paste into a spreadsheet and split into columns.
  • Administrative efficiency: Batch scan and convert recurring forms so teams can paste clean text into CRMs or spreadsheets.

A consistent routine, in scanning, file naming, and language selection, improves accuracy over time. High-accuracy mode suits important documents; fast mode suits quick drafts. Plain-text output simplifies QA, version control, and downstream formatting. Re-running a single file with a different language, the high-accuracy model, or auto-rotate switched on can improve results without repeating the entire batch.

Inputs, outputs, and what the OCR Tool computes

What the OCR Tool asks for and what it returns, as a plain list. Defaults, units, and ranges are the ones the form loads with.

Inputs

  • Global OCR language · default: English
  • Auto-rotate sideways or upside-down pages · default: off
  • Low-memory mode · default: on
  • Remove table lines before reading · default: on
  • OCR Language
  • OCR Output

Controls

Run OCR · Clear · Copy all · Download all as .zip · Copy text · Download .txt