Convert text to PDF
Make a PDF from a .txt file or pasted text, with every line break kept.
Free, no sign-up, no credit card. Your files stay on your device.
How to convert text to a PDF
- Paste or type your text into the box, or choose a .txt file.
- Choose "A4" or "US Letter", the margins, and the text size. Tick fixed-width letters for columns or code.
- Select "Make PDF".
- 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 # or * stays exactly as typed. If you want headings and lists, use Markdown to PDF.
- 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.
- I need to tidy the text before making the PDF
- Change its case, sort or clean up the lines, or replace words first with Case converter, Remove duplicate lines or Find and replace.
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. To print a CSV as a table with a header row, use [CSV to PDF](/csv-to-pdf).
You might also need
-
Markdown to PDF
Paste Markdown or add .md files and get a PDF with real text. -
Header and footer
Add a title, date, file name, or page number to the top and bottom of pages. -
Add page numbers
Number all pages, or just the ones you choose, from any starting number. -
Resize PDF
Change the page size to A4, Letter, or your own, or add a margin around every page. -
PDF to text
Turn a PDF into text: copy it, or download a TXT file. -
Merge PDF
Combine several PDFs into one file, in the order you choose. -
CSV to PDF
Make a printable PDF table from a CSV, TSV or Excel sheet.