TXT to PDF
Convert TXT to PDF and see every page before you download. Add a text file, such as one saved from Notepad, and its PDF appears beside the settings, made again whenever you change one. Columns and tables lined up with spaces or tabs stay lined up, long lines wrap, and you choose the font, the size of the letters and the paper. The file is converted on your device, so it is never uploaded.
- Input
- TXT files, up to 20 at once
- Output
- PDF, PDF/A or a protected PDF
- Runs
- In your browser. The file never leaves your device.
- Cost
- Free. No sign-up, no watermark.
How to convert a text file to PDF
Add your text file
Choose a TXT file, or up to 20 of them. A single file is converted straight away and its pages appear beside the settings.
Look at the pages
The large page shows the PDF as it will be saved, and the row under it shows every page. Click a page in the row to open it, and check where long lines wrap and where the pages break.
Choose the font, size and paper
Keep Fixed-width for text lined up in columns, or pick Proportional for a letter or notes. Set the Font size, turn the page to Landscape for long lines, and pick a Paper size. Under Font size the tool says how many characters fit on a line. The preview follows each change.
Download the PDF
Click Download PDF when the pages look right. With several files, press Convert: the pages of every file are shown, grouped by file, and you download a ZIP of PDFs or one combined PDF.
Text to PDF with the pages shown first
The PDF is shown before you download
The real PDF sits beside the settings at a size you can read, with a row of all its pages under it. Change the font, the size or the paper and it is made again, so you see how many pages there are and where they break.
Columns stay lined up
The text is set in a fixed-width font, as Notepad and other text editors show it, so tables drawn with spaces, lists of figures, code and logs keep their columns. A tab moves to the next eighth character, as it does in an editor.
Font and size
Choose a fixed-width font (Courier New) or a proportional one (Arial), from 8 to 14 pt. With the fixed-width font the tool says how many characters fit on a line, so you can pick the size at which an 80-character file does not wrap.
Paper and orientation
Pages are A4 or US Letter, whichever is usual where you are, with one-inch margins. Choose A4, Letter, Legal, A3 or Tabloid yourself, and turn the page to landscape when the lines are long.
Page breaks from the file
A form feed character in the text starts a new page, as it does on a printer. A line too long for the page wraps onto the next line; nothing is cut off.
Accents and other alphabets
Files saved as UTF-8 or UTF-16 are read as they are, and an older Windows file (ANSI, Windows-1252) is recognised, so accented letters, the euro sign and curly quotes come out right. Greek, Cyrillic, Arabic and Hebrew have fonts of their own, and Hindi, Tamil, Chinese, Japanese, Korean and Thai are drawn with the fonts of your device.
Several text files at once
Convert up to 20 text files together into a ZIP of separate PDFs, or into one combined PDF with a bookmark for each file. After converting, the pages of every file are shown, grouped by file.
PDF/A, watermark and password
Save as PDF/A-1b, 2b or 3b for archiving, print a faint DRAFT or CONFIDENTIAL across every page, or set a password that is needed to open the PDF and choose whether readers may print or copy. You can also convert only the pages you list.
Private, with text you can select
The file is converted on your device and is never uploaded. The PDF holds real text, which can be searched, selected and copied. There is no account, watermark of ours or daily limit, on Windows, Mac, Linux, Android, iPhone and iPad.
Frequently asked questions
How do I convert a TXT file to PDF?
Add the text file here. It is converted at once and you see its pages beside the settings. Change the font, the size or the paper if you need to, then click Download PDF. Nothing is uploaded and nothing has to be installed.
How do I save a Notepad file as a PDF?
Save the note from Notepad as a .txt file (File, Save as) and add it here. The PDF looks like the note does in Notepad: a fixed-width font, with the same line breaks. Notepad itself can only print to PDF, without showing the pages first or letting you choose the paper.
Will my columns and tables stay lined up?
Yes, with Font on Fixed-width, which is how it starts. Every character is as wide as the next, so text lined up with spaces or tabs in the file is lined up in the PDF. With Proportional the letters have different widths and columns made with spaces shift.
Why do my long lines wrap, and how do I stop it?
A line wraps when it is longer than the page is wide. Under Font size the tool says how many characters fit on a line: 75 on A4 and 77 on US Letter at 10 pt. For an 80-character file choose 9 pt, or turn the page to Landscape, which fits 116 characters on A4 at 10 pt.
Can I change the font or the size of the text?
Yes. Font offers a fixed-width font (Courier New) and a proportional one (Arial), and Font size goes from 8 to 14 pt. A text file has no bold, italics or colours of its own, so the whole file is set the same way.
Can I convert several text files into one PDF?
Yes, up to 20. Choose Combine into one PDF, put the files in order with the arrows, and press Convert. Each file starts on a new page and gets a bookmark. Choose Separate PDFs in a ZIP for a PDF of each. To join PDFs you already have, use Merge PDF.
Which text files can it read?
Plain text files ending in .txt, saved as UTF-8, UTF-16 or the older Windows encoding (ANSI). Windows, Mac and Linux line endings are all read. For a Word, RTF or OpenDocument file use Word to PDF, for a CSV file Excel to PDF, and for an HTML file HTML to PDF.
Can it convert Hindi, Tamil or Chinese text?
Yes. Text in Devanagari and the other Indian scripts, Chinese, Japanese, Korean and Thai is drawn with the fonts of your own device, so it looks as it does on your screen. Those words are placed in the PDF as pictures of the words, so they cannot be selected or searched there; Latin, Greek, Cyrillic, Arabic and Hebrew text stays real text.
Can I add page numbers or a header?
Not here: the pages hold the text of the file and nothing else. Download the PDF, or send it straight on to Add Page Numbers, which is offered under the download. Add Header and Footer prints a title or a date on every page.
Can I password-protect the PDF?
Yes. Open Watermark and password and type a password of at least 8 characters. The PDF is encrypted with AES-256 and you can stop printing or copying. Its pages are still shown here before you download.
Can I select and search the text in the PDF?
Yes. The PDF holds the text itself, not a picture of it, so it can be searched, selected and copied in any PDF reader, and it stays sharp at any zoom. To get the text out of a PDF again, use PDF to Text.
Does it work on a phone?
Yes. On Android the same converter runs in the browser as on a computer. On iPhone and iPad a built-in converter makes the PDF, with nothing to download first.
Why does the first conversion take longer on a computer?
The browser downloads the document engine once: about 52 MB, stored on your device. Later visits skip the download and the page shows that the engine is ready before you choose a file. Conversions then take a few seconds.
Is my file uploaded anywhere?
No. TXT to PDF runs entirely in your browser: the file is opened and processed on your own device and is never sent to our server. More in the privacy policy.
Is TXT to PDF free to use?
Yes. TXT to PDF is free, with no account to create and no software to install — open the page in a modern browser and start.