Convert Text (TXT) to PDF
To convert a text file to PDF, add the .txt file, set the font size, margin, page size (A4 or US Letter) and font, and click Text to PDF. Long lines wrap, tabs are kept as stops and the text flows onto as many pages as needed. It runs in your browser, so nothing is uploaded.
Choose the font size, margins, page size and a monospace font for code
Choose Files
or drop documents directly into this area
Quick facts
- Formats
- Text (TXT) or Markdown (MD) → PDF
- Where it runs
- In your browser, on your own device. Files are not uploaded. If your device cannot handle a file, you can choose to use our server instead.
- Size limit
- 150 MB per run on a computer, 50 MB on a phone or tablet
- Files per run
- Up to 50
- Last updated
How to use Text to PDF
Choose one or more text files (.txt, .log or .md).
Set the font size, margin, page size (A4 or US Letter) and font.
Click Text to PDF.
Download the PDF.
Features & Privacy
Fast & High Quality
Private: Files Never Leave Your Device
Batch Processing
Frequently Asked Questions
Automatic uses a sans-serif font and switches to monospace when the text looks column-aligned, such as logs or tables. You can also choose Sans-serif or Monospace yourself.
Yes. Latin text is written as real PDF text. Other scripts such as Hindi, Arabic or Chinese are laid out with your device's fonts and saved as sharp page images with a searchable text layer.
No. The text is paginated without numbers. Run Add Page Numbers on the resulting PDF if you want numbered pages in the header or footer.
No. The text is printed exactly as written, including any # or * characters. For headings, lists, tables and code blocks from a .md file, use Markdown to PDF instead.
Plain text files such as .txt, .text, .log and .md in UTF-8, UTF-16 or Windows-1252 encoding. Binary files are rejected with a clear message instead of producing garbage.
No. The PDF is created in your browser on your own device, so your text never leaves it. It works the same way in phone and tablet browsers.
Related Tools
Continue your workflow with these related tools: