Convert Plain Text to Formatted PDF

Paste notes or Markdown, choose a font size, then open a print preview and save with your system PDF printer. Files stay local.

Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/text-to-pdf" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/text-to-pdf" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Convert Plain Text to Formatted PDF</a></div>

Print-ready PDF

This tool opens a print-ready document in a new tab. Use your browser’s “Save as PDF” printer so system fonts render Latin and CJK text correctly; no document content is uploaded.

Edge cases and hard limits

There is no PDF library in this page, and that is the point. Your text is turned into a simple print-ready HTML document, opened in a new tab with window.open() and immediately sent to the browser's print dialogue, where the system's own PDF printer writes the file. Because the rendering is done by the browser, system fonts are used for whatever script you paste in, so Chinese, Japanese, Arabic and Cyrillic text come out as real type instead of missing-glyph boxes — the usual failure of embedded-font PDF generators. Page size, margins, orientation and headers are chosen in the print dialogue, the way you would print any web page, and the text can be selected and searched in the resulting PDF.

Formats, sizes and other limits

The output is whatever your browser's print engine produces, so the options are the dialogue's options: paper size, margins, background graphics and scale. A popup blocker can stop the new tab, in which case nothing is generated at all. Basic line breaks and paragraphs are preserved, but there is no control over typeface, line spacing, page numbers or page-break placement, no image embedding except through the browser's own handling of the text, and no PDF metadata or tagging — screen readers will see untagged text. Very long documents depend on how much the print pipeline can hold, and multi-column or table formatting from the source is reduced to plain paragraphs.

Privacy: processed in your browser

Your text is written into a document that exists only in a new tab of your own browser and printed locally, so the print job never crosses the network. There is no conversion service, no temporary file on a server and nothing to clean up afterwards.

Frequently asked questions

Why does it open a print dialogue instead of downloading a PDF?

Because the browser's own PDF writer produces better typography than a JavaScript library, especially for non-Latin scripts. Choose “Save as PDF” as the destination and the file is written locally.

Nothing happened when I pressed the button — why?

A popup blocker almost certainly stopped the new tab before the print dialogue could open. Allow popups for this site, or open the page in a window where popups are permitted, and press the button again.

Can I control fonts, margins or page numbers?

Only through the print dialogue, which offers paper size, margins and scale. The generated document uses plain paragraph styling, so set anything else there — or paste the result into a word processor for finer layout.