How to convert TXT to PDF
- Choose the text file (.txt, .log or .md), or drop it here.
- Pick how it looks: font, text size, A4 or US Letter, and line numbers.
- Convert and download the PDF.
What the PDF looks like
- Every line of your file starts a new line in the PDF; empty lines stay empty.
- Lines longer than the page wrap onto the next line instead of being cut off.
- Tabs are kept (8 characters wide), so text tables line up in the monospace font.
- Margins are even on every page, and the text is real text: you can search and copy it.
Text in any language
Text files don’t say which language or font they use, so a converter without the right fonts shows boxes instead of letters. Ours has fonts for the world’s main scripts, including Urdu, Arabic, Hindi, Bengali, Chinese, Japanese and Korean, and lines written right to left are set right to left. If letters come out as strange symbols, the file was probably saved in an older encoding; open it in Notepad and save it as UTF-8, then convert again.
Common uses
- Notes and drafts you want to print or attach to an application.
- Logs and code, with line numbers, to share in a report.
- Markdown files, kept as plain text with their symbols (to print formatted Markdown, open it in a Markdown editor and print from there).
For text with formatting (bold, tables, pictures), save it as Word or RTF and use Word to PDF or RTF to PDF. To get the text out of a PDF instead, use PDF to Text.
Frequently asked questions
How do I convert a TXT file to PDF?
Does it work with Urdu, Arabic, Hindi, Chinese and other languages?
Which font should I choose?
Can I number the lines?
Is there a length limit?
Is there a limit?
Last updated: 2026-11-21