Docelora
ToolsAboutContact
PDF tools

TXT to PDF

Turn a plain text file – or text you paste or type – into a neat, searchable PDF. Choose the page size, font, size, margins and line spacing; long lines are wrapped automatically and you can add page numbers.

Quick answer: paste your text or choose a .txt file, pick A4 and a font, and download the PDF. The text stays real, selectable text. The built-in fonts support Western European characters; for Urdu, Arabic or Chinese text use your browser’s Print → Save as PDF.

TXT to PDF

Paste text or choose .txt · fonts, margins, page numbers

or drag and drop a file here

Optional – or paste text below

Runs on your device: your PDF is processed in this browser tab with open-source PDF libraries served from docelora.com. It is not uploaded to Docelora or anyone else.

How to convert text to PDF

1. Add your textPaste it, type it or choose a .txt file.
2. Choose the layoutPage size, font, size and margins.
3. Create the PDFLong lines wrap automatically.
4. DownloadThe text is searchable and selectable.

Which font?

FontBest for
HelveticaClean, modern documents
TimesLetters, essays and reports
CourierCode, logs and fixed-width tables – columns stay aligned

Other scripts

PDF’s built-in fonts only cover Western European characters. If your text contains Urdu, Arabic, Hindi, Chinese or emoji, the tool tells you; open the text in your browser and use Print → Save as PDF, which uses your device’s fonts.

Related tools

Frequently asked questions

How do I convert a TXT file to PDF?

Choose the file, set the layout and select Create PDF.

Can I paste text instead?

Yes – paste it into the box.

Is the text searchable?

Yes – it is real text, not an image.

Are long lines wrapped?

Yes, automatically at the margin.

Can I keep columns aligned?

Choose Courier, a monospaced font.

Does it support Urdu or Arabic?

Not with the built-in fonts; use Print → Save as PDF.

Can I add page numbers?

Yes – tick Add page numbers.

Which page sizes are available?

A4, US Letter, A5 and US Legal.

Is there a length limit?

About 3 million characters.

Are tabs supported?

Tabs become four spaces.

Can I set a title?

Yes – it is saved in the PDF’s properties.

What about Markdown?

Markdown symbols appear as plain text; a Markdown to PDF tool is planned.

Is my text sent anywhere?

No – the PDF is created in your browser.

Can I change line spacing?

Yes, from 1 to 3.

What encoding should my TXT file be?

UTF-8 works best.

Is there a file size limit?

Up to 300 MB, but very large PDFs depend on your device’s memory. Close other tabs if a big file is slow.

Does it work on a phone?

Yes, in current versions of Chrome, Safari, Edge and Firefox on Android and iPhone.

Is it free?

Yes. There is no sign-up, watermark or daily limit.

Can I use landscape pages?

Yes – choose Landscape.

Can I edit the PDF afterwards?

Yes, with any PDF editor; or change the text and create it again.

Last reviewed: 8 November 2026.