Online Tool Store Online Tool Store

Text to PDF Converter

Type or paste plain text, or load a .txt file, and download it as a formatted PDF with your choice of font size and page size. Runs entirely in your browser.

🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.

Example shown — replace it with your own text.

Preview

How it works

  1. Type or paste your text, or load it from a .txt file.
  2. Choose a font size and page size — the preview updates automatically.
  3. Click Download PDF to save the formatted file.

How the layout is built

Plain text has no line-wrapping information of its own, so the tool measures each word at your chosen font size and packs words onto a line until the next one would overflow the page's usable width (the page width minus a fixed margin on each side):

usable width = page width − (2 × margin)

Your own line breaks (blank lines between paragraphs, list items) are always kept as-is — only lines that are too long for the page get wrapped further. When a page fills up, a new one is added automatically.

FAQ

Is my text uploaded anywhere?

No. The PDF is built entirely in your browser using the pdf-lib library — your text never leaves your device, whether you type it or load it from a .txt file.

Can I load an existing .txt file instead of typing?

Yes — use "Or load a .txt file" to read a plain text file straight into the text box, then edit it if you like before downloading.

Does it support Word documents or rich formatting like bold and colors?

No — this tool is for plain text only. It handles font size and page size, and wraps long lines automatically, but it doesn't read .docx files or preserve bold/italic/colored text, since plain text has none of that to preserve.

Why does a very long line get split across the page?

Lines are wrapped automatically to fit the page width you chose, the same way a word processor wraps text — your original line breaks (paragraphs, list items) are kept, only overly long lines are broken further.

How many pages can the PDF have?

As many as your text needs — a new page starts automatically whenever the current one runs out of room, so there's no length limit built into the tool.

How we compare

Feature Online Tool Store iLovePDF Smallpdf
No file upload — runs in your browser
Live preview before downloading
Free, no sign-up, no daily limit Daily task limit on free plan Daily task limit on free plan

iLovePDF and Smallpdf both require uploading your text to their servers to generate a PDF. If you'd rather keep it on your own device and see the result before you download it, Text to PDF Converter gets you there in one page.

Explore related tools

Embed this tool

Paste this on your own site — it stays free, and every file still stays in your visitor's browser, not yours or ours.