ToolsEdit PDFArticlesPricingContact
TryPDFKit
PDF tool

Convert TXT to PDF

Paste text or add a .txt file and get a clean PDF with real, selectable text. Pages break automatically and nothing is uploaded from your device.

  • 3 free uses, 10 with a free account
  • Text stays on your device
  • Selectable, searchable text
  • No watermark
Text
How was TXT to PDF?
Be the first to rate this tool.
1How it works

TXT to PDF in three steps

  1. 01

    Add or paste your text

    Drop a .txt, .log, .csv or .md file, or type or paste text straight into the box.

  2. 02

    Choose the look

    Pick the font, text size, page size, page direction and margins.

  3. 03

    Download the PDF

    The text is laid out over as many pages as it needs. Save it with one click.

2The details

What you get, and what to know

What you get

  • Real, selectable textThe PDF holds actual text, so you can copy it, search it and read it aloud.
  • Three font familiesChoose Helvetica, Times or Courier. Courier keeps columns of text lined up.
  • Size and marginsSet text from 5 to 72 points and margins in millimeters.
  • Automatic page breaksLong lines wrap and long texts flow onto new pages. Indentation of each line is kept.
  • Paste or uploadType or paste text directly if you do not have a file.

Good to know

  • Latin alphabets onlyBuilt-in PDF fonts cover English and Western European letters. Other scripts, such as Arabic, Hindi or Chinese, show as question marks, and you get a note telling you so.
  • No stylingPlain text has no bold, headings or images. For headings and lists, write Markdown and use Markdown to PDF.
  • EmojiEmoji and special symbols outside the standard fonts cannot be drawn.
3Use cases

When people use TXT to PDF

Save notes as a PDF

Turn a quick note or draft into a file that looks the same everywhere.

Archive a log

Convert a long .log file into a PDF to attach to a ticket.

Print a text file

Get tidy margins and page breaks instead of a browser print.

Send an email as a document

Paste a long message and share it as a read-only file.

Which font should I choose?

Helvetica is a clean sans-serif that reads well on screens. Times looks like a printed book or letter. Courier gives every character the same width, which keeps columns, tables and code lined up.

If your text contains a table drawn with spaces, pick Courier.

Line breaks in your text are kept exactly as typed, and very long lines wrap onto the next line instead of running off the page, so nothing is cut.

Make the page fit your text

Wide text such as logs may be cut across lines on a portrait page. For that:

  • Turn on Landscape pages to get more room per line.
  • Lower the text size to 8 or 9 points for dense text.
  • Join several documents later with Merge PDF.
  • Want to go the other way? PDF to TXT pulls the text back out.
4FAQ

Questions, answered

How do I convert a TXT file to PDF?+

Add the file or paste your text, pick a font and page size, and download the PDF.

Will the text in the PDF be selectable?+

Yes. It is real text, not a picture, so you can copy and search it.

Where does my file go when I use TXT to PDF?+

Nowhere. Typesetting text as a PDF is done by your browser, and no copy of your file is sent to us or anyone else.

Why do some characters show as question marks?+

The built-in fonts only cover Latin letters. Other writing systems cannot be written and appear as question marks.

Can I use TXT to PDF on a Mac?+

Yes. Safari, Chrome, Edge and Firefox on macOS can all do typesetting text as a PDF. Nothing needs installing.

How many pages can it make?+

As many as your text needs. Very long texts depend on your device's memory.

+Keep going

Related tools