Home › File & PDF Tools › TXT to PDF Converter
TXT to PDF Converter
Our free TXT to PDF converter turns plain text into a real, printable PDF right in your browser. Paste your text or upload a .txt file, pick the font size, margins, page size, and orientation, and download a genuine PDF — no upload, no sign-up, and no watermark.
Your text stays on your device. It is turned into a PDF in your browser and never uploaded anywhere.
The file fills the box above for you. A file saved from Notepad or any plain-text editor works.
10 pt fits more text per page; 14 pt is easiest to read.
Narrow margins fit more words on each line.
Landscape gives long lines more room before they wrap.
The title prints in a larger bold font at the top of the first page.
How it works
A .txt file is the simplest kind of document: plain characters, one line after another, with no fonts, no bold, and no page layout. That simplicity is why any notes app can save one — but also why text files look rough printed or sent to someone else. A PDF, by contrast, is a finished document: it carries its own fonts, page size, margins, and layout, so it looks the same on every screen and printer. This tool bridges the two, laying your plain text out as a proper PDF page.
When you paste text or upload a .txt file, the tool first checks that the input is not empty. An empty box or an empty file shows a friendly message instead of a blank PDF, and a file that does not end in .txt is refused, so a Word document cannot slip through by accident. Then it splits your text into lines and wraps each long line at the margin, so no word is cut off. Blank lines are kept by default, so the paragraph breaks in your text carry over into the PDF; uncheck the box to squeeze the empty lines out.
You control how the PDF looks. Font size runs from 10 points for dense notes to 14 points for easy reading. Margins run from narrow (half an inch) through normal (three quarters of an inch) to wide (a full inch). Page size offers Letter (8.5 by 11 inches, the standard sheet in North America), A4 (210 by 297 millimeters, the standard sheet almost everywhere else), and Legal (8.5 by 14 inches, for longer pages). Portrait suits ordinary reading, while landscape gives long lines more room. The optional title prints in bold at the top of the first page, and page numbers print "Page 1 of 2" at the bottom when the box is checked.
Long documents are handled by paging: text that runs past the bottom of a page continues on the next one, with the same margins and font throughout. Nothing is uploaded: the PDF is built in your browser with a local copy of the jsPDF library, so your notes, letters, and lists never leave your device. The download is named after your title, or your uploaded file, and the PDF is genuine — the text is selectable and searchable, not a picture of your words.
The Preview button shows you what the PDF will contain before you download it — your text as laid out, with the line count — so you can spot a mistake while it is easy to fix. The Sample button fills in a short grocery list, and Clear empties the box. If your source file is a Word document, convert it first with the DOCX to TXT tool on this site, then bring the plain text here.
Worked example
Suppose you have jotted down a shopping list in a notes app and want to print it or send it to someone in the household. The text is six short lines:
Grocery list — Saturday
Milk, 2 litres
Bread, whole wheat
Eggs, one dozen
Apples, 1 kg
Rice, 2 kg
Step 1: paste the six lines into the box, with the font size on 12 pt, the margins on Normal, the page size on Letter, and the orientation on Portrait, with the title "Grocery List — Saturday" and page numbers switched on.
Step 2: click Preview. The preview shows the same six lines, and reports 6 lines of text.
Step 3: click Download PDF. The tool builds a one-page Letter PDF titled "Grocery List — Saturday", with the title in bold at the top, the six lines below it, and "Page 1 of 1" at the bottom, and saves it as grocery-list-saturday.pdf. The file starts with the bytes %PDF-, which is how you know it is a real PDF.
If the same list had 200 lines instead of 6, the result would be the same, just spread across several pages with page numbers at the bottom. Switch the page size to A4 and the font to 14 pt and the same six lines still fit on one page — the layout simply gives each line more room.
FAQ
Is my text uploaded to a server?
No. Your text is turned into a PDF entirely in your browser with a local copy of the jsPDF library. Nothing is uploaded anywhere, so private notes, letters, and lists stay on your own device.
What text files can I convert?
Any plain text file ending in .txt, plus text you paste or type directly into the box. The tool reads the file as text, so a file saved from Notepad, TextEdit, or any plain-text editor works. Word documents and rich text files are not plain text, so use the DOCX to TXT tool first if your file has formatting.
How do I control how the PDF looks?
Pick a font size from 10 to 14 points, margins from narrow to wide, a page size of Letter, A4, or Legal, and portrait or landscape orientation. You can also add a title line at the top of the first page and switch page numbers on or off.
What happens to long lines and long documents?
Long lines wrap at the margin so no words are cut off, and a document that runs past the bottom of a page flows onto the next one. Blank lines are kept, so the spacing and paragraph breaks in your text carry over into the PDF.
Can I edit the PDF after downloading it?
The PDF is a finished document with selectable text, so you can print it, attach it to an email, or open it in a PDF reader. To change the wording, edit the text in this tool and download it again — the tool keeps your text in the box until you clear it.