Image to Text

Extract text from any image instantly. Free, no signup, works in your browser.

Processing in your browser — your image never leaves your device

Drag & drop an image or PDF here

or click to browse · or paste a screenshot with Ctrl+V / Cmd+V

JPGPNGWEBPGIFBMPTIFFPDF

Supported formats

JPGPNGWEBPGIFBMPTIFFPDF

PDF: multi-page extraction supported.

Why use our online Image to Text?

Use optical character recognition (OCR) to extract text from scanned documents, screenshots, and photos entirely in your browser. Your images are processed locally — never uploaded.

How to use Image to Text

  1. 1
    Upload your image

    Drag and drop an image onto the upload area, click to browse your files, paste a screenshot directly with Ctrl+V / Cmd+V, or enter an image URL. Supports JPG, PNG, WEBP, GIF, BMP, TIFF, and PDF.

  2. 2
    Choose options and extract

    Select your language from the dropdown if the image contains non-English text. Enable Grayscale or Enhance Contrast for better accuracy on coloured backgrounds. Then click Extract Text — OCR runs entirely in your browser.

  3. 3
    Copy or download your text

    The extracted text appears in an editable area. Review the accuracy score, then copy to clipboard, download as a .txt file, or export as a formatted .docx document.

How OCR works — what Tesseract does to your image

OCR (Optical Character Recognition) converts images of text into machine-readable text. Tesseract — the OCR engine used by this tool — was originally developed by HP in the 1980s and has been maintained by Google since 2006. It is the most widely used open-source OCR engine.

The process has several stages. First, the image is preprocessed: converted to grayscale, binarized (converted to pure black and white), and cleaned up to remove noise. Second, the engine detects lines and words using connected component analysis — grouping nearby dark pixels into candidate character regions. Third, each character region is classified against a trained model for the target language. Finally, words are verified against a language dictionary and context, correcting likely misclassifications.

The accuracy of each stage depends on the input image quality. A clean, high-contrast scan of printed text typically achieves 95–98% character accuracy. A blurry, low-resolution photo of handwritten text might achieve 50–70%. This tool exposes grayscale conversion and contrast enhancement as preprocessing options that can significantly improve results for difficult images.

Getting better OCR results — practical tips

Image quality is the dominant factor in OCR accuracy. The most impactful improvements:

Resolution: OCR engines work best with images of at least 300 DPI (dots per inch). A smartphone photo taken in good light is typically 72–150 effective DPI at document size — adequate for many documents but suboptimal. If scanning with a dedicated scanner, use 300 DPI as a minimum; 600 DPI for small text or degraded documents.

Contrast: dark text on a light background is ideal. Reduce shadows, adjust contrast before capturing, and ensure even lighting. The tool's "Enhance Contrast" option applies CLAHE (Contrast Limited Adaptive Histogram Equalization), which is particularly effective for documents with uneven lighting — scanned pages with curved edges or photocopied documents.

Orientation: OCR accuracy drops significantly on rotated text. Tesseract has some auto-rotation capability, but you will get better results if you straighten the image before processing. Most smartphone cameras offer a document scanning mode that straightens and crops automatically.

Font and layout: standard serif and sans-serif printed fonts achieve the highest accuracy. Decorative fonts, overlapping text, text embedded in complex graphics, and text on colored backgrounds all reduce accuracy.

OCR limitations — what it cannot reliably extract

OCR excels at machine-printed text in standard fonts and commonly used languages. Several scenarios produce consistently poor results.

Handwriting: Tesseract is trained primarily on printed fonts. It can handle neat, consistently-sized block handwriting with moderate accuracy (~70–80%), but irregular or cursive handwriting often falls below 50% accuracy. Dedicated handwriting recognition models (Google's Cloud Vision API, Microsoft Azure's OCR service) achieve much higher accuracy for handwriting but require cloud processing.

Mathematical equations: standard OCR treats symbols like fractions, superscripts, and mathematical operators as sequences of characters rather than structured notation. Dedicated tools like Mathpix Snip are specifically trained for mathematical formula extraction.

Tables and columns: Tesseract extracts text linearly and does not inherently understand tabular structure. Text in multi-column layouts, tables with complex borders, and forms may be extracted in the wrong reading order. For structured table extraction, look at tools that output structured data rather than flat text.

Degraded historical documents: old printed materials with faded ink, show-through from the reverse side, or non-Latin historical scripts benefit from specialized OCR models rather than general-purpose engines.

Frequently Asked Questions

Is my image uploaded to a server?

No. All OCR processing happens entirely within your browser using Tesseract.js. Your images never leave your device — no data is sent to any server, and no account or sign-up is required.

What image formats are supported?

The tool accepts JPG, JPEG, PNG, WEBP, GIF, BMP, and TIFF image files. PDF files are also supported — each page is rendered and processed individually, with the extracted text merged in order.

How accurate is the OCR?

Accuracy depends on image quality. Clean, high-contrast printed text typically achieves 90–98% accuracy. Images with low contrast, unusual fonts, heavy backgrounds, or noise may score lower. Enabling the Grayscale and Enhance Contrast options before extraction can significantly improve results on difficult images.

Can it read handwriting?

Tesseract.js has limited support for handwriting. It performs well on neat, consistently-sized cursive or printed handwriting, but struggles with irregular or stylised handwriting. For best results with handwriting, try enabling Grayscale and Enhance Contrast, and ensure the image is well-lit and high resolution.

What languages are supported?

The tool supports English, Hindi, Arabic, French, Spanish, German, Chinese (Simplified), Japanese, Korean, and Portuguese. Select your language from the dropdown before clicking Extract. Language data is downloaded on demand from Tesseract's CDN the first time you use a new language.

Related Tools