Why turn a text file into a PDF?
A .txt file looks different depending on where it opens: one phone shows it in tiny print, another wraps lines oddly, and some email apps will not preview it at all. A PDF fixes the layout in place, so the page you see is the page everyone else sees and prints.
Typical reasons:
- Sending notes or a draft. Meeting notes, a list or a short letter written in Notepad look tidier and more official as a PDF.
- Keeping logs and records. Server logs, chat exports and diagnostic files become easy to archive, print or attach to a support ticket.
- Uploading to a form that only takes PDF. Many application and government sites refuse .txt files.
- Printing cleanly. Choose margins and text size once instead of fighting a browser's print settings.
Prefer to do it with the programs already on your computer? See how to save a Notepad file as a PDF on Windows and Mac.
Choosing a layout
- Paper size. A4 is standard in Turkey, Europe and most of the world; US Letter and Legal are used in the United States and Canada. A5 is half of A4, handy for booklets.
- Orientation. Landscape gives long lines, such as log entries or wide CSV rows, more room before they wrap.
- Text size. Medium (11 pt) reads comfortably on screen and paper. Choose small to fit more on a page, large for easier reading.
- Margins. Normal margins suit most printing. Choose wide if you plan to hole-punch or bind the pages.
- Page numbers. Shown as "1 / 5" at the bottom of each page so a printed stack stays in order.
Which tool do I need?
| What you have | Right tool |
|---|---|
| A plain text file (.txt, .log, .md) | This tool |
| Photos or scans of pages | JPG to PDF |
| A PDF you want as text again | PDF to text |
If something goes wrong
"This is not a plain text file." The file may be a Word, PDF or image file renamed to .txt, or it may have another extension. Open it in Notepad: if you see readable words, save it again as .txt.
"This file has no text to put in a PDF." The file is empty or contains only spaces. Check that you picked the right file.
Some characters appear as boxes. The embedded font covers Latin, Greek and Cyrillic letters. Emoji, Chinese, Japanese, Arabic and some symbols are not included yet and may show as empty boxes.