Convert a text file to PDF

Turn a plain .txt file into a paginated PDF.

Drop your text file hereor click to choose — up to 50 MB free

A plain text file has no pages, margins or fonts, which makes it awkward to print or to send as a formal document. This tool flows the text onto pages and exports a PDF in which the text can still be selected and searched. It prints the characters exactly as they are in the file: symbols used by Markdown or other markup are not interpreted.

How to use it

  1. Drop your .txt, .log or .md file on the page, or click to choose it.
  2. Click Convert to PDF.
  3. Download the PDF and check that accented letters and long lines came out as expected.

How the text is laid out

Every line of the file becomes a line in the PDF, and a line longer than the page width wraps onto the next one. Blank lines are kept. When a page is full the text continues on the next page; there is no page count limit of its own.

There are no options for font, size, margins or paper. If you need control over those, paste the text into a word processor and use Word to PDF, or add structure with Markdown and use Markdown to PDF.

Text that relies on columns lined up with spaces, such as ASCII tables and console output, stays aligned only as long as no line is wide enough to wrap.

Which files count as plain text

The file is judged by its content. Anything containing zero bytes, or more than a small share of control characters, is treated as binary and refused with a message asking for a plain text file.

UTF-16 text, which Windows Notepad lists as Unicode or UTF-16 LE in its save dialog, is half zero bytes, and is accepted and read correctly when it starts with the byte-order mark that Windows programs write. A UTF-16 file without that mark cannot be told from binary data and is refused; save it again as UTF-8.

A file with a .txt name that actually holds RTF is converted as RTF, formatting applied. Markdown and log files are text and are printed literally, hash marks and asterisks included.

Characters that come out as boxes

The converter has the DejaVu, Liberation and Noto font families, which cover Latin, Greek, Cyrillic, Arabic, Hebrew, Chinese, Japanese and Korean text, among others, but not colour emoji. A character no installed font has is drawn as an empty box.

Questions

Why does it say my file is not plain text?

The file contains bytes that text does not: it is binary, or it is UTF-16 saved without a byte-order mark. Open it in your editor, choose Save As with UTF-8 encoding, and upload the new copy. An empty file is refused too.

Can I choose the font or page size?

No. This tool has no layout settings. To change the paper size afterwards use Resize PDF pages; to choose fonts, put the text in a word processor document and convert that.

Will my Markdown be formatted?

Not here. A .md file dropped on this page is printed as written, symbols and all. Use Markdown to PDF to get headings, lists and tables.

Can I convert a CSV file as text?

You can, and you get the raw lines with their commas. To see the data in rows and columns, use CSV to PDF, which prints it as a table.

How large a text file can I convert?

Up to 50 MB on the free plan and 4 GB on Premium. Conversion is stopped after two minutes, so a log of many hundreds of thousands of lines may not finish; split it first.

What happens to the text I upload?

The text file and its PDF are deleted automatically within one hour. The converter runs without internet access.