Text to PDF Converter

Paste text or open a .txt file and save it as a clean text to PDF document in seconds.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your files never leave your deviceEverything is processed right here in your browser. Nothing is uploaded to our server, nothing is stored, and your files are gone when you close the tab.
  • No upload
  • Not stored
  • No sign-up

This free converter turns plain text into a neat, printable document. Paste your text or open a .txt file, choose the page size, margins and font size, and download. The PDF has selectable text, so people can search it and copy from it. Urdu and other non-English text work through the print option.

How do I convert text to PDF?

  1. Paste your text, or click to open a .txt file.
  2. Choose the page size: A4, Letter or Legal.
  3. Set the margins and font size.
  4. Click Download PDF.
How to use the Text to PDF on OneHubTools: 4 steps with a real screenshot of the tool
How to use the Text to PDF, step by step.

The conversion runs in your browser. Your text is not uploaded.

Why convert TXT to PDF?

A .txt file looks different on every device and app. A PDF keeps the same layout everywhere and prints cleanly. Common reasons to convert txt to PDF:

  • Submitting notes or answers to a portal that only accepts PDF.
  • Printing a long list, script or log file with proper margins.
  • Sharing meeting notes that should not be edited by accident.
  • Archiving text files in a standard, long-lasting format.
Result from the Text to PDF on OneHubTools
What the Text to PDF gives you.

Choosing page size, margins and font size

SettingCommon choiceWhy
Page sizeA4 (most countries), Letter (US)Matches local printers
Margins20 mmRoom for binding and notes
Font size11–12 ptComfortable to read when printed
Font size for code or logs9–10 ptFits long lines on the page

Legal size is taller and is used for some contracts in the US and Pakistan. If lines wrap awkwardly, a slightly smaller font size usually fixes it.

Selectable text

People who receive your file can highlight a sentence and copy it into an email, which is not possible with a scanned image. The PDF is created with real text, not a picture of text. That keeps the file small, lets readers search for words and copy them, and lets screen readers read it aloud.

Urdu text to PDF

For Urdu text to PDF, Arabic or other right-to-left scripts, use the print option. Your browser then lays out the text with proper joining letters, and you choose "Save as PDF" in the print window. Type the Urdu first with the Urdu typing keyboard if you need to.

What happens to long lines?

Long lines wrap automatically at the right margin, so no text is cut off. Very long words or web links without spaces are broken onto the next line. If you are printing code or a log file where wrapping makes it hard to read, choose a smaller font size or wider margins until each line fits.

Tips

  • Add blank lines between sections so the PDF is easy to scan.
  • Use a monospaced layout for code and tables made with spaces.
  • Check the page count in the preview before you send it.

Plain text vs a word processor

Text files have no bold, italics or headings. If your document needs those, write it in Word or Google Docs and use a Word to PDF converter instead. For lists, notes, logs, poems and simple letters, plain text is often all you need, and the PDF stays small and fast to open.

Related PDF tools

To add images, convert them with JPG to PDF and then join both files with merge PDF. For formatted documents, Word to PDF keeps headings and tables, and Markdown to PDF turns simple formatting into a styled document. To add page numbers afterwards, use add page numbers to PDF.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with sample PDF files and opened each result in a normal PDF reader to check it.

Sources

According to Wikipedia, PDF was created by Adobe more than 30 years ago and is now an open standard published as ISO 32000. Many email services limit attachments to 20–25 MB, which is why smaller PDFs are easier to share.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

How do I convert a .txt file to PDF?

Open the .txt file, choose page size and font size, and click Download PDF.

Is the text in the PDF selectable?

Yes. The PDF contains real selectable text that can be searched and copied.

Can I convert Urdu text to PDF?

Yes. Use the print option and choose Save as PDF so the Urdu letters join correctly.

Which page sizes are available?

A4, Letter and Legal.

Can I add images?

Not here. Use JPG to PDF for images and then merge the files.

Is my text uploaded?

No. The PDF is made in your browser and your text stays on your device.

Related tools

All pdf tools →