Skip to main content

How to Convert Text to PDF (TXT, Notes, Hindi)

Updated 3 November 2026 · 4 min read

Plain text has no pages, so before it can become a PDF it has to be laid out: lines wrapped to the page width, then split into pages. Here is how to turn notes, a .txt file or a long message into a neat PDF, and what to expect with Hindi and other scripts.

Free toolText to PDFOpen

How to convert text to PDF, step by step

  1. Open Text to PDF.
  2. Type or paste your text into the box, or press Open a .txt file. Files up to 5 MB can be opened.
  3. Choose the font: Sans (Helvetica), Serif (Times) or Mono (Courier).
  4. Choose the text size: 10, 11, 12, 14 or 16.
  5. Choose the page size, A4, Letter, Legal or A5, and the margins: Narrow (12 mm), Normal (20 mm) or Wide (30 mm).
  6. Change the file name if you like. A .txt file's own name is filled in for you.
  7. Press Convert to PDF. The file downloads, and the tool tells you how many pages it has and its size.

The PDF is made in your browser. The text is not sent anywhere, which makes it safe for private notes and drafts.

How the text is laid out

  • Your own line breaks and empty lines are kept exactly.
  • A line too long for the page is broken between words, the way a word processor does it.
  • A single word wider than the whole line, such as a long link, is cut at the edge and continues on the next line.
  • A tab becomes four spaces.
  • The gap between lines is 1.4 times the text size, and when a page is full the text flows onto the next one.

On an A4 page, this is how many lines fit:

Text sizeNarrow marginsNormal marginsWide margins
1055 lines52 lines47 lines
1246 lines43 lines39 lines
1634 lines32 lines29 lines

Size 12 with normal margins is a good choice for documents. Size 14 or 16 is easier to read on a phone. Mono (Courier) gives every letter the same width, so lists and simple tables lined up with spaces stay lined up.

English text: real, selectable text

For English and other text in Latin letters, the PDF uses the standard fonts built into every PDF reader. The words stay sharp at any zoom and can be selected, copied and searched. These fonts cover the usual letters, digits and punctuation, plus accented letters and signs such as € and the curly quotes “ ”.

Hindi, ₹ and emoji: saved as page pictures

The built-in PDF fonts have no Hindi letters, no other Indian scripts, no ₹ sign and no emoji. When your text contains any of them, the tool shows which characters it found and switches the whole document to a different method: each page is drawn with your device's own fonts and saved as a sharp picture, at about 150 DPI.

  • The PDF looks right and prints well, with Hindi letters joined correctly.
  • The words cannot be selected, copied or searched, because each page is a picture.
  • The file is usually larger than a text PDF of the same length.
  • Even one such character switches the whole document, not just the line it is on.

If your text is in English and the only odd character is ₹, write Rs instead and you get a normal, selectable PDF.

What is not supported

  • No bold, italics, headings, colours or pictures. It is a plain text converter. For a formatted document, write it in Word and use Word to PDF.
  • Pages are always upright (portrait).
  • Only plain .txt files can be opened. For other files, copy the text out and paste it in.
  • Up to 20 lakh characters, which is several hundred pages.

Tips for a neat result

  • Leave one empty line between paragraphs. It is kept in the PDF and makes the text much easier to read.
  • Text copied from WhatsApp or email often has very long lines. That is fine: they are wrapped to the page for you.
  • For a simple letter, put the date, the address and the greeting on their own lines, with an empty line after each block.
  • Open the PDF once before you send it, and check the last page, so nothing at the end was missed.

If a .txt file shows strange characters

The file was probably saved in an old encoding instead of UTF-8. Open it in Notepad or another text editor, choose Save as, pick UTF-8 as the encoding, and open it again. Or copy the text from the editor and paste it into the box.

Need the text back out of a PDF to edit it? PDF to Text pulls it out, and you can paste the edited version here to make a fresh PDF.

Try it now: Text to PDF

Paste your text or open a .txt file and get a neat PDF, with the font, size and margins you choose.

Open Text to PDF