Convert TXT to PNG

Turn TXT files into PNG files. The text is printed on A4 pages in a fixed-width font, line by line, so spaces and indentation stay where they were and long lines wrap at the page edge.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TXT files on the dialor turn it to pick what to do

Text printed as PNG pages.Each page of your text becomes one PNG, with spaces and indentation kept.

  1. What you get

    The text is printed on A4 pages in a fixed-width font, line by line. Spaces and indentation stay where they were, so aligned columns and indented blocks keep their shape.

    Each page becomes one PNG, so a long text gives you several files. The pictures are drawn at 150 dpi unless you set Resolution (dpi) or Width (px).

  2. What changes

    Long lines wrap at the page edge. A line that is wider than the page continues on the next line instead of running off.

    The result is a picture of the text. It is no longer text you can select or edit. To get text back from a picture, use PNG to TXT.

  3. Size options

    Set Resolution (dpi) to change how many pixels each inch of the page becomes. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print. The range is 36 to 600.

    Set Width (px) to give the exact width of each picture in pixels, from 1 to 20000. The height follows the aspect ratio unless you also give a height, in which case the picture can be stretched.

TXT and PNG.What each format is, and the options this conversion takes.

  1. 01 · dpi

    Resolution (dpi)

    How many pixels each inch of the page becomes when it is drawn as a picture. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.

    36 to 600 default 150
  2. 02 · width

    Width (px)

    The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.

    1 to 20000

The formats

From · TXT

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
To · PNG

PNG

Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.

Extensions
.png
MIME type
image/png
Kind
Images

In your code.The same TXT to PNG conversion through the API, for your app or your agent.

terminal
$ cv convert report.txt report/ --to png
$ cv convert report.txt report/ --to png

Questions.What people ask about TXT to PNG.

01OF 04

One for each page. A short text fits on one page and gives one PNG, and a longer text gives one PNG per page.

Yes. The fixed-width font keeps spaces and indentation where they were.

They wrap at the page edge and continue on the next line.

Set Resolution (dpi) to 300, which is the usual choice for print. Higher values are sharper and make a bigger file.

More conversions.Other ways in and out of TXT and PNG.