PNG to TXT Converter
Turn the English text in a PNG screenshot into a plain TXT file.
or drop files here
PNG Format
Portable Network Graphics
A lossless raster image format developed in the mid-1990s as a patent-free replacement for GIF and standardized as ISO/IEC 15948 and a W3C Recommendation.
- lossless compression
- alpha transparency
- 8-bit and 16-bit channels
- supported by every browser
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 PNG to TXT
Follow these steps to convert PNG to TXT online.
Choose your PNG 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 PNG
Convert TXT to PNG: 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.
PNG to AI
Convert PNG to AI format
PNG to AVIF
Convert PNG images to AVIF
PNG to CUR
Convert PNG images to CUR format
PNG to DDS
Convert PNG images to DDS format
PNG to EPUB
Convert PNG to EPUB format
PNG to ICO
Convert PNG images to ICO format
PNG to JPEG
Convert PNG images to JPEG format
PNG Optimizer
Compress and optimize PNG files
PNG to PPM
Convert PNG to PPM format
PNG to PSD
Convert PNG to PSD format
PNG to TIFF
Convert PNG images to TIFF format
PNG to WebP
Convert PNG to WebP format
PNG to XBM
Convert PNG 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
JPG to TXT
Convert JPG to TXT format
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)
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 PNG to TXT
- The page reads the picture with OCR, in your browser, using an English model only.
- The TXT is UTF-8 plain text: no columns, fonts, tables or pictures.
- If no text is found, you get a message and no file.
- Check numbers and codes against the PNG, since OCR can swap look-alike characters.
- Choose several PNGs and each becomes its own TXT.
About PNG files
What is a PNG file?
Made to replace GIF without GIF's patent trouble, PNG stores a picture losslessly. First of its kind at the W3C, PNG became a Recommendation in October 1996, with RFC 2083 and ISO/IEC 15948 after it. Under the hood it is a fixed signature followed by chunks, with the pixel data compressed by DEFLATE. Its pixel layouts are indexed, grayscale and truecolor; each sample takes 1 to 16 bits, and an alpha channel is optional. All major browsers show PNG, and no royalty-bearing patents are known to cover it. image/png is its registered media type, and image/apng is the one for animated files. Software that cannot animate a PNG shows its default still image instead.
Most people meet PNG as a screenshot, because macOS saves screenshots as PNG by default. That is why this pair exists. A screenshot of a web page, a chat or a spreadsheet looks like text, but the file holds only pixels. The letters are not characters a text editor can select. To get them out, the converter has to read the picture, which is called optical character recognition, or OCR.
Programs that open PNG files
Windows, Mac and Linux:
- GIMP imports PNG for editing, so you can crop a screenshot to the lettering before you convert it.
- ImageMagick reads PNG.
Web and mobile:
- Google Chrome displays PNG.
- Mozilla Firefox displays PNG.
- Safari, on mobile, displays PNG.
PNG and TXT compared
- Extensions and media types: a screenshot ends in .png and is labeled image/png. The text it becomes ends in .txt and is labeled text/plain.
- What is stored: a PNG is a grid of pixels, in indexed, grayscale or truecolor, with an optional alpha channel. A TXT holds characters, and its charset says how the bytes map to them.
- Compression: PNG is always lossless, using DEFLATE. A text file is not compressed.
- Layout: plain text has no fonts, page layout or picture placement, so columns, tables and styling in the screenshot do not carry over.
Unlike most pairs here, this one does not copy anything out of the PNG; it reads the picture. A text recognizer runs in your browser with an English model only, and the image is not uploaded. When it finds no lettering, you get a message and no file.
Other ways to convert PNG to TXT
- Tesseract (command line): run
tesseract capture.png recognized -l eng. The-loption picks the language, and English is the default when you leave it out. The default output format is text, and it wrote recognized.txt next to the image in a test run. Tesseract and the English language data must be installed. - PowerToys Text Extractor (Windows): show the PNG on screen, press Windows+Shift+T and drag over the text. The text goes to the clipboard; paste it into a text editor and save a .txt file. It reads the screen region, not the file. Microsoft says the text may not be perfect and needs a quick proofread.
- Preview and TextEdit (Mac): open the PNG in Preview, drag to select the text, Control-click and choose Copy Text. Paste into TextEdit, choose Format > Make Plain Text and save. Live Text isn't available in all regions or languages.
Problems with PNG files
- The text comes out wrong or scrambled: OCR reads shapes, and small, blurry or slanted letters get misread. Capture the screen at a larger size or scan at a higher resolution, then convert again. Enlarging a blurry image adds no detail.
- The page finds no text: the picture has no readable lettering, or the lettering is too faint or small. Try a sharper copy, and crop away borders and busy backgrounds.
- Letters in another language come out as nonsense: the model is English. A screenshot in another language needs an OCR program with that language's data.
- Columns run together: plain text has no columns. Convert each column or region as its own cropped image and join them in an editor.
- The recognizer couldn't start: the recognizer or its English model did not load. Reload the page and try again, or try another browser.
- A photo gives nothing: OCR finds letters, not objects, so a picture with no writing in it ends with no text instead of a description of the scene.
Frequently Asked Questions
Everything you need to know about our converter
Is there a quick way to get a text file from a PNG?
Can I copy the text out of a screenshot?
Which languages can it read?
Why does the page say "No text was found in this image"?
Will the TXT keep my columns and table layout?
Why are letters like O and 0 or l and 1 mixed up?
Can I do a whole folder of screenshots in one go?
What encoding is the TXT file?
Is my PNG uploaded to a server?
How do I get a better result from a poor screenshot?
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.