Skip to content
AlroundTools

Text to PDF

Turn plain text into a clean PDF with page size, margins and font size.

Runs in your browser – your files are not uploaded

How to use Text to PDF

  1. 1

    Type or paste your text, or open a text file.

  2. 2

    Choose page size, font, font size, margins and line spacing.

  3. 3

    Click “Create PDF” – or, for non-Latin text, “Print / save as PDF” and choose “Save as PDF”.

About Text to PDF

Paste text or open a .txt file and get a tidy PDF. Choose A4 or Letter, a sans-serif, serif or monospace font, the font size, margins and line spacing. Long lines are wrapped automatically, text flows onto as many pages as needed, and you can force a new page with a [pagebreak] line or a form feed character.

The PDF is created with the standard PDF fonts, which only contain Latin-1 characters (Western European languages). If your text contains other scripts such as Arabic, Hindi, Chinese, Cyrillic or emoji, the tool tells you which characters are affected and offers the browser print dialog instead: your browser lays out the text with your system fonts, and “Save as PDF” produces a PDF that shows every character correctly.

Frequently asked questions

Why are some characters not supported?

The PDF is built with the 14 standard PDF fonts, which use the WinAnsi (Latin-1) character set. Embedding full Unicode fonts would make the tool much larger, so for other scripts the browser’s print-to-PDF function is used instead.

How do I insert a page break?

Put [pagebreak] on a line of its own, or include a form feed character (common in exported text files). The following text starts on a new page.

Can I convert Word or Markdown files?

This tool works with plain text. Markdown is shown as plain text including its symbols. For DOCX, use the file converter.

Is my text sent to a server?

No. The PDF is generated in your browser and the text never leaves your device.