TXT and Markdown to PDF
Lay out a plain text or Markdown file as a real PDF, with headings, lists, code blocks and embedded fonts that keep every alphabet readable.
Drop your files here
.txt, .md, .markdown, .text · up to 20 MB
More settingsFewer settings
How to Build the PDF
- 1
Drop a TXT or MD file
Add one file or up to fifty. The encoding is detected for you, so a note saved on an old Windows machine opens as text, not as question marks.
- 2
Pick font, size and page
Choose sans, serif or monospace, set the type size, line spacing and margins, and decide between A4 and Letter. Page numbers are one switch away.
- 3
Download the PDF
Press the button and save the file. Several documents come back as one ZIP, one PDF per source file.
Markdown becomes structure, not asterisks
The Markdown is parsed, not printed. Headings get their own type sizes across six levels, bullet and numbered lists keep their markers and indent three levels deep, block quotes get a rule down the left edge, fenced code sits in a monospaced block on a grey panel, and tables become aligned columns with a rule under the header. Bold, italic and inline code survive inside paragraphs. Raw HTML is dropped rather than rendered, and image links are skipped because a browser cannot read files off your disk. Choose plain text instead and every line break is kept as typed.
Encodings and fonts, the two things that usually break
Text files rarely say what encoding they use. The byte order mark is checked first, then strict UTF-8, and only then the legacy single-byte tables: Windows-1251 when the result really is Cyrillic, Windows-1252 otherwise, so French accents do not turn into Russian letters. Fonts are the other half of the problem, because the fourteen fonts built into the PDF format cover Western European text and nothing else. Noto goes into your document instead, and only the glyphs you used, so Cyrillic, Greek, Arabic, Hebrew, Chinese, Japanese and Korean look identical on every device.
Your text is laid out on your own machine
The file is read, parsed and typeset inside your browser tab, and the finished PDF goes straight to your downloads folder. Nothing is uploaded, nothing is stored, and no server ever sees a draft contract, a private journal or an internal runbook. Close the tab and every trace is gone with it.
Frequently asked questions
How much Markdown is supported?
Headings, paragraphs, bold, italic, inline code, links, bullet and numbered lists with nesting, block quotes, fenced code blocks, tables and horizontal rules are all laid out. Footnotes, task list checkboxes and raw HTML are not rendered; HTML is stripped for safety rather than drawn.
Why were the images in my Markdown skipped?
Because a Markdown image is only a path, and a web page cannot read files off your disk that you did not select yourself. The text is laid out without them and you are told how many were skipped, so you can merge the pictures in afterwards as separate pages.
Does it handle Cyrillic, Arabic and Chinese?
Yes. The scripts in your text are detected and matching Noto fonts are embedded in the PDF, so Cyrillic, Greek, Arabic, Hebrew and CJK all appear correctly. Arabic and Hebrew are laid out right to left, though contextual letter joining is not applied.
Why is a PDF with Chinese text larger?
Because a CJK font carries tens of thousands of glyphs. Only the characters you used are embedded, which keeps a typical document well under a megabyte instead of the six megabytes a whole font file would add. Latin and Cyrillic documents stay tiny.
What encoding should my file be in?
UTF-8 is best and needs no thought. Files saved as Windows-1251 or Windows-1252 are detected and read correctly too, with or without a byte order mark. UTF-16 with a BOM works. If nothing fits, you are told before a broken PDF is produced.
Are line breaks from my TXT file preserved?
Yes, in plain text mode every line break stays where it is and blank lines separate paragraphs. Lines longer than the page are wrapped at word boundaries, never chopped mid-word, and a single word wider than the column is split character by character.
Do Markdown tables survive?
Yes. Each table is laid out in evenly spaced monospaced columns with the header in bold and a rule beneath it, and rows are kept whole rather than split across a page break. Very wide cells wrap inside their column instead of running off the page.
How large a file can I convert?
Up to 20 MB per file and 100 MB in one batch, which is thousands of pages of prose. Longer than that and you are pointed at the text splitter instead, because laying out that much text in one browser tab is a poor experience.