Text to PDF

Paste notes, a letter or a .txt file and get a neat PDF in seconds, in any language.

pt
Font
Page
Orientation

How to convert text to PDF

  1. Type or paste your text, or open a .txt, .md, .csv or .log file.
  2. Pick a font (Sans, Serif or Monospace), a size (8–24 pt), A4 or US Letter, and portrait or landscape. The preview shows page 1 as it will be.
  3. Click Download. The PDF is named after your file; long lines wrap and new pages are added as needed.

How the page is laid out

Text is set in Helvetica, Times or Courier with a margin of about 20 mm on every side and comfortable line spacing (1.4 times the font size). Each line break in your text starts a new line, so a blank line gives a gap between paragraphs. Words are never split; a line breaks at the last space that fits, and only a word longer than the whole line (such as a long web address) is broken between letters.

Example

At the default 11 pt on A4, each page holds about 48 lines of text, roughly a page of a typed letter. A 3,000-word text file becomes about four to five pages, depending on how many short lines it has.

Good for

  • Turning notes, logs or a letter drafted in a plain editor into a file you can email or print.
  • Making a quick PDF of a CSV or Markdown file to attach to a report.

The three PDF fonts cover English and other Western European letters, numbers and common symbols (₹ is written as Rs.). Text with other letters, such as Hindi, Tamil, Arabic or Chinese, is drawn by your browser instead, right-to-left lines starting at the right margin, and saved as page pictures; the tool tells you when that happens. To add the PDF to others, use Merge PDF.

Frequently asked questions

Can I write in Hindi, Tamil, Arabic or Chinese?

Yes. When your text has letters the standard PDF fonts don't include, your browser draws each page with your device's fonts, so the script is joined and ordered correctly, and the page is saved as a picture. It looks right, but that text can't be selected or searched in the PDF. English and other Latin-script text stays real, selectable text.

Will tables and code stay lined up?

Choose Monospace: every character is the same width, and tabs become spaces up to the next multiple of 4 columns, so columns in logs, code and plain-text tables stay aligned.

Can I see the PDF before downloading?

Yes. The preview shows page 1 of the actual PDF and the page count, and updates as you type or change the options.

How big a file can I convert?

Text files up to 5 MB. Text that is drawn as pictures can make up to 200 pages.

Is my text uploaded?

No. The PDF is created in your browser with the open-source pdf-lib library (MIT licence).

More PDF tools

See all PDF tools →

Can't find the tool you need? Tell us.