Convert plain text or .txt files into a beautifully formatted PDF document.
Drop a .txt file here
or click to select — or just type below
Page Settings
Estimate
Drop your text or upload a file, tweak the page settings, and download a perfectly formatted PDF. This TXT to PDF converter gives you complete control over how your text appears on the page—font size, color, line spacing, margins, and alignment are all adjustable in real time.

Drop a .txt file onto the dashed upload zone, click to browse your device, or click the Paste button to import clipboard content into the editor.

Type or modify text directly in the editor. The character and line counter updates live so you can track content length at a glance.

Choose page size from A4, Letter, or A5 chips. Adjust font size, pick a text color, set line spacing, drag margins, and select left, center, or right alignment.

Review the Estimate panel showing total characters and predicted page count. Adjust settings if needed to fit your desired layout.

Click the Preview button to switch from editor view to a live PDF preview in the iframe. Check your formatting and layout before downloading and click the "Edit Text" button to return to the editor.

Click the Download PDF button. The tool processes everything in your browser and saves the formatted PDF file instantly.
Use the Paste button instead of Ctrl+V—it reads clipboard content directly and appends to existing text without replacing it
Check the estimate panel before downloading to avoid unexpected page counts with very long documents
Adjust line spacing above 1.5 for easier readability in the final PDF, especially with smaller font sizes
Toggle page numbers off for single-page documents to keep the output clean
Preview alignment changes mentally—centered alignment works best for titles, while left alignment suits body text
Dashed upload zone accepts .txt files by dragging or browsing, with border color changing on hover to confirm the area is active.
Number input controls font size from 6 to 72 points, and a color picker applies any hex color to the output text.
Slider sets line height from 1.0 to 3.0, with the current value displayed live next to the label.
Download PDF button runs client-side conversion via pdf-lib, embedding all selected settings and saving the file directly.
Full-width textarea supports direct typing or pasting, while the character and line counter updates instantly as content changes.
Three option chips switch between A4, Letter, and A5 formats; a range slider adjusts margins from 20pt to 80pt.
Preview button hides the editor and displays a real-time PDF preview in an iframe. Click again to return to editing, with the button relabeling to "Edit Text" and switching to primary styling.
Three toggle buttons set left, center, or right alignment—active chip highlighted for clear visual feedback.
Line height multiplies font size by your spacing value, and the tool divides available page height to find lines per page. Each paragraph wraps word by word—if a word would overflow the printable width, it moves to the next line. Empty lines in your input stay as blank lines in the PDF. This wrapping logic ensures your plain text to PDF output looks exactly as intended, with no cut-off words or misaligned text.The converter calculates every page element mathematically based on your settings.
Yes. Upload any .txt file by dragging it onto the dotted upload area or clicking to browse your device. The file content loads into the editor automatically.
No. The editor accepts plain text only. However, you control font size, color, spacing, margins, and alignment for the PDF output.
Three sizes are available—A4, Letter, and A5. Select your preferred size using the chip buttons in the Page Settings panel.
No. All processing happens locally in your browser. Your text never leaves your device, and PDF generation runs entirely client-side.
Yes. The Estimate section shows the calculated page count based on your current text and settings. It updates whenever you modify the content or adjust any control.
Toolota is your all-in-one online tools platform. Fast, simple, and free utilities designed to make everyday digital tasks easier and smarter.