Skip to content

Convert text to PDF

Turn plain text or Markdown into a neatly paginated PDF with headings, lists and tables.

Loading tool…

How it works

Notes, logs, README files and drafts are often plain text, while the place you send them wants a PDF. Paste the text or open a .txt or .md file, choose A4 or Letter, margins and font size, and the tool wraps the lines into pages with real, selectable text.

With Markdown formatting on, "# Heading" lines become headings, **bold** and *italic* are styled, "-" and "1." lines become lists, | tables | become tables and fenced code blocks are set in a monospaced font on a grey background. Turn it off to keep the text exactly as typed, line breaks included.

Markdown quick reference

With Markdown formatting on, these patterns become formatted PDF text; everything else is printed as typed.

You typeIn the PDF
# Title / ## Section / ### SubsectionThree sizes of heading
**important**Bold text
*emphasis*Italic text
`code`Monospaced text
- itemA bulleted list
1. stepA numbered list
> quoted textAn indented quotation
| a | b | with a |---|---| line under the headerA table
--- on its own lineA horizontal rule
``` on the lines before and after a blockA code block on a grey background

Choosing page settings

  • Font size 11 or 12 for documents to print; 10 fits more of a log file or code on each page.
  • Narrow margins for drafts and logs, normal margins for anything you will hand in or sign.
  • A4 for most of the world, US Letter for the United States and Canada; the text reflows either way.

How to use it

  1. Paste or type the text, or open a .txt or .md file.
  2. Choose whether to format Markdown.
  3. Pick the page size, margins and font size.
  4. Click Create PDF and download it.

Frequently asked questions

Are my files uploaded?

No. The file is read and processed by your browser on your device; nothing is sent to a server. The PDF engine is downloaded from this site the first time you use a tool and then runs on your device.

Which Markdown features are supported?

Headings, bold, italic, inline code, bulleted and numbered lists, quotes, tables, horizontal rules and fenced code blocks. Links are printed as their text.

Can I use Arabic or Chinese text?

Arabic, yes: it is shaped with IBM Plex Sans Arabic and laid out right to left, and Arabic paragraphs are right-aligned. Latin, Greek and Cyrillic use Carlito. Chinese, Japanese, Korean and emoji are not in the bundled fonts; they are replaced by "?" and the tool tells you how many characters were affected.

How long can the text be?

Up to 1,000,000 characters, which is several hundred pages.

Are long lines of code wrapped?

Yes. Lines in code blocks that are too long for the page are broken at the right margin so nothing is cut off.