Blog
Image

Extract text from an image or screenshot online (free and private OCR)

Learn how to copy text from any image, screenshot, or scanned document with in-browser OCR, without uploading your files to any server.

2026-07-026 min

Quick summary: OCR (optical character recognition) is the technology that turns text inside an image into text you can select, copy, and edit. You no longer need to retype what appears in a screenshot or a scanned document by hand. And the best part: you can do it directly in your browser, without installing anything and without your images ever leaving your device.

What OCR is and why you need it more than you think

OCR stands for optical character recognition. It is a technology that analyzes an image, identifies the shapes of letters and numbers, and converts them into digital text you can select, copy, and paste. Put simply: you give it a photo containing text and it gives you that text back as if you had typed it yourself. It sounds like something only a large corporation would need to digitize archives, but in practice you run into everyday situations where you need it constantly:

  • Someone sends you a screenshot with information you need to copy (an address, a reference number, a code) and you cannot select the text because it is an image.
  • You have a scanned document or a photo of a contract and need to extract a specific paragraph without retyping it.
  • You want to save the text from a receipt or invoice that you only have in physical form.
  • You need to translate text that appears in an image and first have to extract it.

The privacy problem almost nobody mentions

Most online OCR tools work by uploading your image to a server for processing. That seems harmless, but think about the kind of images you usually need to run through OCR: screenshots of private conversations, photos of contracts, scanned medical documents, invoices with your tax details, bank statements. All of that ends up on a third-party server you have no control over. You do not know how long they store it, who has access, or what they do with that information.

How in-browser OCR works (without uploading anything)

Today it is possible to run OCR entirely in your browser thanks to Tesseract.js, a WebAssembly version of the most widely used OCR engine in the world. WebAssembly lets your browser execute high-performance code as if it were an installed application, but without installing anything. When you drag an image into the tool, it loads into your browser's memory, Tesseract.js analyzes it locally, identifies blocks of text, recognizes the characters, and returns the extracted text. Everything happens on your device. No data is sent to any server.

How to extract text from an image step by step

  1. Open the image-to-text tool on SocialShrink. No sign-up or installation required.
  2. Drag in your image or screenshot. It works with JPG, PNG, WebP, and most common formats.
  3. Wait a few seconds while the OCR engine analyzes the image. With clear text, the result appears almost instantly.
  4. Copy the extracted text and paste it wherever you need: a document, an email, or any application.

If the image has a lot of content surrounding the text you care about, cropping it first with the crop image tool will improve the result. And if you need to extract text from a scanned PDF, convert the pages to images first with the PDF to JPG tool.

Tips for getting better results

  • High contrast: dark text on a light background (or the reverse) gives the best results.
  • Straight, aligned text: horizontal lines of text are recognized much better than tilted ones. If you photographed a document at an angle, straighten the image first.
  • Sufficient resolution: the text should be at least 20 pixels tall. A normal screenshot is more than enough, but a blurry photo of a distant sign will give worse results.
  • Clean image: stains, shadows, or graphic elements overlapping the text make recognition harder.

What OCR still cannot do well

It is worth being honest about the limitations. Modern OCR is excellent with standard printed text, but it struggles with handwriting (unless the handwriting is very clear and regular), highly decorative or stylized fonts, text on complex multi-colored backgrounds, and curved text like that on a can or a t-shirt. For these cases, OCR can give you a starting point that you then correct by hand, but do not expect a perfect result on the first try.

Frequently asked questions

Does it work with photos taken on a phone?

Yes, as long as the photo has sufficient resolution and the text is legible. Modern phone cameras are more than capable. What matters is that the photo is in focus and the text is not too small. If you can read the text when you zoom into the photo on your screen, the OCR engine will probably be able to read it too.

Can it extract text from a PDF directly?

OCR works with images, not PDFs. But you can convert the pages of your PDF to images using the PDF to JPG tool and then run each image through OCR. It is an extra step, but it works perfectly for scanned PDFs, which are really just images wrapped in a PDF container.

Are my images uploaded to any server?

No. All OCR processing runs in your browser via Tesseract.js (WebAssembly). Your image loads into your device's local memory, is analyzed right there, and the text is extracted without any data leaving your computer or phone. When you close the tab, no trace remains.

What languages does it recognize?

The engine supports over a hundred languages, including English, Spanish, French, German, Portuguese, and Italian. It also recognizes non-Latin alphabets such as Cyrillic, Greek, and Arabic. Selecting the language manually improves accuracy, although automatic detection works well for text in common languages.

SocialShrink
Independent studio · Barcelona
Privacy-first creator tools. Compress, convert and adapt your images and videos for every social network — everything is processed in your browser, nothing uploaded.
Try the tool
100% in your browser, nothing uploaded

Keep reading

Image Size and Format for Every Social Network in 2026 (complete guide)
6 min
How to Reduce an Image's File Size to Upload It Faster (without it showing)
5 min
How to Compress Photos for Email Without Losing Quality
5 min
Blog