Convert PNG to TXT
Turn PNG images 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 PNG files on the dialor turn it to pick what to do
The text from a picture.Reads the words in a PNG and gives you one plain text 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 and nothing more.
The picture is read with OCR, which looks for letters in the image. The text it finds is what ends up in the file.
What it leaves behind
Layout, tables and pictures are dropped. Only the words come through, not where they sat on the page or how they were arranged.
A picture with no readable text fails with
unsupported_elements. The conversion stops with this code when the file holds something the target cannot carry.Set 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.
PNG 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
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - 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 PNG to TXT conversion through the API, for your app or your agent.
$ cv convert photo.png photo.txt$ cv convert photo.png photo.txtQuestions.What people ask about PNG to TXT.
No. Layout, tables and pictures are dropped, and you get the text only.
The picture has no readable text, so there is nothing to put in the TXT file. The conversion stops with unsupported_elements.
Choose the language the text is in. This matters most for Korean, Japanese and Chinese. For more than one, separate them with commas, such as en,ko.
If the file could not be parsed, the conversion stops with input_corrupted.