Convert JPG to TXT
Turn JPG photos into TXT. The text read by OCR as plain lines, in English unless language lists others.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JPG files on the dialor turn it to pick what to do
The text from a picture, as plain text.OCR reads the words in a JPG and writes them to one TXT file.
What you get
One TXT file with the text found in the picture. It has no formatting at all, so it is plain text you can open anywhere.
The conversion reads the letters with OCR. It needs to know which letters to expect, which is what the Language option is for.
What it leaves behind
Layout, tables and pictures are dropped. Only the text is kept, so columns, cell borders and images in the JPG do not appear in the TXT.
A picture with no readable text fails with
unsupported_elements. There is nothing to write, so the conversion stops.Setting the language
Set Language to the languages the text is in, so OCR knows which letters to expect. Naming the right language matters most for Korean, Japanese and Chinese.
To name several languages, separate them with commas, such as en,ko.
Failures
A file that cannot be parsed stops the conversion with
input_corrupted. A picture that holds something the TXT cannot carry stops it withunsupported_elements.
JPG and TXT.What each format is, and the options this conversion takes.
- 01 · language
Language
The languages the text is in, so OCR knows which letters to expect. Without it the text is read as English, so letters such as é, ß and ł come out wrong and other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read. Separate several with commas, such as fr,en.
The formats
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
Plain Text
Plain text with no formatting at all. The smallest, most portable form of a document.
- Extensions
- .txt .log
- MIME type
- text
/plain - Kind
- Text and data
In your code.The same JPG to TXT conversion through the API, for your app or your agent.
$ cv convert photo.jpg photo.txt$ cv convert photo.jpg photo.txtQuestions.What people ask about JPG to TXT.
No. Layout, tables and pictures are dropped, and only the text is kept.
The picture has no readable text. The conversion stops because there is nothing to write to the TXT.
Set Language to the right language. It matters most for these three. For a mix, separate the languages with commas, such as en,ko.
Yes. TXT to JPG goes the other way.