How to use it
- Choose a .txt file, or type or paste text into the box.
- Pick a font: Helvetica, Times or Courier (monospaced, for code and logs).
- Set the text size, page size and margins.
- Press Create PDF; the PDF downloads straight away.
Why convert text to PDF?
A .txt file looks different on every device: the font, the line length and even the line breaks depend on the app that opens it, and phones often show it as one long line. A PDF fixes the layout, so the text looks the same everywhere, prints on standard paper and can be attached to forms and emails that only accept PDF.
How to turn a text file into a PDF
- Choose the .txt file, or paste the text into the box. You can edit it there before converting.
- Choose a font and size. 11 pt Helvetica is easy to read on screen and paper.
- Pick A4 (most countries) or US Letter (US and Canada), and the margins.
- Press Create PDF. Long lines wrap at the margin, blank lines are kept, and new pages start automatically.
Choosing a font
| Font | Looks like | Best for |
|---|---|---|
| Helvetica | Clean sans-serif | Notes, lists, general documents |
| Times | Traditional serif | Letters, essays, transcripts |
| Courier | Typewriter, fixed width | Code, logs, plain-text tables and poems with exact spacing |
Good to know
- Tabs are turned into four spaces so columns stay roughly aligned; choose Courier for exact alignment.
- Very long words or links that do not fit on one line are broken across lines rather than cut off.
- Languages: the PDF fonts cover Western European characters. For documents in other scripts, print to PDF from a word processor instead.
Need several documents in one file? Join the PDFs with Merge PDF. Counting words before you convert? Use the word counter.
Frequently asked questions
How do I convert a TXT file to PDF?
Choose the .txt file above, keep the default settings and press Create PDF. The PDF uses the same file name with .pdf at the end.
Is the text in the PDF searchable?
Yes. The text is written as real text, not as an image, so you can search it, select it and copy it from the PDF.
Which font should I use?
Helvetica is clean and modern, Times suits letters and essays, and Courier keeps every character the same width, which keeps code, logs and tables made with spaces lined up.
Does it support other languages?
The built-in PDF fonts cover English and Western European languages such as French, German, Spanish and Portuguese. Characters outside that set, such as Arabic, Urdu, Chinese or emojis, are replaced with a question mark, and the tool tells you how many.
How do I convert text to PDF on Windows or Mac?
Without a website: open the text file in Notepad or TextEdit, choose Print, and select Microsoft Print to PDF on Windows or Save as PDF on a Mac.
Is my text uploaded?
No. The PDF is created in your browser with the open-source pdf-lib library, so your text stays on your device.
Last updated · Built and checked by Moeed Hussain