TXT to PDF

Turn a plain text file into a clean, paginated PDF with the page size and typeface you choose.

Choose a text file

Browse files

or drag and drop · .txt, .log, .md or .csv up to 25MB

Processed on your device. This file is never uploaded.

  1. 1Drop your text file into the box above — it stays on your device.
  2. 2Pick how line breaks should be treated, then set page size and margins.
  3. 3Convert and download the PDF.

Why convert text to PDF at all

A .txt file has no formatting, no page boundaries and no guaranteed appearance — it renders differently in every editor, at whatever font and width that editor happens to use. A PDF fixes all of that. It paginates, it prints predictably, and it opens the same way on every device without anyone needing a text editor.

That matters most when a text file has to become a document someone else receives: a log attached to a support ticket, notes submitted with an application, a README included in a deliverable, or a transcript that needs to be filed.

The one setting that matters

Plain text does not record whether a line break was the author's intent or just where the line ran out. That single ambiguity is why this tool asks.

Join wrapped lines reflows the text, treating a blank line as the real paragraph break. A file that was hard-wrapped at 80 characters becomes proper flowing paragraphs that fill the page width.

Keep every line break preserves the file exactly as written. Use it for log files, source code, addresses, poetry, or anything where a line is a unit of meaning.

What the layout does for you

Text is set at 11pt with automatic word wrapping and pagination. Tabs become four spaces so indentation survives. Runs of lines starting with a dash, bullet or number are recognised and set as proper lists with hanging indents. Windows, Mac and Unix line endings are all normalised, so a file that came from another platform does not draw stray boxes.

You choose A4 or US Letter, a sans-serif or serif typeface, and one of three margin widths. Narrow margins fit noticeably more onto fewer pages, which is worth having on a long log.

Common uses

  • Attaching a log file to a ticket in a readable, paginated form
  • Turning notes or a draft into something printable
  • Submitting a plain text document where only PDF is accepted
  • Archiving text with fixed pagination for reference
  • Converting a Markdown file into a shareable document

Privacy

The file is read with the browser's own file API and the PDF is built in memory on your machine. Nothing is uploaded, stored or logged.

Frequently asked questions