Text to PDF

Processed in your browser — your files never leave this device.

Processed on your device — never uploaded · check it yourself

Sometimes you just need a block of text as a PDF — an email to attach, a note to print, a log to send to somebody. This free online converter takes a .txt file or text you paste, and sets it on a clean A4 page. Blank lines are kept as paragraph breaks, because in a pasted document that is what they are, and collapsing them turns something readable into a wall. There is a fixed-width option for anything lined up with spaces, like code or a plain-text table.

How to use it

  1. Paste your text, or add a .txt file. Either works; you do not need both.
  2. Choose a size, and turn on the fixed-width font if your text relies on spaces to line up.
  3. Long lines wrap at word boundaries, and a very long unbroken string is broken rather than allowed to run off the page.
  4. Download the PDF, set on A4 with a 20 mm margin.

Examples

  • A pasted email turned into a PDF to attach
  • A log file set in a fixed-width font so the columns stay lined up

Frequently asked questions

Can I paste instead of uploading?
Yes, and for most uses it is quicker. The paste box and the file picker do the same job, and if you use both the pasted text wins. Nothing you paste leaves the page — it is turned into a PDF in your browser, which is why you can paste something private without thinking about it.
Are my line breaks kept?
Yes, including the blank ones. Every line break in your text becomes a line break in the PDF, and a blank line stays a blank line. That is deliberate: in text people paste, blank lines are the paragraph breaks, and tools that collapse them produce an unreadable block. Lines longer than the page wrap at a word boundary and carry on underneath.
What about code or tables made with spaces?
Turn on the fixed-width font. In a proportional font an i is narrower than an m, so anything lined up with spaces falls apart. A fixed-width font gives every character the same width, which is what keeps a plain-text table in its columns and code indented the way you wrote it.
Which languages does it handle?
The Latin alphabet and the accents that go with it, reliably. The standard PDF fonts used here do not include Devanagari, Arabic, Chinese, Japanese or Korean, so text in those scripts will not render correctly — characters will come out blank or wrong. That is a limitation worth knowing before you convert something important rather than after.
Is my text uploaded?
No. It is turned into a PDF in your browser, on your device, and nothing is sent anywhere or stored. Load the page, go offline, and it still works — which is the point, since a lot of what people paste into a converter is exactly what they would not want logged.