Convert text to PDF
Paste any text or upload a .txt file and get a clean, printable PDF with proper margins, automatic line wrapping and optional page numbers.
How to use the Text to PDF tool
Upload a .txt file or paste your text in the box.
Choose font size and page size.
Click “Create PDF” and download it.
Your files stay on your device
This tool runs entirely in your browser using JavaScript and WebAssembly. There is no upload step and no server processing — open your network panel and check: zero document data is transmitted. It even keeps working offline once the page has loaded.
Frequently asked questions
Does it support accents and special characters?
Yes — Western European characters (á, ñ, ü, ç, €…) are fully supported. Characters outside that set (e.g. Chinese or Arabic) are replaced, since the built-in PDF fonts don’t include them.
Can I convert Markdown or CSV files?
You can upload .md, .csv and .log files — they are converted as plain text, preserving line breaks but not Markdown formatting.
How are long lines handled?
Lines wrap automatically at the page margin, and paragraphs flow across pages — like a word processor would print them.
Is it safe to use this tool with confidential documents?
Yes — and verifiably so. PDFAgent has no upload step: your file is processed by JavaScript running in your own browser and never leaves your device. You can open your browser’s network panel (or even go offline after loading the page) and confirm that no document data is transmitted.