Convert Text to PDF

Type or paste text, or load a .txt file, and save it as a PDF. Choose the page size, orientation, margins, font, font size and line spacing. The PDF is built in your browser and the text is not uploaded.

  • Free
  • No sign-up
  • Runs in your browser

Processing…

Processed in your browser — your files never leave your device.

How to use Text to PDF

  1. Type or paste your text into the box, or click 'Choose file' to load a .txt file.
  2. Set the page size, orientation, margin, font, font size and line spacing. Leave 'Wrap long lines' ticked unless you want long lines cut at the margin.
  3. Click 'Create PDF'.
  4. Check the preview of the first page and download the PDF.

Features

  • Paste text or load a .txt file (UTF-8, with a fallback for older Windows text files)
  • A4 or Letter, portrait or landscape, margins from 5 to 50 mm
  • Helvetica, Times or Courier (monospaced, handy for code and logs), 6 to 36 pt
  • Word wrapping with automatic page breaks, or no wrapping
  • Tabs become four spaces and blank lines are kept
  • Runs in your browser with no sign-up and no daily limit

Supported formats and limits

  • Maximum file size: 10 MB
  • Up to 1 files at once

Examples

InputResult
notes.txt with 120 lines, A4 portrait, 11 pt Helvetica, 20 mm margins, line spacing 1.3A 3-page PDF with 50 lines on each of the first two pages and 20 on the last — 50 lines fit because the usable height is about 728 pt and each line takes 14.3 pt.
The text 'Café niño' in TimesA 1-page PDF with the text as typed, accents included

Limitations

  • The PDF uses the standard fonts, which cover Latin text (English, Spanish, French, German, Portuguese and similar). Characters outside that set, such as Chinese, Arabic, Cyrillic or emoji, are replaced by '?', and the tool tells you how many.
  • The output is plain text only: no bold, italics, images or links. Use Word to PDF for formatted documents.
  • Up to 1,000,000 characters and 500 output pages. If the text would need more pages, split it.
  • With wrapping off, lines longer than the page are cut at the right margin.

Learn more

A plain text file stores characters and line breaks, and nothing else. It has no fonts, sizes or pages, so to turn it into a PDF a program has to decide how to lay it out: which font to use, how many characters fit on a line, and how many lines fit on a page.

This tool measures each line with the chosen font and breaks it at spaces when it is too wide. Pages are filled from top to bottom, and a new page starts when the usable height is used up. The usable height is the page height minus the top and bottom margins, and the line height is the font size times the line spacing.

For readable output, use 10 to 12 pt for ordinary text and margins of 20 mm or more. Choose Courier for source code, logs and anything aligned with spaces. If your file uses a language with accents, such as Spanish, the standard fonts handle it well; scripts such as Cyrillic or Chinese need fonts that this tool does not embed.

Frequently asked questions

Why do some characters show as question marks?

The standard PDF fonts only include Latin characters. Other alphabets and emoji can't be drawn with them, so they are replaced and you see a count after conversion.

Can I keep bold or headings?

No. This tool turns plain text into plain pages. For formatted text, create the document in a word processor and export it as PDF, or convert it with Word to PDF.

Which font should I choose for code?

Courier, because every character has the same width, so columns and indentation line up.

Is my text uploaded?

No. The PDF is created in your browser with pdf-lib, and the text stays on your device.

Last reviewed: September 30, 2026