Convert JPG to TXT

Converting JPG to TXT reads the words out of a photograph and hands them back as plain text you can search, paste and edit. It is pattern recognition rather than a transcript, so the result is a best guess — and it all runs on your own device, with nothing uploaded.

  • Where it runs In your browser. The file is never uploaded.
  • Rebuilt TXT works differently from a JPG, so this is not the gradual degradation a lossy codec applies. What TXT can express is reproduced faithfully; what it has no equivalent for does not survive at all.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing The text is read by pattern recognition, so it is a best guess and not a transcript. Clean, straight, well-lit type at a decent resolution comes out close to perfect; a photograph taken at an angle, a faint fax, an unusual typeface or handwriting will produce mistakes. Always read the result against the original before relying on it. The language setting matters — text read with the wrong one comes back as confident nonsense rather than as an error.

Up to 100 files at once. Mixed formats are fine.

This is a guess, and it should be read as one

Optical character recognition looks at shapes and decides which letters they are. It does not know what the document says, and it has no way to tell you how confident it was — so the output is fluent, complete-looking text that may contain errors nobody flagged.

That is the single most important thing to understand before relying on a result. Read it against the original, especially the numbers: a misread digit in a price, an account number or a date is exactly the error that survives a quick glance and causes a real problem later.

The photograph decides the accuracy

More than any setting, more than any tool. Straight, well-lit, in-focus printed type at a reasonable size comes out close to perfect. Everything that degrades the picture degrades the reading, in roughly the order you would expect: focus first, then shadow across the text, then the angle of the page, then the size of the type in the frame.

Which means the useful lever is the camera, not the converter. Hold the page flat, shoot straight down rather than from a chair, get light from the side rather than behind you, fill the frame with the page, and tap to focus before pressing the button. Ten seconds of that is worth more than any amount of processing afterwards.

Set the language first

This is the setting that matters and the one people skip. The recogniser matches shapes against the letterforms and vocabulary of a particular language, and given the wrong one it does not fail — it produces confident nonsense, because it is finding the best match within a set that does not contain the right answer.

A German page read as English comes back with umlauts mangled and words that nearly exist. A document with a language it was not told about produces the same. If a result looks strange in a way you cannot explain, check this before anything else.

What you get is words, not a document

The output is plain text: no headings, no columns, no tables, no positions. A single-column letter comes back readable and in order. A two-column page can come back with the columns interleaved, because the recogniser reads across lines that look like lines.

A form is the hardest case — labels and values end up adjacent in ways that are hard to reconstruct, and a table becomes a run of numbers with no idea which column they came from. For those, the honest advice is to expect to do some work on the result, or to photograph one field at a time.

Handwriting is a different problem

The recognition here is built for printed type, where a letterform is one of a few thousand possibilities. Handwriting is not: every writer produces different shapes, and the same writer produces different shapes on different days.

Neat, separated block capitals sometimes come out usable. Ordinary joined-up writing generally does not, and the output will look like real words rather than like an error — which is worse than failing, because it invites belief. If a handwritten note has to become text, typing it is faster than correcting a recognition of it.

What people actually photograph

Receipts, for expense claims. Letters and forms that arrived on paper. Pages from books and journals for a citation. Whiteboards after a meeting. Serial numbers and labels on equipment. Menus, signs and notices while travelling.

Almost all of it is personal or commercial: names, addresses, amounts, account details, medical information. That is the context in which the next section matters, and it is why it is on the page rather than in a footer.

Nothing is sent anywhere

The recognition runs inside the browser tab on your own processor, on your own device. The photograph is never uploaded, so there is no server copy, no retention period to ask about, no account and no daily allowance.

Watching the network tab while it works is the honest way to confirm it: no request carrying the image goes out. For a picture of a prescription, a bank letter or a signed contract, that is the substantive difference from a hosted service rather than a feature line.

How to get the text out of a JPG photograph

  1. Photograph the page flat and straight, in even light, filling the frame.
  2. Drop it here and choose the language of the text before converting.
  3. Read the result against the original, especially any numbers.

JPG and TXT: pixels read as characters

JPG compared with TXT
JPGTXT
Full nameJPEG ImagePlain Text
File extension.jpg, .jpeg, .jpe.txt, .text, .log
Media typeimage/jpegtext/plain
CompressionLossy — file size is bought with quality
First published19921963
Published byJoint Photographic Experts Group
SpecificationITU-T T.81Unicode
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Bit depth8
Colour it can describeRGB, greyscale, YCbCr
Largest image65,535 px per side
Opens in a browserEvery browserEvery browser
Considered insteadWebP, AVIF, HEICMD, RTF

What the target format adds

TXT is a working format and JPG is a finished one. What comes back is editable text and objects rather than a picture of a page, which is usually the reason for the conversion and also where its limits are.

Opening the result

The usual programs do not overlap: JPG opens in Adobe Photoshop, GIMP and Preview, TXT in Notepad, TextEdit and Visual Studio Code — so whoever receives the result needs something from the second list.

File size and quality

The result is larger than the original and no better. JPG has already discarded detail, and TXT stores what is left without discarding more — it prevents further loss rather than undoing the first one.

What each format is for

The two are aimed at different work: JPG at photography, the web, email and handing a finished file over, TXT at moving data between programs and archiving. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

JPG is Joint Photographic Experts Group's format, published in 1992. It records 8 bits per channel.

TXT dates from 1963, specified as Unicode. Notepad, TextEdit and Visual Studio Code all read it.

TXT was published in 1963 and JPG in 1992. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

JPG to TXT: accuracy, languages and handwriting

Are my JPG files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is Tesseract, the open-source text recognition engine; your browser fetches it once and caches it.

How accurate is it?

It depends almost entirely on the photograph. Straight, well-lit, in-focus printed text at a decent size comes out close to perfect. A page shot at an angle, in shadow, slightly out of focus or in an unusual typeface produces mistakes, and handwriting produces many. Always read the result against the original.

Why is the output nonsense?

Usually the language setting. Text read with the wrong language comes back as confident nonsense rather than as an error, because the recogniser is matching shapes against the wrong vocabulary. Set the language before converting rather than after seeing the result.

Does it read handwriting?

Poorly. The recognition here is built for printed type, and handwriting varies far more than any typeface. Neat block capitals sometimes work; ordinary cursive generally does not, and the output will be plausible-looking and wrong.

Does the layout survive?

No. You get the words as plain text. Columns, tables, headings and the position of things on the page are not preserved, so a two-column page can come back with the columns interleaved. For a receipt or a letter that is fine; for a form it rarely is.

How can I get a better result?

Re-photograph rather than adjust settings. Hold the page flat and shoot straight down, get even light with no shadow across the text, fill the frame with the page, and tap to focus. Ten seconds of that beats any amount of processing afterwards.

Is my photograph uploaded?

No. The recognition runs inside your own browser, so the image never leaves your device. That matters here more than almost anywhere, since what people photograph is receipts, letters, prescriptions, contracts and pages with their own name on them.

More about these formats

Where these figures come from

The claims this page makes about JPG and TXT are checkable, and these are the documents that settle them.