LeafDeck

Privacy-first document tools

TXT to PDF online

Convert TXT to PDF. Use LeafDeck's privacy-first TXT to PDF tool online without creating an account.

Turn a plain-text file into paginated PDF pages

TXT to PDF takes a .txt file, whether notes, logs, exported records, or a draft, and lays it out on fixed pages using a LibreOffice-based converter on LeafDeck's server. Plain text has no fonts, margins, or page breaks of its own, so the converter supplies them, wrapping long lines to the page width and starting new pages as the text runs on.

  • Convert a single .txt file into a PDF named after it
  • Get readable margins and page breaks for printing or filing
  • Delete the server copies right after downloading

How to use this tool

  1. Save the file as UTF-8

    Most editors offer UTF-8 when saving. Files saved as UTF-16 contain null bytes and fail the server's plain-text check.

  2. Upload and convert

    Choose the .txt file, up to 20 MB, and press Convert Now.

  3. Review the wrapping

    Scroll through the PDF to see whether wide lines, tables made of spaces, and special characters came through as expected.

Plain text that benefits from a fixed layout

Log excerpts for a report

Attach part of a server or application log to an incident report in a format that prints cleanly.

Notes from a plain-text app

Share meeting or research notes written in a minimal editor with people who expect a document.

Exports and transcripts

Turn a system export or chat transcript into a document for review or record-keeping.

Encoding, line length, and alignment

Before converting, the server inspects the start of the file and rejects text containing null bytes, which is how UTF-16 and binary files are caught. UTF-8 avoids this and is also the safest choice for accented letters and non-Latin scripts. If characters come out garbled, re-save the file as UTF-8 in your editor and convert again.

Plain text relies on spaces for alignment, and whether columns built from spaces still line up depends on the font used in the PDF. Very long lines wrap instead of running off the page, which can break log entries or text tables apart. Shortening lines, or moving tabular data into a spreadsheet and using Excel to PDF, gives more predictable results.

TXT to PDF questions

Why was my text file rejected?

It was most likely saved in UTF-16 or contains binary data. Re-saving it in UTF-8 usually solves the problem.

Can I choose the font, margins, or page size?

No options are offered. The converter applies its own default layout to plain text.

Will Markdown or code formatting be rendered?

No. Markdown symbols, code, and markup tags appear exactly as typed, because the file is treated as plain text.

Is the text in the PDF selectable?

Yes. It is laid out as real text, so it can be searched and copied in a PDF reader.

Which file extensions are accepted?

Only .txt. A .log or .csv file can be renamed to .txt if you want it converted as plain text.

Automate several PDF tasks with a free Flow