When to convert text to PDF
Plain text files are everywhere: notes, logs, exported chat histories, lists, code, subtitles, data exports and documents from simple editors. They open on any computer, but they look different everywhere, they have no page layout, and many portals do not accept .txt files. A PDF of the text has fixed pages, prints well, and can be signed, numbered or merged with other documents. To convert text to PDF here, open a file or simply paste the text into the editor.
Fonts for many languages
A PDF must contain the font for every character it shows. The converter uses Noto fonts that cover the Latin alphabet with all accents (for example Polish, Czech, Turkish and Vietnamese), Cyrillic, Greek, Thai, Chinese, Japanese and Korean. Languages can be mixed freely in one document. Only the parts of the fonts that your text needs are embedded, so a page of English text gives a PDF of just a few kilobytes, and the PDF looks right on every device.
Arabic, Hebrew, Hindi and emoji are not supported yet. Such characters are left out, and the result note lists them, so you know what is missing.
Layout options
- Font: Sans, Serif or Mono, from 8 to 24 points (11 by default). Mono gives every character the same width, so columns in logs, code and tables made with spaces stay aligned. It is chosen automatically for CSV and log files.
- Line spacing: single, 1.15, 1.5 or double.
- Page size: A4, Letter, Legal, A3 or A5, in portrait or landscape.
- Margins: narrow, normal or wide.
- Long lines: wrap between words, or at any character for long web addresses and data without spaces.
- Page numbers such as 1 / 12, on by default, and optionally the file name at the top of each page.
Tabs become spaces, and a form-feed character in the file starts a new page. The text is converted as plain text: Markdown headings and lists stay as typed, and CSV files are not drawn as tables.
Text encoding
Older text files do not always use UTF-8, the modern standard. The converter detects the encoding automatically: UTF-8 and UTF-16, common Windows code pages for Western, Central European, Cyrillic, Greek, Turkish and Thai text, KOI8-R, and the usual Chinese, Japanese and Korean encodings such as GBK, Big5, Shift_JIS and EUC-KR. The tool shows which encoding it detected. If the letters still look wrong, choose another encoding from the list.
Private, in your browser
The PDF is built on your own device with real text, so it is searchable and the text can be copied. Nothing is uploaded. For formatted documents with headings and tables, write them in the PDF creator, or convert a Word file with Word to PDF. To get the text out of a PDF again, use PDF to Text.