Text to PDF: Turn TXT Files and Plain Text into PDFs

Convert plain text or a .txt file into a tidy, easy-to-read PDF. Pick the paper size, typeface, text size and margins, keep all your line breaks, and number the pages.

  • TXT, LOG, MD and more
  • Fonts, sizes and margins
  • Numbered pages
Drop a .txt file here or click to choose Or type or paste your text in the box below · TXT, LOG, CSV, MD and other plain text files
Lines: 0 · Characters: 0

How to use the Text to PDF tool

  1. Add the textDrop a .txt file into the box, or type or paste text into the input area.
  2. Set up the pageChoose paper size, orientation, font, text size and margins, plus a title if you want one.
  3. ConvertPress “Convert to PDF” and the file downloads at once.
  4. Or print itHit “Print” to send it to a printer, or pick “Save as PDF” in the print dialog.

Conversion features

  • Lines stay putEach line, empty line and indent shows up in the PDF exactly where you had it.
  • Wrapping your wayLong lines wrap to fit the page, or stay on one line for code and logs.
  • Every scriptUnicode in any language: accented letters, Hindi, Bengali, Arabic, even emoji.
  • Ready to printA4, US Letter, Legal or A5, upright or sideways, with narrow, normal or wide margins.
  • Encoding handledFiles saved as UTF-8, UTF-16 or older Windows-1252 are all read correctly.

Why bother turning text into a PDF?

A .txt file is as basic as a document gets, yet it looks different everywhere: one app swaps the font, another won’t wrap long lines, and some phones refuse to open it. A PDF holds the same layout on every screen and is what most upload portals and printers want.

  • Handing in notes, transcripts or code listings to a system that only accepts PDF
  • Printing logs, config files or song sheets with page numbers
  • Sharing meeting minutes or a draft that should look identical for everybody
  • Archiving chat exports and plain-text reports

Recommended settings

Kind of textTry these settings
Notes, letters and essaysSerif or sans-serif, 11–12 pt, normal margins, wrapping on
Code, logs and CSVMonospace, 9–10 pt, landscape for wide lines
Large print for easy readingSans-serif, 14–16 pt, wide margins

What people use it for

  • Notes and drafts typed in Notepad or on a phone, made into a document you can print or email.
  • Source code and logs. A monospace font keeps columns and indents aligned just like in your editor.
  • Letters and applications written as plain text, when you want a neat page without firing up a word processor.
  • Poems, stories and scripts, where each line break is deliberate and must stay put.
  • Transcripts and chat exports that should be stored or shared as an unchangeable record.

PDF versus the original .txt

Every app shows a text file with its own font, size and line width, so it never looks quite the same twice. A PDF locks the page down: identical font, line breaks and page numbers for every reader, on screen or on paper. It also can’t be edited by accident, which counts for anything you submit or keep on file.

Need headings, bold text or tables? Write in our Word Editor or Markdown Editor instead; both export to PDF as well.

Related tools

For formatted output with headings, lists and bold, write in the Markdown Editor and export a PDF from there. To join your PDF with other documents, use Merge PDF.

Frequently asked questions

How can I convert a TXT file to PDF?
Drop the .txt file on this page, pick a page size and font, and press “Convert to PDF”.
Are my line breaks and spaces preserved?
Yes. All line breaks, blank lines, spaces and tabs are kept. Switch off “Wrap long lines” if long lines should stay on one line.
Can it handle Hindi and other languages?
Yes, it supports Unicode text in any language. If a script doesn’t render properly in the downloaded file, choose “Print” and then “Save as PDF”, which relies on your device’s fonts.
Can the pages be numbered?
Yes. Leave “Page numbers” ticked and each page gets a number at the bottom, like “2 / 5”.
How large can the file be?
You can open text files of up to 10 MB. Very long texts might take a few seconds.