Text extractionBeta

Pull the text out of a document

Extracts machine-readable text from scans and photos of documents. In beta: accuracy depends heavily on scan quality, and handwriting is not reliable yet.

  • Printed text from scans and photos — JPEG, PNG or WebP
  • Full text, plus every block and word with its own confidence score
  • Word boxes normalised 0-1, so they map onto any size you render at

Free plan included — no card needed to try it.

Live demo

Try it here

Upload a scan or photo of a document to see the text it reads.

No account needed — 3 free runs every 2 days.

Input

Drop a document or image

or click to browse · JPEG, PNG, WebP · max 25MB

Extracted text

Upload an image to see extracted text

Common questions

How do I extract text from an image online?

Upload a scan or a photo of the document in the demo above and the text comes back as one block of plain text, plus the same text broken into the blocks the page lays it out in. 3 runs every two days without an account, and 20 more operations when you create one.

Can I upload a PDF?

Not yet — the endpoint takes JPEG, PNG or WebP. For a PDF, export or screenshot the pages as images first and send them one at a time. Each image is one operation.

Does it pull out fields like the invoice total or the date?

No. You get the full text and every block and word with its own box and confidence score, but nothing is labelled as a total, a date or an invoice number. Picking those out is yours to do, and the word boxes are there so you can do it by position as well as by pattern.

What exactly does a response contain?

The full text with blocks joined by newlines, then an array of blocks, each with its text, a mean confidence and its individual words — and each word with a confidence and a box normalised to 0–1. Field by field, it is written out in the API reference.

Which languages does it read?

You can pass a two-letter language hint, which defaults to English. It is a hint that helps the model rather than a list of supported languages, so the honest answer is to try the script you care about on a real page of it and read the confidence scores before committing to it.

Does it read handwriting?

Not reliably. This one is in beta and it is tuned for printed text; accuracy on a clean scan of a printed document is a different thing from accuracy on handwriting, and we would rather say so than have you find out on your own documents. What the model is actually doing explains why scan quality moves the result as much as it does.

What happens if the image has no readable text?

You get a normal successful response with an empty block list, not an error. Check whether the list is empty rather than waiting for a failure that will not come.

How do the word boxes line up with my image?

They are normalised to 0–1, so multiply by the width and height you are drawing at. That holds whatever size you render the page at, including a thumbnail, without any reference back to the original pixel dimensions.