EN
My tools

TXT to PDF Converter

Turn plain text or .txt files into a clean PDF: font, size, page and margins, line numbers, header with page numbers, Korean and other encodings.

Each file becomes its own PDF. Or leave this empty and paste text below.
My tools →
Advertisement

Plain text files — notes, logs, code, configuration files, exported chat histories — are easy to write but awkward to print, share or attach to a form that only accepts PDF. This converter lays any .txt file or pasted text out on proper pages with the font, size and margins you choose, wraps long lines, can number the lines and adds a header with the file name and page numbers. Korean, Japanese and other encodings are detected automatically, and the file never leaves your browser.

How to use this tool

  1. Choose one or more .txt files, or paste text into the box.
  2. Leave the encoding on "Detect automatically" unless characters look wrong.
  3. Pick the font (Courier keeps columns aligned), size, page size, orientation and margins.
  4. Tick line numbers or the header if you want them, then download the PDF.

Formula

Lines per page = ⌊(page height − 2 × margin − header) ÷ (1.25 × font size)⌋. Tabs are expanded to the next multiple of the tab width, and lines longer than the text width wrap at the last space that fits (or mid-word for very long words).

The header takes 16 pt. Encoding detection checks for a byte-order mark, then tries UTF-8, EUC-KR, Shift_JIS and GB18030 in turn, and falls back to Windows-1252.

Example

A 120-line log at 11 pt on A4 with 20 mm margins and the header: (841.89 − 113.39 − 16) ÷ 13.75 = 51.8, so 51 lines fit per page and the PDF has 3 pages (51 + 51 + 18). In landscape only 33 lines fit per page, but long lines wrap less.

Frequently asked questions

Korean or Japanese text turns into strange symbols — why?

The file is in a legacy encoding. Choose it under "File encoding" (EUC-KR for older Korean files, Shift_JIS for Japanese); automatic detection usually finds it.

Can I copy text from the PDF?

Yes for Western European text, which uses the PDF's built-in fonts. Lines with other scripts are drawn as sharp images of the text, so they cannot be copied or searched.

Why use Courier?

Every character has the same width, so tables, code and ASCII art keep their columns. Helvetica and Times fit more text per line.

Is my text uploaded?

No. The PDF is built in your browser, so private notes and logs stay on your device.

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). TXT to PDF Converter. https://kakao.mobile/tools/txt-to-pdf-converter/

MLA

“TXT to PDF Converter.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/txt-to-pdf-converter/.

Advertisement