TXT to PDF Converter
This TXT to PDF converter reads a .txt file or pasted text in your browser and lays it out on pages you save as a PDF from the print window. Writing the text first? Use the free online notepad and download it as plain text.
Up to 2 MB. The file is read here; nothing is uploaded.
0 characters.
Page settings
Opens your browser's print window. Choose Save as PDF as the printer.
Preview
Your pages appear here as you type.
Your browser's print window shows the exact pages.
Saved only in this browser under the key qn-txtpdf-v1. Nothing you type is sent anywhere. Clearing this site's data deletes it.
Why use our TXT to PDF Converter?
No File Upload
Many converters upload your file to a server first; this one reads it on your device and lays out the pages there.
Your Choice of Font
Monospace keeps columns and code aligned; Sans serif or Serif reads like a document.
Any Script
The PDF keeps accents, emoji and non-Latin scripts your device has fonts for.
What is a TXT to PDF Converter?
A TXT to PDF converter turns a plain text file into pages with a font, margins and page numbers, ready to share or print. A text file is a sequence of lines of plain text (Wikipedia: Text file). It stores no fonts or page layout, so you choose them when you print.
This converter works through your browser's print window: press Download PDF, choose Save as PDF as the printer, and the text stays selectable in the file.
Fonts, Line Wrapping and Page Size
- Wrapping:Long lines wrap inside the margins and tabs keep their indent.
- Direction:Each line takes its own text direction, so Arabic and Hebrew lines align right.
- Paper:Paper starts on Letter when your browser language is set to the United States, Canada, Mexico or the Philippines, and on A4 everywhere else.
- Margins:Margins are Narrow (10 mm), Normal (20 mm) or Wide (25.4 mm, one inch).
- Page numbers:Page numbers sit at the bottom center as 1 of 3, 2 of 3 and so on. Page numbers print in Chrome.
- Print window:The print window can change paper and margins too.
Common Use Cases
Notes to PDF
To make notes to PDF, copy the text out of your notes app and paste it here.
Formatted Notes
Notes with headings and lists look better through the Markdown to PDF converter.
Logs and Config Files
Monospace type and kept tabs make logs and config files readable on paper.
Plain Text Letters
Give a letter written in a plain text editor proper margins and a serif font before you send it.
On a Phone
It runs in mobile browsers; saving the PDF depends on your phone's print menu.
Fixed Copies
Keep a transcript or a README as a PDF that looks the same on every device.
Right to Left Text
Arabic and Hebrew lines align right on their own, while English lines in the same file stay left.
How to Convert TXT to PDF
Add the text
Open the .txt file with Open .txt file, or paste text into the Text box.
Set the type
Choose Font and Size. Monospace is selected when the page opens.
Set the page
Choose Paper, Margins and Page numbers.
Save the PDF
Press Download PDF, then choose Save as PDF as the printer in the print window.
Your File Stays in This Browser
Read on Your Device
Up to 2 MB. The file is read here; nothing is uploaded.
Text Kept for Next Time
Saved only in this browser under the key qn-txtpdf-v1. Clearing this site's data deletes it.
Free, No Account
There is no account and no limit on how many files you convert.
Ctrl+P Works Too
With text in the box, Ctrl+P prints the same pages as Download PDF.
Selectable Text
The PDF holds real text, so you can search it and copy lines out of it later, unlike a scan or a screenshot.
Back to Plain Text
Download .txt saves what is in the box as a plain text file again, for example after you pasted and edited it here.
Tips for a Clean PDF
- •Check page breaks: The print window shows the exact pages before you save, so look at where each page breaks.
- •Notes apps: Apple Notes and Notability files cannot be opened directly, so paste their text instead.
- •Encoding: Files are read as UTF-8. If accents look wrong, save the file as UTF-8 in your editor first.
- •Code and tables: Keep Monospace for code, logs and text laid out in columns with spaces, so everything stays lined up.
- •One way: This page only makes PDFs; it cannot turn a PDF back into a TXT file.
Convert Your Text File
Open a .txt file or paste text above, pick a font and paper, then press Download PDF.
Choose Save as PDF in the print window and save the file wherever you like.
Related tools
Frequently Asked Questions
How can I convert a TXT file to PDF?
Open it here, set the font and page size, then press Download PDF and choose Save as PDF.
Is this TXT to PDF converter free?
Yes, with no account and no limit.
Is my file uploaded?
No. It is read in this browser.
Can I convert notes to PDF?
Yes. Paste the note's text here. Apple Notes and Notability files cannot be opened directly.
Can I convert text to PDF on a mobile phone?
It runs in mobile browsers; saving depends on your phone's print menu.
Can I turn a PDF back into a TXT file?
Not here. This page only makes PDFs.