TXT files are readable everywhere but look rough and unprofessional when shared. Here's how to convert any plain text file to PDF on Windows, Mac, iPhone, and online — free, in seconds, no formatting lost.
Frequently Asked Questions
How do I convert a TXT file to PDF for free?
The fastest free method on Windows is Notepad's built-in print dialog: open the file, go to File > Print, select "Microsoft Print to PDF," and save. On Mac, open the file in TextEdit and choose File > Export as PDF. For any device, use the free [Scanjet document converter](https://scanjet.app/document-converter/) — no signup required.
Does converting TXT to PDF preserve line breaks?
It depends on the method. Notepad's Print to PDF and TextEdit's Export preserve line breaks exactly. Some online converters reflow text. For pixel-perfect results, use a method that treats the TXT as a fixed-format document rather than reflowable text.
How do I convert a Notepad file to PDF on Windows?
Open the .txt file in Notepad, go to File > Print, select "Microsoft Print to PDF" as the printer, and click Print. A Save dialog appears — choose a location and click Save. Your PDF is ready instantly, no additional software needed.
Can I convert TXT to PDF on my iPhone?
Yes. Open the .txt file in any app that supports sharing, tap Share, then choose Print. Long-press (or pinch outward) on the print preview to get a PDF, then tap the Share icon to save it. Alternatively, use the [Scanjet document converter](https://scanjet.app/document-converter/) in your mobile browser.
Why convert TXT to PDF instead of sharing the text file directly?
PDFs look identical on every device regardless of screen size, OS, or font settings. They can't be accidentally edited, are universally accepted by email systems, and print with defined margins and page breaks. A TXT file can render differently on every device and is trivially editable.