Part of Open Toolkit
More free tools
Open PDF Toolkit

Convert text to PDF

Free, no sign-up, no credit card. Your files stay on your device.

Page size
Margins
Text

How to convert text to a PDF

  1. Paste or type your text into the box, or choose a .txt file.
  2. Choose A4 or US Letter, the margins, and the text size. Tick fixed-width letters for columns or code.
  3. Select Make PDF.
  4. Download the PDF.

What to know

The text stays as you wrote it
Every line break and blank line is kept, and so are indents and runs of spaces. Nothing is read as formatting, so a line starting with
Long lines wrap
A line wider than the page breaks at a space and carries on below it, with the same indent. A word wider than a whole line, such as a long web address, is split so nothing is cut off.
Fixed-width letters
Tick this for logs, code, and tables made with spaces. Every letter takes the same width, so columns stay lined up. It uses Courier, which is in every PDF reader.
Real text, in other alphabets too
The result is real text you can select, search, and copy. English and Western European text uses the standard fonts, which add almost nothing to the file. Greek, Cyrillic, and other Latin letters use Liberation Sans, put into the PDF, which adds about 140 KB. Letters no font here can write, such as emoji, show as a question mark and are listed.
Text files and their encodings
A file is read as UTF-8, UTF-16 with a byte-order mark, or Windows-1252, which older Western files use, so accents come out right. Other encodings may show odd letters; open the file in a text editor, save it as UTF-8, and try again.

Common problems

Columns of numbers don't line up.
Tick the fixed-width option. In ordinary letters, a space is narrower than a digit, so spaces can't line columns up.
Some characters show as a question mark.
No font here has them, which is the case for emoji and some scripts. Replace them with plain text.
Accents and quotes look wrong.
The file may be in an encoding other than UTF-8 or Windows-1252. Save it as UTF-8 in a text editor and choose it again.
The pages are too small or too large to read.
Choose a different text size, or Narrow margins to fit more on a page. To change the page size of the result, use Resize PDF.

Questions

Are my files uploaded anywhere?

No. Your files stay on your device the whole time. They're never uploaded.

Is it free?

Yes. There's no sign-up, no watermark, and no limit on how often you use it.

Is there a limit on how much text?

Files over 100 MB get a warning first, and you can still choose to try. A very long text takes longer, and a phone may struggle with large files.

Can I select and search the text in the PDF?

Yes. The text is real text, not a picture of it.

Does it work with .csv and .log files?

Yes. Any plain text file works. For columns that line up, tick the fixed-width option.

Something not working? Report a problem