Text to PDF

Convert plain text to a PDF file in your browser. Choose font size, page size, margins and line spacing. No uploads — files never leave your device.

pdf text convert
Free Client-Side Private
🔒 This tool runs entirely in your browser — your files are never uploaded to any server.

Text to PDF converts any plain text into a downloadable PDF file — right in your browser. Choose your font size, page size, margins and line spacing, then generate and download in seconds. No uploads, no account, no software needed.

How It Works

This tool uses pdf-lib, an open-source JavaScript library, to build a PDF document entirely in your browser. Your text is word-wrapped to fit the chosen page width, split across pages if needed, and rendered using the standard Helvetica font. The resulting PDF is downloaded directly to your device.

Options

Option Choices Default
Font size 10 – 18 pt 12 pt
Page size A4, Letter, A5, Legal A4
Margin Narrow (0.5 in), Normal (0.75 in), Wide (1 in) Normal
Line spacing Single, 1.5×, Double 1.5×

When to Use Text to PDF

  • Share plain text as a document — convert notes, scripts, or code snippets to a portable PDF.
  • Archive text files — save plain text in a print-ready format that preserves layout.
  • Create simple reports — quickly wrap plain paragraphs into a formatted PDF page.
  • Send uneditable content — PDFs are harder to casually edit than .txt or .docx files.

Limitations

  • Font: Only the standard Helvetica font is used. Custom fonts and rich text (bold, italic, headings) are not supported — for those, use a word processor.
  • Images and tables: Not supported. This tool is for plain text only.
  • Very large texts: Extremely long documents (thousands of lines) may take a few seconds to generate on low-powered devices.

FAQ

Is my text sent to a server?

No. Everything runs in your browser. Your text never leaves your device.

Can I use this with non-English text?

Characters covered by the standard Helvetica font (Western European languages) render correctly. Languages with extended Unicode characters (Arabic, Chinese, Japanese, etc.) may not display correctly due to font limitations.

How do I add a title or headings?

This tool does not support formatting. If you need headers, bold text, or a title page, consider writing your document in a word processor and exporting from there.

What is the maximum file size?

There is no enforced limit. Very long texts generate larger PDF files, but all processing happens in the browser so it depends on your device's memory.

Can I customise the font or colours?

Not currently — the tool uses black text on a white background with Helvetica. Font and colour customisation may be added in a future version.

Report an issue