Choose language
  1. Home
  2. PDF Converter
  3. Text to PDF

Convert text to PDF

Turn TXT files or pasted text into a clean PDF with real, searchable text. Choose the font, size, margins and page numbers. Nothing is uploaded.

Loading the tool…
Rate this tool
No ratings yet. Be the first.

How to use

  1. Step 1

    Add text

    Drop a TXT, Markdown, CSV or log file on the page, or press Type or paste text and write in the editor.

  2. Step 2

    Check the text

    The detected encoding is shown. If letters look wrong, pick another one. You can also edit the text before converting.

  3. Step 3

    Choose the layout

    Pick the font, size, line spacing, page size, margins, and whether to add page numbers.

  4. Step 4

    Convert

    Press Convert to PDF. The PDF is created in your browser and downloaded.

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.

Frequently asked questions

How do I convert a TXT file to PDF?

Drop the TXT file on this page, choose the font and page settings, and press Convert to PDF.

Can I paste text instead of opening a file?

Yes. Press Type or paste text, paste or write your text in the editor, and convert it.

Does it work with Chinese, Japanese or Russian text?

Yes. The fonts cover these scripts and many others, and they are embedded in the PDF, so it looks right everywhere. Arabic, Hebrew and Hindi are not supported yet.

Why are there strange characters in the preview?

The file uses a different encoding than the one detected. Choose another encoding in the list until the letters look right.

Is my text uploaded?

No. The PDF is created in your browser, and your text stays on your device.

More PDF tools