Text to PDF
Convert plain text to a PDF document. Choose font size, page size, and margins, then download the PDF. All processing happens in your browser.
About Text to PDF
This text to PDF converter creates a downloadable PDF document from plain text. Paste or type your content, choose formatting options, and generate the PDF in one click.
Formatting Options
Select from a range of font sizes (8pt to 24pt), three page sizes (A4, Letter, Legal), and four margin settings. The tool shows a word and character count as you type, and summarizes your settings before generating.
Automatic Page Breaks
The text is wrapped to fit within the page margins, and page breaks are inserted automatically when the content exceeds a single page. Blank lines in your text are preserved as paragraph spacing.
Related Tools
To go the other direction, the PDF to Text tool extracts text from existing PDFs. If your text is formatted in Markdown, try the Markdown to PDF converter for styled output with headings and lists.
All processing happens client-side. Your text stays in your browser and is never uploaded.
Frequently Asked Questions
How does the text to PDF conversion work?
The tool uses the jsPDF library to create a PDF document from your text. It handles line wrapping, page breaks, and margin settings automatically. The entire process runs in your browser.
Can I change the font?
The tool uses the standard Helvetica font for maximum compatibility. You can change the font size from 8pt to 24pt and adjust margins and page size.
What page sizes are available?
You can choose from A4 (210 x 297mm), US Letter (8.5 x 11in), or Legal (8.5 x 14in). All three are commonly used for printed documents.
Does it handle long text with multiple pages?
Yes. The tool automatically adds page breaks when the text exceeds a single page. You can paste text of any length and it will be split across as many pages as needed.
Is my text sent to a server?
No. The PDF is generated entirely in your browser using JavaScript. Your text never leaves your device.