pdf2kit / TXT to PDF

PDF tool

TXT to PDF

Drop a .txt, log, CSV or code file and get a clean, printable PDF in one step - real, selectable text, not a picture of text. Your file never leaves your device.

Drop or paste a text file

TXT, Markdown, CSV, logs or code. It opens in the workspace on your device. Nothing is uploaded.

or press CtrlV to paste text

Step by step

How to turn a text file into a PDF

Great for logs, config files, exports and source code. There is nothing to install and no sign-up.

1

Drop your text file

Drag a .txt, .md, .csv, .log or code file onto the workspace, or click Choose files. You can also paste text with Ctrl+V.

2

Check the pages

Your text is laid out on clean A4 pages with real, selectable text. A page count and preview show before you export.

3

Arrange or add more

Reorder pages, add page numbers, or drop in more files. Text pages work like any other page in the workspace.

4

Download the PDF

Click Download PDF. The text stays selectable and searchable in any reader, and the file is tiny.

Watch it

See how to turn a text or code file into a PDF

Turn a text, log or code file into a clean PDF with real, selectable text, right in your browser. Nothing is uploaded.

More tutorials on our YouTube channel

Why pdf2kit

Turn a log or code file into a PDF without uploading it

Logs, stack traces, config files and source code often hold private details: Keys, hostnames, customer data. They should not sit on someone else's server just to become a PDF. pdf2kit builds the PDF on your own device, with real, selectable text, and nothing is uploaded. It is free, with no account and no watermark.

FAQ

TXT to PDF: Common questions

Which text files can I turn into a PDF?

Plain text (.txt), Markdown (.md), CSV and TSV tables, log files (.log), and source code such as .js, .py and .java. The type is read from the content, so a wrong file extension still works.

Is the text real, or just a picture of text?

Real text. You can select it, copy it, and search it in any PDF reader, and it stays sharp at any zoom. Because it is text and not an image, the file is small.

Are long log lines and CSV tables handled?

Yes. Long lines wrap so nothing is cut off, and a CSV or TSV header row repeats at the top of every page. Wide logs and code stay readable.

Is my file uploaded?

No. The PDF is built in the page on your device. Your log, code or text never leaves your computer.

Which languages does it support?

Latin, Greek, Cyrillic and more come through as real, selectable text. Characters the built-in font cannot draw, such as Chinese, Japanese and emoji, show as boxes, and pdf2kit tells you on import rather than dropping them silently.

More PDF tools

Other things you can do