text to pdf
Upload a text file or type below

or drop your file anywhere on this page

Processed in your browser, never uploaded

How to Convert a Text File to PDF

  1. Add your text – Click "Select text file" to open a .txt file, drop it on the page, or type or paste text into the editor.
  2. Check the encoding – The encoding is detected automatically. If letters look wrong, pick another one in "Encoding" – the text is read again.
  3. Choose the layout – Set the "Font", "Font size (pt)", "Line spacing", "Margins (mm)", "Page size", "Orientation" and "Tab width", add an optional "Header on every page" and choose "Page numbers" and "Keep line breaks as in the text".
  4. Create the PDF – Click "Convert to PDF", check the preview and click "Download PDF".

Text to PDF Converter: What You Get

When to Convert Text to PDF

Text to PDF Converter: Good to Know

Text to PDF – Frequently Asked Questions

How do I convert a .txt file to PDF?

Open the file with "Select text file" or paste the text, choose the font and page settings and click "Convert to PDF".

My text shows strange characters. What can I do?

The file uses a different encoding. Choose it in "Encoding" – for example Windows-1252 for Western European or Windows-1256 for Arabic text.

Does it work with Arabic and other languages?

Yes. Arabic, Hebrew, Chinese, Japanese, Korean and Indic text is laid out correctly, saved as page images. Latin, Greek and Cyrillic text stays selectable.

Can I add page numbers and a header?

Yes. Turn on "Page numbers" and type a text in "Header on every page".

Are tabs and indentation kept?

Yes. Tabs become spaces according to the "Tab width"; use the monospace font so that columns stay aligned.

Is my file uploaded?

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

Is it free?

Yes – no sign-up and no watermark.

Explore the full collection of tools in the Convert to PDF Tools.