JPG to TXT Converter
Pull the English text out of a JPG photo or scan into a plain TXT file.
or drop files here
JPG Format
JPEG image
A lossy raster image format defined by the Joint Photographic Experts Group (ISO/IEC 10918-1), designed for photographs. .jpg and .jpeg are the same format.
- Lossy compression
- Pictures of text hold pixels, not letters
- No alpha transparency
- Supported everywhere
TXT Format
Plain text file
A file that holds unformatted text with no fonts, styles or images. It is readable by any text editor, on any operating system.
- No formatting
- Character encoding such as UTF-8
- Very small files
- Readable everywhere
How to convert JPG to TXT
Follow these steps to convert JPG to TXT online.
Choose your JPG file, or several at once.
Wait while the converter turns each file into TXT.
Download each new TXT file. Your original file isn't changed.
Related Tools
TXT to JPG
Convert TXT to JPG: your text drawn as an image in your browser, long lines wrapped, in a font for Latin, Greek, Cyrillic, Hebrew and Arabic. A very long text is cut at 4,096 px, and the image says where.
JPG Compressor
Compress and optimize JPG files
JPG to AI
Convert JPG to AI format
JPG to BMP
Convert JPG images to BMP format
JPG to GIF
Convert JPG images to GIF format
JPG to KTX2
Convert JPG to KTX2 format
JPG to PBM
Convert JPG to PBM format
JPG to PDF
Convert JPG images to PDF documents
JPG to PNG
Convert JPG to PNG with transparency
JPG to PPM
Convert JPG to PPM format
JPG to RGB
Convert JPG to RGB format
JPG to TIFF
Convert JPG images to TIFF format
JPG to WBMP
Convert JPG to WBMP format
JPG to XBM
Convert JPG to XBM format
Audio to Text
Transcribe audio and video files to text
Audio to Transcript
Transcribe audio and video files to a text transcript
MP3 to Transcript
Transcribe MP3 audio to a text transcript
MP4 to Transcript
Transcribe MP4 video to a text transcript
PDF to TXT
Convert PDF to text (TXT)
PNG to TXT
Convert PNG to TXT format
TikTok to Transcript
Transcribe TikTok videos to a text transcript
Video to Transcript
Transcribe video files to a text transcript
YouTube to Transcript
Transcribe YouTube videos to a text transcript
YouTube Transcript Generator
Generate transcripts from YouTube videos
What to know before converting JPG to TXT
- This is OCR: the page reads letters from the picture, it does not extract hidden text.
- The English model is the only one the page loads.
- Several JPGs give one TXT each.
- The TXT is UTF-8 with no layout, fonts or images.
- A picture with no readable text gives an error, not an empty file.
About JPG files
What is a JPG file?
A JPG stores a picture, not words. Even a photographed page of print is, inside the file, a grid of colored pixels squeezed by lossy JPEG compression, which works on 8x8 blocks of pixels. The compression comes from the Joint Photographic Experts Group, a body that started the work in 1986. ITU-T published its core standard in 1992, and ISO and IEC took it on in 1994.
Photographs on websites, in cameras, in email and on photo-sharing sites are commonly JPG, and every major browser displays it. The two names, .jpg and .jpeg, describe a single format registered as image/jpeg. The text in a photo or scan is easy to see but cannot be selected or searched, because it is only pixels. That is the gap this converter fills. A progressive JPG first shows a rough picture, then refines it as the rest arrives.
A JPG can also carry metadata such as Exif. None of that is text from the page, and none of it ends up in the TXT: only the letters the recognizer reads from the pixels do.
Programs that open JPG files
- Windows, Mac and Linux: ImageMagick reads JPG from the command line, which helps when you want to resize or straighten a batch first, and GIMP imports JPEG for editing.
- Web: Google Chrome and Mozilla Firefox show the picture so you can check it is legible.
- Mobile: Chrome and Safari show JPG on a phone.
JPG and TXT compared
- What they hold: a JPG holds pixels. A TXT holds characters and nothing else.
- Extensions: .jpg or .jpeg (image/jpeg) against .txt (text/plain).
- Formatting: plain text carries no commands for typographic formatting, and it does not prescribe a page layout, a font or how images are arranged.
- Tables and images: a word processor can place an image or a table on a page, while plain text cannot.
- Encoding: a TXT depends on a character set, shown by the charset parameter. The file written here is UTF-8.
- Editors: Visual Studio Code and Vim open TXT on Windows, Mac and Linux, and TextEdit opens it on a Mac. Converting rich text to TXT in TextEdit removes styles and formatting.
- Reversibility: converting a picture to text is a reading step, not a re-save, so nothing in the TXT tells you how the page looked.
Here the recognition is done by tesseract.js, running in your browser. The worker, engine and English model are served by this site, so the picture is not sent to another site. The recognized text has line-end spaces removed and runs of three or more newlines reduced to one blank line, and it is saved as UTF-8 with a final newline. If no words are found, the page stops with an error rather than writing an empty file.
Other ways to convert JPG to TXT
- Tesseract (command line): run
tesseract page.jpg result -l eng. The command takes an input image name and an output base name, and English is the default language if -l is left out. - Google Drive and Docs (web): upload the JPG to Drive, right-click it, choose Open with > Google Docs, then copy the recognized text into a plain-text editor. The image is uploaded to Google, which accepts PDF and .jpeg, .png and .gif files, asks for files of 2 MB or less, and needs the document right-side up.
- OneNote for Mac: insert the picture, Control-click it, choose Copy Text from Picture and paste into a text editor. Recognition uses Microsoft online services, and handwriting may not be recognized well.
Problems with JPG files
- Several pictures at once: each JPG gives its own TXT, the pictures are processed in sequence, and no ZIP is made.
- Stray blank space: spaces at line ends are cut and three or more line breaks in a row collapse to a single blank line, so extra spacing in the picture may not carry over.
- Other languages: this page reads with an English model only. Use a tool with the right language data for another language.
- "No text was found in this image.": the page stops there instead of saving an empty file.
- Tables lose their grid: plain text has no table structure, so copy the result into a spreadsheet and rebuild the columns by hand.
- Odd characters in the TXT: an editor that reads the file with the wrong character encoding shows garbled letters. The file here is UTF-8.
Frequently Asked Questions
Everything you need to know about our converter
How do I convert a JPG to text?
Is JPG to TXT the same as saving the picture as a text file?
Which languages does it read?
What does "No text was found in this image" mean?
Which engine reads the picture?
Does the TXT keep my columns, tables and layout?
Is my picture uploaded to read the text?
What encoding is the TXT file in?
Can I read several JPGs in one go?
Can I get editable text with formatting instead?
Browse All Tools
Browse by category instead of one giant mixed list.
Convert Tools
Convert image, audio, video, document, and data files directly in your browser.