Text to PDF Converter

Type or paste text, choose the page, and download a properly paginated PDF.

The Text to PDF Converter runs entirely in your browser. Handover notes and drafts often hold things you would not paste into a web form, so nothing you type is uploaded.

Built and maintained by Udit Agarwal

Add a header to the result

About Text to PDF

There is a gap between having some text and having a document you can send. A note, a set of minutes, a licence, a block of log output: it reads fine in an editor, but the moment it has to be attached to an email or filed somewhere it needs page breaks, margins and a font that behaves. This tool closes that gap. Paste the text, give it a title if you want one, choose A4 or Letter, and it lays the words out across as many pages as they need — wrapping long lines, keeping blank lines as paragraph breaks, and starting a new page wherever you put a form feed. The result is a real PDF built on your device, previewed on the page before you save it.

Features

  • Blank lines become paragraphs; a form feed starts a new page
  • A4, Letter, Legal or A5, in portrait or landscape
  • Margin and text size sliders, with sans, serif or monospaced type
  • Optional document title, drawn as a heading and stored in the file properties
  • Optional footer line and automatic page numbers
  • Drop a .txt or .md file to load it straight into the editor
  • Live preview of the finished PDF before you download it

How to use the Text to PDF

  1. Type or paste your text, or drop a .txt file onto the page
  2. Add a title and author if the document needs them
  3. Set the page size, margins, text size and typeface
  4. Press Create PDF and check the preview
  5. Download the file

Example

Input

Handover notes

The deploy script now runs from CI.

Credentials rotate on the first of the month.

Output

A one-page A4 PDF: "Handover notes" as a heading, two paragraphs beneath it, page number in the footer.

Blank lines are the only formatting you need — everything else is a page setting.

Common errors & troubleshooting

  • Some characters are missing from the finished PDF. — The built-in PDF typefaces cover Latin scripts. Characters outside them — Devanagari, CJK, Cyrillic beyond the basic range — cannot be drawn and are reported as a count after the build.
  • Long lines are broken in odd places. — A word wider than the text column has to be split somewhere. Widen the page, shrink the text size, or reduce the margin to give it more room.
  • Everything came out as one long paragraph. — Single newlines are treated as soft wraps, which is what you want when pasting from an editor. Put an empty line between paragraphs to break them apart.
  • The file is bigger than expected for a page of text. — Even a one-page PDF carries font metrics and the document structure. A text-only PDF is usually a few kilobytes; if yours is much larger, check that you have not pasted in a very long document.

Frequently asked questions

Does the text I paste here leave my browser?
No. The layout and the PDF writing both happen on your device, so the words never travel anywhere. You can watch the network panel stay quiet while the file is built.
Can I control where the page breaks fall?
Yes — insert a form feed character where you want a new page to start. Everything else flows naturally, filling each page before moving to the next.
Which typeface does the PDF actually use?
One of the standard PDF families: Helvetica, Times or Courier depending on the setting you pick. They are built into every reader, which is why the file stays small and opens identically everywhere.
Is there a limit on how much text I can convert?
Nothing hard-coded, but very long documents take a moment to lay out and the preview will be large. A dropped file over 8 MB is refused so the page stays responsive.
Can I add my own logo or letterhead?
Not here — this tool is deliberately about text. Build the PDF, then stamp a header, a watermark or page numbers onto it with the tools that do that job.

Related tools

  • Markdown to PDF — Render Markdown — headings, lists, tables and code — as a PDF.
  • HTML to PDF — Convert HTML markup into a clean, paginated PDF document.
  • PDF to Text — Extract selectable text from a PDF as plain text or Markdown.
  • PDF Header and Footer — Stamp a running header and footer onto every page.
  • Add Page Numbers — Stamp page numbers onto a PDF (position, format, start).
  • Merge PDFs — Combine multiple PDFs into one, with reordering.
  • CSV to PDF — Lay CSV rows out as a bordered, paginated PDF table.

Guides

More PDF tools

  • Markdown to PDF — Render Markdown — headings, lists, tables and code — as a PDF.
  • HTML to PDF — Convert HTML markup into a clean, paginated PDF document.
  • CSV to PDF — Lay CSV rows out as a bordered, paginated PDF table.
  • Excel to PDF — Turn spreadsheet sheets into printable PDF tables.
  • Word to PDF — Convert a .docx document into a PDF, keeping its structure.
  • PowerPoint to PDF — Turn a .pptx deck into a PDF, one page per slide.
  • EPUB to PDF — Convert an EPUB book into a paginated PDF you can print.
  • PDF to Word — Rebuild a PDF as an editable .docx document.
  • PDF to Excel — Pull the tables out of a PDF into an .xlsx workbook or CSV.
  • PDF to PowerPoint — Turn PDF pages into .pptx slides — as pictures or editable text.
  • PDF to HTML — Convert a PDF into clean, searchable, responsive HTML.
  • PDF to EPUB — Turn a PDF into a reflowable EPUB for e-readers and phones.

See all PDF tools (85) · All tools