How to use TXT to PDF
- 1Choose a .txt, .md, .log or .text file.
- 2Check the detected encoding; pick another one if characters look wrong.
- 3Set the font, font size, page size and margins, and turn line numbers on or off.
- 4Click “Save as PDF” and save with the “Save as PDF” printer.
Key features
Encoding detection
UTF-8 and UTF-16 (with or without BOM) are recognised automatically, with a best guess for legacy encodings such as Windows-1252, EUC-KR or Shift_JIS.
Manual encoding choice
If a file still looks garbled, switch to Western, Central European, Cyrillic, Korean, Japanese or Chinese encodings instantly.
Readable layout
Monospace keeps code and columns aligned; proportional fonts suit prose. Tabs, spaces and blank lines are preserved.
Wrapping and line numbers
Wrap long lines to the page width, and add line numbers for code reviews, logs or legal text.
Any language
Your system fonts are used, so Chinese, Japanese, Korean, Cyrillic, Greek and other scripts print correctly.
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.