Text to PDF: write it, style it, export a real PDF
Type or paste your text, format it with fonts, headings and lists, set the page size and margins, then export a genuine multi-page PDF. The preview is rendered from the actual file you download. Everything runs in your browser: your text never leaves your device.
How to use the Text to PDF tool
-
1
Write or import your text Type or paste into the editor. You can also drop a .txt or .md file onto the page, or click Import to select one. Markdown headings, lists, bold and page break markers are recognised automatically.
-
2
Style it and set the page Use the toolbar for paragraph style, font, size, bold, italic, underline, colour, alignment, lists and indentation. Below the editor choose a page size, orientation, margin preset, line spacing, header text and page number position.
-
3
Preview and download Click "Preview PDF" to render the actual generated file with pdf.js, page by page. When it looks right, click "Download PDF". The filename is taken from the first line of your text.
Special features
Frequently asked questions
How do I convert text to a PDF?
Type or paste your text into the editor, style it with the toolbar, choose a page size and margins, then click Download PDF. You can also drop a .txt or .md file onto the page to load it, and click Preview PDF first to see the actual file rendered page by page.
What fonts are available and are they embedded?
Three font families are available: a sans-serif, a serif, and a monospace, each in regular, bold, italic, and bold italic. These are the PDF standard fonts, which every PDF reader already contains. Nothing needs to be downloaded or embedded, so the file stays small and renders identically on every device.
Can I use non-English text?
The standard PDF fonts cover the Latin alphabet plus common Western European accents and symbols, which is 218 characters. Chinese, Japanese, Korean, Arabic, Hebrew, and Indic scripts are not supported by these fonts and cannot be shaped correctly in the browser without embedding large font files. The tool scans your text before building and warns you exactly how many characters cannot be drawn, so you never get a silently broken PDF.
Is there a limit on document length?
There is no hard limit. Very long documents, beyond roughly a hundred pages, take longer to lay out and to render in the preview because every page is processed locally. The download itself is still a single PDF regardless of length.
Does the preview show the real PDF?
Yes. The preview is not a drawing of what the PDF might look like. The tool builds the actual PDF bytes first, then renders those bytes with pdf.js. What you see in the preview is literally the file you will download, including line breaks, page breaks, headers and page numbers.
Do my files or text leave my device?
No. Everything happens in your browser. Your text is never transmitted, never stored, and never saved to any local storage. The two libraries used, pdf-lib and pdf.js, are loaded lazily from pinned CDNs and only run locally on your device.