Turn notes, logs, code and plain-text documents into a tidy PDF that looks the same everywhere. The text in the PDF is real text, so you can search it, select it and copy it.
Do it now in the free PDF editorOpens in your browser. No sign-up, no watermark — your PDF is never uploaded.
Open the PDF editor and choose or drop your .txt file.
Pick the page size, orientation, font, size, line spacing and margins. The preview shows the first page as it will look.
Click Create PDF. The new PDF opens in the editor, where you can add text, highlights, a signature or a watermark.
Click Download to save the PDF.
See how it works
1Choose the .txt file
2Check the preview
3Pick page size, font and margins
4Click Create PDF
Settings that matter for printing
Page size: Letter, Legal or A4, in portrait or landscape. Landscape is handy for wide logs and tables.
Font and size: monospace fonts keep the layout of the file, while sans serif and serif fonts read more like a document.
Line spacing and margins: Single to Double spacing, and narrow, moderate or normal (1 inch) margins.
The editor remembers your settings for the next text file. The page count updates as you change them, so you can fit a document on fewer pages before you create it.
Emoji and characters from scripts the chosen font does not cover are shown as “?”. Noto Sans and Noto Serif cover the most characters.
Frequently asked questions
Will columns and indentation in my text file stay aligned?
Yes, with a monospace font such as Cousine (Courier New) or Roboto Mono, which is the default. Every character has the same width, so tables made with spaces, code and tab-indented lists line up exactly. Tabs are expanded to 4-character stops.
What happens to long lines?
Lines longer than the page are wrapped at a space, like in a word processor. A very long word, such as a web address, is broken where it reaches the margin, so nothing is cut off.
Which text encodings are supported?
UTF-8 (with or without a BOM), UTF-16 and Windows-1252, the usual encoding of older Windows text files. Accented letters, curly quotes and symbols come out correctly. A form feed character in the file starts a new page.
Can I add page numbers?
Yes. Page numbers (“Page 1 of 3”) are on by default, and you can also print the file name at the top of each page.
Is my file uploaded?
No. The conversion runs in your browser and the file never leaves your device.
Ready to try it?Drop your PDF into the editor and download the result in seconds.