Method 1: Convert TXT to PDF online (free, in your browser)
- 1
Open the TXT to PDF converter
It runs in your browser tab, so the text never leaves your device.
Go to converter - 2
Add the text file
Drop a .txt file on the page. Free: 2 files a day, up to 10 MB each. Pro: no daily limit, files up to 500 MB.
- 3
FormatDrop lays out the pages
The PDF uses A4 pages and a 10-point monospace font (Liberation Mono). Long lines wrap at word boundaries, tabs line up on 8-column stops, and the file is read as UTF-8, falling back to Windows-1252 for older files. Latin, Greek and Cyrillic text works; Chinese, Japanese, Arabic and emoji aren't supported.
- 4
Download the PDF
The text in the PDF can be selected and copied. PDF output has no watermark.
Other ways to convert TXT to PDF
- 1
Print to PDF (any computer)
Open the .txt file in a text editor (TextEdit, Notepad, gedit) and print it. Choose 'Microsoft Print to PDF' as the printer on Windows, or PDF → Save as PDF in the Mac print dialog.
- 2
LibreOffice (free)
Open the file in LibreOffice Writer. For code or logs, pick a monospace font first. Then File → Export as PDF. From the command line: soffice --headless --convert-to pdf input.txt.
- 3
enscript + Ghostscript (command line)
enscript -p output.ps input.txt && ps2pdf output.ps output.pdf. enscript adds a header with the file name and page number; add -B to leave it out.
Why convert TXT to PDF?
Plain text is the most portable format for content; PDF is the most portable format for presentation. Converting TXT to PDF gives your text a home that looks professional and prints correctly everywhere.
Your files never leave your device
FormatDrop runs the conversion engine entirely inside your browser using WebAssembly. No file upload. No server. Nothing stored. You can verify this by opening DevTools → Network tab and watching: zero upload requests.
Frequently asked questions
How do I convert TXT to PDF on the command line?
Will the PDF wrap long lines properly?
Can I preserve code formatting when converting TXT to PDF?
No account. No upload. Works in any browser.