Text/Markdown to PDF
Turn a .txt or .md file into a real PDF — free, in your browser
Recognizes # headings, - / * bullet lists, 1. numbered lists, ``` code blocks, and **bold** / *italic* text.
100% private — Files are converted right in your browser and never uploaded to any server.
Fonts, wrapping and CJK fallback
- Text flows through word-wrap at your chosen margin, preserving blank lines as paragraph breaks.
- Chinese/Japanese/Korean input switches to an embedded CJK font automatically instead of blank boxes.
- The monospace option aligns code and ASCII tables column-for-column.
How it works
- 1
Drop in your .txt or .md file.
- 2
Choose a font size.
- 3
Click Convert and download your typeset PDF.
Plain text deserves proper typography
Markdown-aware typesetting
Headings, bullet and numbered lists, fenced code blocks with a shaded background, and **bold**, *italic* and `code` inline all render as real typography, not raw characters.
Chinese, Japanese and Korean fonts
CJK characters embed a real subsetted font instead of triggering an encoding error — a Chinese README or Japanese notes document typesets fully, with automatic page breaks on A4 pages.
Font size and pagination control
Pick 10, 11 or 13 point body text before converting. Long files paginate automatically, and each page keeps the same 54-point margin so printouts look consistent.
Frequently asked questions
Which Markdown features are supported?⌄
Headings (#, ##, ###), bullet and numbered lists, fenced code blocks (```), and inline **bold** / *italic* / `code` text — the constructs people actually use most.
What happens to a plain .txt file?⌄
It's typeset as regular paragraphs with automatic word-wrap and page breaks — no Markdown syntax required.
Is my file uploaded?⌄
No — the PDF is built entirely in your browser using an on-page engine. Your file never leaves your device.
Is there a length limit?⌄
Up to 20 MB of text. Long documents automatically flow across as many pages as needed.
Related tools
What Is Text to PDF Conversion?
Text to PDF turns a plain .txt or Markdown .md file into a properly typeset PDF with real headings, lists, and code styling. Notes, README files, documentation, and drafts often need printing, sending, or archiving in a fixed layout, and this tool builds that document with the self-hosted pdf-lib engine entirely in your browser, with a font size choice of 10, 11, or 13 points and files up to 20 MB accepted.
How plain text becomes a typeset page
The typesetter segments the file into headings, paragraphs, lists, and code blocks, then lays them onto A4 pages with measured word wrapping from real font metrics, generous line spacing, and automatic page breaks with progress reported per block. Body text renders in Helvetica weights with Courier for code, so the PDF reads like a finished document rather than a printed text dump.
Markdown constructs this typesetter understands
- Headings, bullet and numbered lists, and blank-line paragraphs that merge soft-wrapped source lines into flowing text.
- Inline bold, italic, and code spans for emphasis and technical terms inside sentences.
- Fenced code blocks drawn on a shaded panel in monospace for notes, configs, and snippets.
Font sizes and CJK fallback coverage
Built-in fonts cover Latin-script text, and the whole document is probed upfront so an unsupported script fails fast with one clear message. Chinese, Japanese, and Korean trigger a downloadable fallback font from this site, with the limitation that bold and italic CJK render at regular weight, while Hindi, Cyrillic, and other scripts still report a clear unsupported-characters error.
Why source text never leaves this browser tab
Typesetting and PDF assembly run on your device with no upload calls, no server routes, and no registration API in the tool code. The single network fetch that can occur is a static font file from this site when CJK text needs it, never your document content.
Drop in the notes file and a print-ready PDF comes out seconds later.
Last updated · 2026-09-01