Convert text or Markdown to PDF
Paste notes, a README, a letter or an agenda and get a properly laid-out PDF. Markdown headings, lists, bold, italic, code spans, rules and block quotes are understood; long lines wrap to your margins instead of running off the page. Choose the paper size, font, type size, line spacing and margins.
How to use the Text to PDF
- Paste or type your text into the box — the PDF rebuilds as you type.
- Pick a paper size, font and type size.
- Adjust the margin and line spacing until the preview size looks right.
- Download the PDF from the result panel.
What the Markdown mode understands
| You type | You get |
|---|---|
# Heading to #### Heading | Four levels of bold heading, largest first |
- item or 1. item | Indented bullet or numbered list |
**bold**, *italic*, `code` | Bold, italic and monospaced runs inside a paragraph |
> quoted | Indented italic block quote |
--- | A horizontal rule |
| Three backticks | A monospaced code block, not wrapped |
Blank lines separate paragraphs; single line breaks inside a paragraph are re-flowed to the margin, which is what makes pasted text from a terminal or an e-mail look tidy. Turn Markdown off and every line is kept exactly as typed, wrapped only when it is too wide — the right choice for log files, poetry and anything containing asterisks that should stay asterisks.
Type size, margins and how much fits
At 11 pt with 1.4 line spacing and 20 mm margins, an A4 page holds roughly 500–550 words of prose. Increase the margin to 25 mm for a document that will be bound or three-hole punched. Line spacing is a multiplier on the type size: 1.2 is tight, 1.4 comfortable, 2.0 is what teachers and editors usually mean by double-spaced.
Fonts — and a real limitation
The three fonts offered are standard PDF fonts, present in every reader, so nothing is embedded and even a 40-page document stays a few dozen kilobytes. The price is character coverage: they support WinAnsi only — English, most western European languages, the euro sign, typographic quotes and dashes. Urdu, Arabic, Hebrew, Greek, Cyrillic, Devanagari, Chinese, Japanese and Korean are not supported and are replaced with question marks; the result panel counts how many characters were affected. Writing those scripts needs an embedded Unicode font, which we plan to add. Until then, use a word processor for non-Latin text.
Why not just print to PDF?
Printing from a browser or an editor works, but it stamps the page with headers, footers and URLs, uses whatever margins the print dialogue feels like, and often needs a per-machine setup. This tool produces a clean document with exactly the margins you asked for, and it never sends your text anywhere — which matters when the text is a resignation letter, a medical note or an API key.
Frequently asked questions
Does this support Urdu, Arabic or Chinese text?
Not yet. The built-in PDF fonts cover Latin (WinAnsi) characters only; anything else is replaced with a question mark and counted in the result panel.
Does it understand Markdown tables?
No. Headings, lists, bold, italic, code spans, code blocks, block quotes and horizontal rules are supported; table syntax is printed as typed.
How many words fit on a page?
About 500–550 on A4 at 11 pt with 1.4 line spacing and 20 mm margins. Larger type or wider margins reduce that proportionally.
Is my text uploaded?
No. The PDF is generated in your browser with pdf-lib, so the text never leaves your device.
Privacy
This tool runs entirely inside your browser using WebAssembly and the Canvas/File APIs. Your files are never uploaded to ToolFlint or any third party; you can verify this in your browser's network tab or by switching to airplane mode after the page loads. Read how we process files.
Last updated 2026-09-23.