Extract text from images and PDFs while preserving bold, italic, font size, and color. Visual overlay on the original document. 100% browser-based — your file is not sent to our servers.
This tool downloads an on-device model the first time you use it. Your image is not uploaded.
Step-by-step guide to get the most from this tool
Drop or select a PDF or image (PNG, JPEG, WebP).
PDF text layers extract instantly; images and scanned PDFs run OCR with a progress bar.
See bounding boxes over the original — bold, italic, and color-coded.
Correct OCR errors in Structured view, then copy or download as text, HTML, Markdown, or JSON.
What makes this tool stand out
PDF.js for text PDFs; Tesseract OCR for images and scans.
Bold, italic, font size, and color per word.
Bounding boxes aligned to source document.
Plain text, HTML, Markdown, and JSON.
Nothing uploaded — OCR runs on-device after a first-use CDN model download.
No signup required.
More free utilities you might find useful
Quick answers to common questions
For text-based PDFs, bold and italic are read directly from the PDF's font data — this is exact, not a guess. For images and scanned documents, Tesseract's OCR engine estimates bold/italic based on stroke width and character shape analysis — accuracy is typically 85–95% on clear, high-resolution images and lower on blurry or low-quality scans.
For PDFs with a text layer, ToolReign uses a neutral default in v1 (PDF.js does not expose fill color via getTextContent). For images, color is sampled directly from the darkest pixels within each detected word's bounding box — this works reliably for standard dark-text-on-light-background documents but may be less accurate for stylized or low-contrast text.
No. PDF.js and Tesseract.js run in your browser — your file is not sent to our servers. On first OCR, the browser downloads the Tesseract WASM runtime and English language data from a CDN (jsDelivr); later runs reuse the cached copy.
Yes. When a PDF has no usable text layer, ToolReign automatically renders each page and runs OCR, with a notice that scanned mode is active.
Plain text, HTML with inline styles, Markdown with heading heuristics, and full JSON of the extraction data structure.
Images over 10 MB show a warning; images over 25 MB are blocked. PDFs with more than 20 pages show a warning — pages are processed on demand.
Drop PDF or image here, or click to browse
PDF, PNG, JPEG, WebP — processed entirely in your browser