Nothing is uploaded and there is no page limit — no daily cap, no account, no watermark. The PDF is built entirely in this tab.
Text to PDF
LocalBlank lines are kept as paragraph breaks. Processed entirely in your browser.
This tool embeds the DejaVu Sans font. Its underlying Bitstream Vera license requires the following notice to accompany redistribution: "Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc. DejaVu changes are in public domain." Full license text: dejavu-fonts.github.io/License.html.
How this builds your PDF
A plain text file carries no layout information at all — no page size, no margins, no font. Converting it means deciding all of that, then measuring the actual width of every word in the chosen font to know where each line has to break, and how many lines fit on a page before starting the next one.
What the settings actually control
| Setting | Effect |
|---|---|
| Page size | A4 (595 × 842 pt) is standard almost everywhere outside North America; Letter (612 × 792 pt) is the US standard; Legal is longer again, for documents that need the extra length |
| Font size | Larger sizes fit fewer words per line and fewer lines per page, so the same text produces more pages — this is normal, not a bug |
| Margins | Wider margins reduce the usable page area on both axes, which also increases page count for the same text |
| Line spacing | Double spacing roughly halves how many lines fit per page compared to single — useful for documents that will be printed and annotated by hand |
How script coverage is actually determined
Rather than list "supported scripts" from the font's name, which can be wrong or go stale as font files update, this tool asks the loaded font file directly which Unicode characters it can render, using pdf-lib's own getCharacterSet(). Every unique character in your text is checked against that real answer before conversion starts.
| What happens | Why |
|---|---|
| Latin, Cyrillic and Greek text | Converts normally — DejaVu Sans covers these scripts thoroughly, which is why it was chosen |
| A character the font cannot render | Listed by name before conversion runs, rather than appearing as a blank box or breaking the file silently |
| Mixed text (mostly supported, a few unsupported characters) | Every unsupported character is reported at once, so you can decide whether to remove, replace, or transliterate them in a single pass rather than discovering them one at a time |
Compared with the alternatives
| Tool | Files go | Customisation | Length limit |
|---|---|---|---|
| This page | Nowhere | Page size, font size, margins, line spacing | None |
| Smallpdf | Their servers | None | ~2 files a day free |
| Sejda | Their servers | None | 200 pages |
| iLovePDF | Their servers | None | File-size capped |
The gap is not privacy alone — several competitors are honest that their converters offer no real formatting control at all. A page size choice, four font sizes, three margin presets and a line-spacing option are small individually, but together they are the difference between a document that looks like a text dump and one that looks intentionally made.
Common mistakes
Frequently asked questions
Is my text uploaded anywhere?
No. The PDF is built entirely in your browser, and the only network request is for the libraries and font, which happens once and carries none of your content. You can confirm this in your browser's network panel.
Why does it say some characters aren't supported?
The embedded font (DejaVu Sans) covers Latin, Cyrillic and Greek scripts thoroughly, which is why it was chosen. For anything outside that, the tool checks the actual font file directly rather than guessing from its name, and lists exactly which characters it cannot render before conversion runs — commonly Arabic, Hebrew, or Chinese, Japanese and Korean characters, though the precise answer always comes from the loaded font itself, not a fixed list.
Is there a page or length limit?
No artificial cap. A genuinely long document takes a little longer to measure and paginate, but there is no page count or file size ceiling built into the tool, unlike several competitors that cap free use at a page or file-size limit.
Can I keep bold, italics or headings from my original document?
No — plain text has no formatting to carry over, so everything renders in one weight and style. If preserving formatting matters, this specific tool is the wrong one for that job; it is built for turning plain text into a clean, readable, paginated PDF, not for reproducing rich formatting.
Which page size should I use?
A4 if you are outside North America or unsure — it is the standard almost everywhere else. Letter if you are in the US or Canada and the document is going to be printed locally. Legal only if you specifically need the extra length.
Why did my document produce more pages than I expected?
Font size, margins and line spacing all trade off against page count directly — a larger font, wider margins or double spacing all mean fewer lines fit per page, so the same text spreads across more pages. Try Normal margins, 11pt and 1.5 line spacing for the most space-efficient common setting.
Are tabs and multiple spaces preserved?
No — word-wrapping collapses runs of whitespace to single spaces between words, since preserving exact spacing while also wrapping text correctly are conflicting goals. Blank lines between paragraphs are preserved as paragraph breaks, which is usually what matters more.
Does this work offline?
Once the libraries and font have loaded once and are cached by your browser, yes. The very first conversion on a page load needs a connection to fetch them; the actual PDF building is entirely local either way.
Related tools
See the full list of Document Tools, or try:
- Markdown to PDF — if your text uses Markdown syntax for headings and formatting
- PDF to Text — the reverse direction, including OCR for scanned PDFs
- Merge PDF — combine this PDF with others afterward
- Compress PDF — shrink the result if it needs to fit a size limit
- Word Counter — a closer look at length, reading time and keyword density before converting