Skip to content
Toolza

TXT to PDF Converter

Turn a plain text, log or Markdown file into a neat PDF. Choose the font, size, wrapping and line numbers, and keep every character readable.

Your files stay on your device. This tool runs entirely in your browser. Files are never uploaded to our servers.

How to use TXT to PDF

  1. 1Choose a .txt, .md, .log or .text file.
  2. 2Check the detected encoding; pick another one if characters look wrong.
  3. 3Set the font, font size, page size and margins, and turn line numbers on or off.
  4. 4Click “Save as PDF” and save with the “Save as PDF” printer.

Key features

Plain text is universal, but it doesn't print well: browsers and editors often ignore page margins, use tiny fonts or mangle non-English characters. This tool gives you a clean, paginated PDF with the settings you choose.

Encoding detection looks for byte-order marks, checks whether the file is valid UTF-8, and otherwise compares common legacy encodings to find the most plausible one. You can always override the choice.

Everything happens in your browser: the file is decoded on your device and printed with your browser's “Save as PDF” feature, so nothing is uploaded.

Frequently asked questions

The file probably uses a different encoding than the one detected. Choose another option in the “Text encoding” list — the preview updates immediately.

No. .md files are printed as plain text, exactly as written, including the Markdown symbols.

With “Wrap long lines” on, they continue on the next line. With it off, lines stay unbroken, and text past the page edge is cut off in the PDF.

Yes. The PDF is created by your browser's print engine, so the text can be searched, selected and copied.

Up to 20 MB. Very long files take longer to lay out and print, depending on your device.