Convert TXT to PDF
Convert text files (TXT) to PDF format. Upload a text file to create a PDF.
Combine multiple PDFs into one
Split a PDF into separate files
Reorder pages by dragging
Pull specific pages out
Pull all images out
Remove pages from PDF
Rotate pages in any direction
Stack one PDF onto another
Reduce PDF file size
Clean up unused data
Make scanned text searchable
Spot the differences between two PDFs
Add text, signatures, shapes
Add your signature anywhere
Add text or image watermark
Number pages as 1, i or A
Add sticky-note comments
Ready-to-use forms to fill online
Add a password
Unlock a PDF with its password
Black out sensitive info
Editable .docx export
Tables as .xlsx
Each page as a JPG
Each page as a PNG
Each page as a WebP
Turn JPG images into a PDF
Turn PNG images into a PDF
Combine JPG, PNG, GIF or WebP into one PDF
Convert .docx to PDF
Convert .xlsx to PDF
Convert .pptx to PDF
Turn an HTML file into a PDF
Capture a webpage
34 PDF tools in total. Pick a category above or search for one.
How TXT to PDF lays out your text
A text file carries no fonts, margins or page size, so the tool supplies them: US Letter pages with one-inch margins, set in 12-point Helvetica with a little extra space between lines. That leaves a text area of 6.5 by 9 inches, which holds 38 lines per page.
Your line breaks and blank lines stay exactly where they are. A line longer than the page wraps between words, and a single string too long for one line, such as a web address, is split across lines.
What happens when you click Convert to PDF
Here is how to convert TXT to PDF: this conversion runs in your browser rather than on our server. The page reads the file as UTF-8 text, measures each line against the page width, draws the lines onto as many pages as the text needs and hands you the finished PDF.
Line endings from Windows are read the same way as those from Mac and Linux, so a file saved on either keeps the same breaks. A file that holds nothing but spaces and empty lines is refused as empty.
The result shows how many pages the PDF has, with a preview, buttons to download, share or remove it, and an Open in Editor button that takes the PDF to Edit PDF.
When to turn a text file into a PDF
-
Notes to share
The PDF opens the same way on any phone or computer, instead of in whatever font a text editor picks.
-
Logs to attach
Error logs and chat exports become pages you can attach to a ticket or an email.
-
Printing long files
With margins and wrapping set, no line runs off the edge of the paper.
-
A copy that stays put
Unlike the original file, a PDF isn't changed by accident when someone opens it to read.
-
Transcripts and subtitles
Interview transcripts and subtitle text saved as TXT become pages someone can read, mark up and print.
-
Files for a print shop
A print shop prints a PDF as it is, with the margins and line breaks you checked, instead of reformatting plain text.
Prepare the text file
-
Save it as UTF-8
In Notepad, pick UTF-8 under Encoding in the Save as dialog; TextEdit offers the same choice when you save plain text. Accented letters then come through.
-
Separate paragraphs
Wrapped lines run straight on, so a blank line is the only way to show on the page where one paragraph ends.
-
Name the file first
The PDF takes the file's name, with spaces and special characters turned into underscores and our site name added. Rename the file first if you want a different name.
Need bold, colours or other fonts?
Plain text can't carry formatting. Save the file as rich text and convert it with RTF to PDF instead.
TXT to PDF questions
Still stuck? Contact us
The PDF is set in a standard font that covers English and Western European letters. Text in other scripts, such as Cyrillic, Greek or Chinese, and emoji can't be written with it, and neither can accented letters from a file saved in an older encoding. The error message names the first character that couldn't be written.
Not on this page: every page is US Letter. Letter is a little wider and shorter than A4, so when you print on A4 and let the print dialog scale the page to fit, the text shrinks slightly and gains a wider margin at the top and bottom.
Helvetica is a proportional font, so an i is narrower than an m, and text lined up with spaces shifts. For a code listing or a table built with spaces, paste the text into a Word document set in a fixed-width font such as Courier New and use Word to PDF.
Yes. Each line is written into the PDF as text, not as a picture, so it can be searched, selected and copied like the original file.
No, the pages carry only your text. Add numbers afterwards with Number Pages.
One at a time: the dropzone takes a single TXT file. To end up with one PDF, convert each file and join the results with Merge PDF.
The font has no character for a tab, or for other control characters such as a form feed, so a line that contains one stops the conversion and the error names it. Replace tabs with spaces in your text editor, for example with find and replace, then convert again.
