Plain text files are everywhere: notes, logs, exported chats, lyrics, code, packing lists, the output of a script or an AI tool. They open anywhere, but they do not print well, they cannot carry a page layout, and many forms and upload portals only accept PDF. Converting a .txt file to PDF gives it pages, margins and a fixed look that every device shows the same way.
This converter checks your text file in the browser first, then lays it out on our server with LibreOffice. The result uses a fixed-width font, the same kind Notepad uses, so anything you lined up with spaces stays lined up. Here is what to expect and how to avoid the one common problem: broken symbols from the wrong encoding.
How to convert TXT to PDF
- Drop the .txt file onto the box, or click to choose it.
- Read the check under the file name. UTF-8 means every character will come through. Not UTF-8 means some symbols may break; see the encoding section below.
- The check also shows the number of lines and characters, and warns you about long lines and tabs.
- Click Convert to PDF.
- The PDF downloads on its own. Scroll through it to check line breaks and special characters.
What the PDF looks like
We converted sample files with accents, tabs, long lines and several scripts to see exactly how the text lands on the page:
| In the text file | In the PDF |
|---|---|
| Every line | Kept as its own line, in a fixed-width font |
| Blank lines | Kept, so paragraphs stay separated |
| Spaces used to line things up | Kept exactly, because every character has the same width |
| Lines longer than the page (about 90 characters) | Wrapped onto the next line |
| Tabs | Kept, but tab stops differ from your editor, so tab-aligned columns may shift |
| Accented letters (é, ü, ñ) in a UTF-8 file | Correct |
| Long documents | Flow onto as many pages as needed |
There is no formatting to keep, because plain text has none: no bold, no headings, no images. If you want those, put the text into a word processor first, format it, and convert with DOCX to PDF.
Encoding: why € or é turns into a box or disappears
A text file is just bytes, and the encoding is the rule that says which byte means which letter. Plain English letters are the same in every encoding. Accented letters, currency symbols and other scripts are not.
- UTF-8 covers every language and symbol. It is the default in Notepad on Windows 10 and 11, on Macs, on Linux and on the web. These files convert cleanly.
- Windows-1252 (often called ANSI) and Latin-1 are older Western encodings. Files saved in them by old software or older Windows versions can lose characters such as € in conversion; in our tests the euro sign from a Windows-1252 file did not survive.
- UTF-16 (shown as "Unicode" in some editors) is detected and fine.
The fix takes ten seconds. In Notepad, choose File > Save as, set Encoding to UTF-8, and save. In TextEdit on a Mac, choose File > Duplicate, then File > Save, and pick Unicode (UTF-8) under Plain Text Encoding. Then convert the new copy.
Note: Scripts other than Latin, such as Arabic, Urdu, Hindi or Chinese, come out only as well as the fonts on our server support them in a fixed-width layout. Right-to-left text in particular can look wrong in a plain text layout. Check the PDF, and for important documents in those scripts, paste the text into a word processor and convert from there.
Long lines and wide tables
A page fits about 90 characters per line in this layout. Most prose files are written with shorter lines or as one long line per paragraph, and both are fine: long paragraphs simply wrap. Text that was designed to be wide, such as a log with long entries or a table made of spaces, wraps in the middle of the row and becomes hard to read. Options:
- Shorten the lines in a text editor before converting.
- For tables, paste the text into a spreadsheet, split it into columns and convert with Excel to PDF, which can fit a sheet to a landscape page.
- For code, keep lines under about 90 characters, which most style guides recommend anyway.
Example: a packing list for a courier portal
A seller keeps packing lists as text files generated by a spreadsheet macro. A courier's portal asks for a PDF attachment with each shipment.
- Drop packing-1042.txt into the box. The check says UTF-8, 78 lines, and warns that one line is longer than 90 characters.
- That long line is the delivery address. Open the file, break the address into two lines, save, and drop it in again.
- Click Convert to PDF. The items, quantities and prices stay lined up in their columns, because the macro used spaces, not tabs.
- Upload the PDF to the courier portal.
The same habit pays off for any recurring text file: fix the template once (spaces instead of tabs, lines under 90 characters, UTF-8), and every PDF after that comes out right.
Tidy the text before converting
- Remove trailing blank lines at the end, so the PDF does not end with an empty page.
- Replace tabs with spaces if you need columns to line up exactly.
- Add a title line and a date at the top; plain text has no header or footer.
- Check the word and character count if a portal limits the length.
Other quick ways to make a PDF from text
- Windows: open the file in Notepad, choose File > Print and select Microsoft Print to PDF.
- Mac: open it in TextEdit and choose File > Export as PDF.
- Any computer: drag the .txt file into a Chrome or Edge window and print it with Save as PDF.
Those work well when you are at a computer with the file. This converter helps on phones and tablets, on locked-down work computers without a PDF printer, and when you want the encoding check before you send a PDF to someone else.
Common jobs
Transcripts and AI output
Transcripts from the audio transcription tool, chat exports and text written by AI tools usually arrive as TXT. A PDF is easier to share with a client or attach to a report, and it cannot be edited by accident.
Logs and technical files
Support teams often ask for a log as a PDF attachment. The fixed-width font keeps columns of timestamps and codes aligned, which makes the log readable on paper.
Forms and portals that want PDF
Job applications, visa portals and school systems often only accept PDF uploads. A plain cover letter or statement written in Notepad converts in a few seconds.
Several text files at once
Convert each file, then join the PDFs with Merge PDF in your browser. Name the files with a number at the start (01-intro.txt, 02-notes.txt) so they sort in the right order before you merge them.
Privacy and limits
The encoding check reads the start of the file in your browser. When you click Convert, the file is sent over HTTPS to our server, converted and deleted: the upload as soon as the job ends, the PDF 30 minutes after it is ready. A daily number of free conversions and a maximum file size apply, both shown on the tool.