3.5 out of 5, from 6 ratings

Text to PDF

Text to PDF

Turn a plain text file, or anything you paste, into a PDF. Nothing leaves your device.

0 lines, 0 characters

How it should be laid out

Paper

Type size

Margins

On for a poem, an address or a log. Off to let hard wrapped paragraphs reflow to the page.

Turn a text file (.txt) or pasted text into a PDF of real, selectable text, keeping line breaks or reflowing paragraphs. It reads UTF-8 and UTF-16 files as saved, and never treats a hash or an asterisk as Markdown.

How to convert text to PDF

  • Keep my line breaks exactly: on by default, every line stays a line on the page, indentation included. Turn it off and lines inside a paragraph run together and reflow to the page.
  • Type size: Small sets the text at 10 pt, Medium, the default, at 11.5 pt and Large at 13 pt. Larger type means fewer words on each page.
  • Margins: Normal leaves 18 mm of white around the text and Narrow 12 mm. Narrow puts more on each A4 or US Letter page.
  • Read it as: appears when a file is not UTF-8 and its encoding was guessed. If the letters look wrong, pick another encoding and the file is read again.

What this does that a print dialog does not

  • Your line breaks, your choice: keep every one of them for a poem, an address or a log, or let a hard wrapped paragraph reflow to the width of the page. Most converters pick one and do not tell you.
  • Reads the file as it was actually saved: UTF-8, UTF-8 with a byte order mark, and UTF-16 from a Windows editor. A UTF-16 file read as UTF-8 converts perfectly and comes out with a blank between every letter.
  • Any language: Turkish, Greek and Cyrillic are set as text, and scripts the embedded fonts cannot write are drawn with your own device's fonts instead of quietly disappearing.

Frequently asked questions

Will my line breaks be kept?
If you want them. Leave the setting on and every line of the file is a line on the page, indentation included, which is what a poem, an address, a set of lyrics or a log needs. Turn it off and lines inside a paragraph run together and reflow to the page, which is what a novel wrapped at column seventy needs.
Is my text read as markdown?
No, and that is deliberate. A line that starts with a hash means a hash, an asterisk means an asterisk, and an underscore in a filename stays where it is. If you do want markdown formatting, the Markdown to PDF tool is the one for that.
What about a file that is not in English?
It works. Latin, Greek and Cyrillic are set as real text. Japanese, Korean, Chinese, Thai, Devanagari, Arabic and Hebrew are drawn with the fonts your own device has, so the words reach the page instead of vanishing without an error, which is what happens when a PDF library meets a character its font lacks.
How large a file can it take?
Up to 4 million characters, about 4 MB of plain English text. The whole thing is typeset in your browser tab, so past that the tab stops responding rather than finishing, and the tool says so instead of trying.
Is the text in the PDF selectable?
Yes. It is set as real text rather than drawn as pictures, so you can search the PDF, copy from it, and have a screen reader read it aloud. It also keeps the file small.

You might also need: