How to turn text into a PDF, step by step

Quick answer: Paste your text (or drop in a .txt file), choose a page size and font, set margins and spacing, optionally add a title and page numbers, then click Create PDF and download the result. The whole job happens in your browser tab.
  1. Add the text. Type or paste into the text box, or drag a plain .txt file onto the drop zone — its contents load into the box so you can still edit them before converting.
  2. Add a title if you want one. Anything in the Title box is drawn in bold, a little larger, at the top of the first page.
  3. Choose the page setup. A4 or US Letter; Helvetica, Times or Courier; font size, line spacing, margins and left or centred alignment.
  4. Decide on page numbers. Tick the box to stamp “Page 1 of 3” style footers on every page.
  5. Create and download. The summary shows pages, words and file size. Download saves the PDF under the .txt file’s name if you uploaded one, or “document.pdf” otherwise.

What “text to PDF” really means

There are two ways to put words into a PDF. The cheap way is to photograph them: render the text once and store a picture. The result looks fine but the words are dead — unsearchable, unselectable, unreadable to screen readers. This tool does it the proper way: every line is drawn into the PDF as actual text, using a real font, at measured positions. Open the result and you can highlight sentences, search for a phrase with Ctrl+F, and copy passages back out. It behaves like a document because it is one.

That choice also keeps files small. A page of drawn text is a few hundred bytes of instructions; a page photographed at print resolution is hundreds of kilobytes of pixels. A 50-page report made here is typically smaller than a single scanned page.

How the layout works: measured wrapping, honest pagination

The converter does not guess where lines end. pdf-lib reports the exact width of any string in the chosen font and size, so the tool builds each line word by word, adding the next word only while the measured line still fits inside the margins. When it would overflow, the line breaks before that word — a word is never split across lines. The one exception is a single word longer than the whole line width (a very long URL, say): it gets a line of its own and may stick out past the margin rather than being cut in half.

Pagination works the same measured way. The tool tracks the vertical cursor as lines are placed; when the next line would cross the bottom margin, a new page starts. Because page numbers must say “of N”, the layout is fully computed before anything is drawn — the page count in the summary is exact, not an estimate.

The settings, explained

Every setting changes the same underlying arithmetic: how much text fits on a page. The defaults (A4, Helvetica 12 pt, normal margins) suit most documents.

SettingOptionsWhat it changes
Page sizeA4 (595 × 842 pt) · US Letter (612 × 792 pt)A4 is slightly taller and narrower; Letter is the North American standard.
FontHelvetica · Times · CourierThe three classic standard PDF fonts. Courier is monospaced, so fewer words fit per line.
Font size10–18 ptBigger type means fewer lines per page and more pages overall.
Line spacing1.2 – 1.8 ×Breathing room between lines; 1.4 is a comfortable reading default.
Margins40 · 56 · 72 pt72 pt is exactly one inch — the traditional manuscript margin.
AlignmentLeft · CentredLeft for documents; centred suits certificates, poems and title pages.

A worked example: 1,000 words at the defaults

Take 1,000 words of ordinary prose at the default settings: A4, Helvetica 12 pt, normal 56 pt margins, 1.4 line spacing. The text column is 595 − 2 × 56 ≈ 483 points wide. An average English word at 12 pt Helvetica measures roughly 33 points including its trailing space, so about 14–15 words fit on a line — call it 68 lines for the document. Vertically, the page offers about 714 usable points and each line takes 16.8, so about 42 lines fit per page. The document therefore lands on 2 pages — which is exactly what the summary reports when you run it, because the tool measures your actual words rather than averages.

Switch to Courier and the same text grows: Courier’s fixed character width (7.2 pt per character at 12 pt) fits roughly 67 characters per line, so the document needs more lines and a third page. Nothing is wrong — monospace fonts simply spend width differently.

Why only three fonts?

Helvetica, Times and Courier belong to the original set of standard PDF fonts defined with the format itself. Every PDF reader — Acrobat, browsers, phones, e-readers — can render them without the font being embedded in the file, which keeps your PDF tiny and guarantees it looks the same everywhere. The trade is choice: this tool cannot use the fonts installed on your computer, and it cannot offer bold or italic runs inside your text, because plain text carries no formatting to convert. The title is the one exception — it is drawn in the matching bold font.

If your document needs rich formatting — headings, bold, tables, images — write it in a word processor and use our Word to PDF Converter instead. If it needs to stay plain and portable, you are in the right place.

Characters, accents and emoji: what survives

The standard fonts cover the Latin alphabet and the punctuation and symbols of the Windows ANSI character set: accented letters (é, ü, ñ, ç), curly quotes, en and em dashes, the euro sign and similar everyday characters all convert correctly — common smart punctuation is normalised to safe equivalents where needed. What cannot be drawn is anything outside that set: emoji, most mathematical symbols, and scripts such as Chinese, Japanese, Korean, Arabic, Hebrew, Greek and Cyrillic. Those characters are skipped, and the summary honestly reports how many were dropped, so a document that lost characters never does so silently.

Your text never leaves your device

Most online converters upload your document to a server, process it there, and offer the result for download — a copy of your words sat on someone else’s machine under a privacy policy you did not read. This converter is a small program running in your browser tab instead. Your text is measured, wrapped and written into a PDF in memory, and the file exists only as the download you choose to save. Close the tab and nothing remains anywhere — which makes the tool safe for drafts, letters and records that should never be uploaded anywhere.

Sources & References