Sign up free

Text to PDF Converter for TXT Files

Paste text or upload TXT files and get a neatly set PDF, line for line, with Chinese line breaking done properly.

or drop files here

Accepts TXT

Encrypted upload. Files are deleted automatically after 1 hour.

About TXT to PDF

TXT to PDF turns notes, logs, meeting minutes, code or a plain-text agreement into a document you can print or submit. Paste the text straight into the page, or switch to Upload a file and pick .txt or .log files. The encoding is detected, so text saved as UTF-8, as GBK by older Windows software, or as Big5, Shift-JIS or Windows-1251 comes out readable, and Text encoding under More options lets you choose it yourself.

Each line of your text stays a line, indents and runs of spaces are kept, and blank lines become small gaps. Chinese breaks between characters but never puts a comma or a full stop at the start of a line, and English words are never split. Choose A4 or Letter, portrait or landscape, a font size, and Monospaced font for code; Chinese, Japanese and Korean in a monospaced line are set in a font that has them, so nothing goes blank. Line numbers puts a number before every line, handy for code and logs, and File name at the top prints the file's name above its text. Upload several files and they become one PDF with a bookmark for each. A PDF for each file is a VIP choice. Pages are numbered at the bottom.

How to use TXT to PDF

  1. 1
    Paste or upload

    Paste the text into the box, or open Upload a file and choose one or more .txt or .log files.

  2. 2
    Set up the page

    Choose A4 or Letter, portrait or landscape, and a font size. The default is 11 pt.

  3. 3
    Add what you need

    Tick Monospaced font for code and tables made with spaces, Line numbers for code and logs, or File name at the top.

  4. 4
    Click TXT to PDF

    The text is typeset on our server, then the PDF is ready to download.

Why use Cubfile for this

  • Proper Chinese line breaks

    Lines never start with a Chinese comma, full stop or closing quote, and English words stay whole.

  • Any encoding

    UTF-8, GBK, Big5, Shift-JIS, Windows-1251 and more are detected or chosen, so the text doesn't come out garbled.

  • Line numbers for code and logs

    Every line is numbered and lined up in a monospaced font, with Chinese, Japanese and Korean shown too.

  • Several files, one PDF

    Each file gets a bookmark, so a set of logs or notes becomes one tidy document.

FAQ

TXT to PDF: questions and answers

Can TXT to PDF handle Chinese text?
Yes. Chinese is set in a font that has every character and breaks between characters, never before punctuation that must not start a line. GBK and Big5 files are detected and read correctly, and with Monospaced font on, Chinese, Japanese and Korean still show within the line.
Why does my code look misaligned in the PDF?
Proportional fonts give letters different widths. Tick Monospaced font (for code and tables) and every character takes the same width, so columns line up, and Line numbers switches to it by itself. If the text is really a table, such as a CSV export, CSV to PDF prints it with borders and the header on every page.
Can I convert TXT to PDF without uploading a file?
Yes. Paste the text into the Paste text box and click TXT to PDF. The Upload a file tab is there for text that's already saved. Notes written in Markdown can go through Markdown to PDF instead, which formats the headings and lists.
Is this text to PDF converter free, and how many files can I add?
Yes. You can run 2 tasks in total without signing up and 2 a day with a free account, with files up to 50 MB and 20 files per task. VIP removes the limit, accepts files up to 1 GB and 50 per task, and can make a PDF for each file.
What happens to the text I paste?
It's sent over HTTPS, typeset in an isolated process and deleted with the PDF after one hour. We never read it or use it to train AI.
Share TXT to PDF with a friendIt runs in any browser, and they can try it without signing up.

Related tools

JPGPDF JPG to PDFCombine photos and scans into one PDF, in the order you choose.
PDFPNG PDF to PNGRender PDF pages as sharp PNG images at the resolution you need.
PDFDOC PDF to WordTurn PDFs into editable Word files, scans included.
DOCPDF Word to PDFConvert DOCX and DOC to PDF with fonts, tables and page numbers intact.
XLSPDF Excel to PDFPrint spreadsheets to PDF with charts, number formats and column widths.
PDFXLS PDF to ExcelPull tables out of PDFs into Excel, merged cells kept.
PDFJPG PDF to JPGSave each page as a JPG, or pull out the images inside.
PDFPPT PDF to PowerPointTurn every PDF page into an editable slide.