UTILS.
100% in-browser
📝

Text to PDF

Convert plain text or lightweight Markdown into a clean, word-wrapped and paginated PDF — free, in your browser.

About this tool

Turn plain text or lightweight Markdown into a tidy, multi-page PDF without any upload. Paste your content, choose the page size (A4 or Letter), the font (Helvetica, Times or Courier), the font size, the margins and the line spacing, then generate. The tool recognizes a small set of Markdown: lines beginning with #, ## or ### become progressively smaller bold headings, lines starting with - or * become bulleted list items, blank lines create paragraph gaps, and **double asterisks** mark inline bold within a paragraph.

The layout engine does the hard part for you. Each paragraph is greedily word-wrapped to the content width — words are added to a line while the measured width stays within the margins, then the line breaks — and unusually long words are split character-by-character so nothing ever overflows the page. A vertical cursor tracks the current position and, whenever the next line would fall below the bottom margin, a fresh page is started automatically, so documents of any length paginate cleanly.

Text is rendered with the standard PDF fonts, which cover Latin/Western-European characters. Non-Latin scripts (Arabic, Chinese, Cyrillic and similar) may not encode and are replaced with a placeholder — for those, a font-embedding tool is required.

Frequently asked questions

Which Markdown features are supported?
Headings (#, ##, ###), bulleted lists (- or *), paragraph breaks on blank lines, and inline **bold** with double asterisks. Other Markdown syntax is rendered as plain text.
How does word-wrap and pagination work?
Each line is wrapped to fit within your margins by measuring text width in the chosen font, and a new page is added automatically whenever the next line would cross the bottom margin — so any length of text fits.
Is my text sent anywhere?
No. The PDF is generated locally in your browser with pdf-lib. Your text never leaves your device, which makes it safe for private notes and drafts.
Can it handle non-Latin languages?
The built-in fonts only support Latin/Western-European characters, so scripts like Arabic or Chinese may be replaced with a placeholder. Stick to Latin text for reliable output.

More tools