How to save a Notepad or .txt file as a PDF
Turn a plain text file into a PDF on Windows, on a Mac or in your browser — and what to do when accented letters break, lines run off the page or the font is too small
By Metin Ersoy · Updated November 9, 2026
Three ways to do it
A .txt file has no layout of its own, so making a PDF means choosing a page size, a font and margins somewhere. You can do that with the PDF printer that comes with your computer, with TextEdit on a Mac, or with a browser tool that does it in one step.
| Method | Good for | Watch out for |
|---|---|---|
| Print to PDF from Notepad | Quick, nothing to open | Notepad's header and footer, long lines |
| TextEdit on a Mac | Mac users | Plain text vs rich text mode |
| TXT to PDF in the browser | Phones, page numbers, old Turkish files | Plain text only, no bold or headings |
On Windows: print to PDF from Notepad
- Open the file in Notepad.
- Press Ctrl + P, or open File → Print.
- Choose Microsoft Print to PDF as the printer and click Print.
- Pick a folder and a file name in the save window, then click Save.
Notepad adds a header and footer (the file name and page number) to printed pages in many versions. If you do not want them, look under File → Page Setup and clear the header and footer boxes before printing. Menu names differ slightly between Windows 10 and Windows 11.
If Microsoft Print to PDF is not in the list, our guide to printing to PDF on Windows and Mac shows how to switch it back on.
On a Mac: TextEdit
- Open the .txt file in TextEdit.
- Choose File → Export as PDF.
- Name the file and click Save.
TextEdit uses its own font and wraps long lines to the window width. To change the font size first, choose Format → Font → Bigger or Smaller.
In the browser, on any device
TXT to PDF works on Windows, Mac, Android and iPhone:
- Choose your .txt file. The text appears in a box where you can fix a typo.
- Pick the paper size (A4 or US Letter), orientation, text size and margins. Leave Number the pages on if you will print it.
- Press Convert to PDF and download the file.
This route helps when the file comes from an old Windows computer: files saved as "ANSI" in Turkish are detected automatically, so ç, ğ, ı, ş and İ come out right.
Common problems
Letters turn into symbols such as "ç" or "�". The file and the program disagree on the encoding. Save the file again as UTF-8 (Notepad: File → Save as → Encoding: UTF-8) or use a tool that detects it.
Long lines are cut off at the right edge. Some programs print each line as it is without wrapping. Turn on Format → Word Wrap in Notepad before printing, choose landscape, or use TXT to PDF, which always wraps long lines.
The text is too small to read. Increase the font in Notepad before printing, or choose Large text in TXT to PDF.
You have several text files. Convert each one, then put them in order with Merge PDF.
Ready to try it? It is free and your file stays on your device.
Open TXT to PDF