Skip to content
ConvertFileConvertFile

Text to PDF converter

Turn a .txt file, a Markdown (.md) file or text you paste into a tidy PDF with page numbers. Markdown headings, lists, tables and code blocks are formatted for you.

Runs in your browser. Your file is never uploaded.

Page last updated

How to convert Text to PDF

  1. 1Drop a .txt or .md file into the box above, or paste your text and select Use this text.
  2. 2Check whether it's plain text or Markdown. For code, logs or text lined up in columns, turn on the fixed-width font.
  3. 3Pick a page size and text size, then select Convert to PDF and download the file.

What you get

  • Plain text keeps every line break and blank line as you typed it, with long lines wrapped to the page.
  • Markdown headings, bold, italics, inline code, lists, quotes, rules and fenced code blocks are formatted. Tables come out one line per row.
  • Every page is numbered. The text is real text, so you can search and copy it in the PDF.
  • Accented letters, Greek and Cyrillic work. Chinese, Japanese and Korean text can't be laid out yet.
  • Images linked from the web in Markdown aren't fetched; their description is shown instead.

Limits and privacy

  • Files up to 25 MB and 150 pages without an account, or 50 MB and 400 pages with a free one. Very large files depend on your device's memory.
  • Your file never leaves your device. The conversion runs in your browser using code from our site, and we don't receive the file, its name or anything inside it. How we handle files.

Text to PDF: common questions

How do I convert a Notepad file to PDF?
Save it as a .txt file, drop it here, and select Convert to PDF. Or copy the text from Notepad and paste it into the box.
Does it convert Markdown to PDF with formatting?
Yes. Files ending in .md are read as Markdown, so headings, bold, italics, lists, quotes and code blocks look formatted in the PDF instead of showing their # and * marks.
Will my line breaks and spacing stay?
Line breaks and blank lines stay. Runs of spaces at the start of a line don't, unless you turn on the fixed-width font, which keeps the text exactly as typed and lines up columns.
Is my text uploaded?
No. The PDF is made in your browser, so the text doesn't reach our server.

More Text and PDF conversions