Free Text to PDF
Text to PDF turns plain text, logs, Markdown or source code into a PDF with selectable, searchable text. Choose Sans or Monospace, the size, line spacing, page size and margins, and add line numbers, a title or page numbers. Latin, Greek, Cyrillic, Armenian and Georgian are covered; Chinese, Japanese and Korean are not.
- Input:
- TXT, Markdown, logs, CSV, code
- Fonts:
- DejaVu Sans or Sans Mono
- Page size:
- A4, US Letter, US Legal
- Price:
- Free
- Runs:
- Locally, in your browser
- Uploads:
- None: files never leave your device
- Account:
- Not needed
Quick answers
Can I copy the text from the PDF?
Yes. The text is real text in an embedded font, so it can be selected, searched and copied.
Processed on your device: your files are never uploaded. How it works
Network activity in this tab
What this page has requested since you opened the site in this tab. An upload is any request that sends data: POST, PUT, PATCH or a request with a body.
No uploads: nothing has been sent from this page.
No network requests yet.
To see every request, open your browser's developer tools (Network tab).
How to use the Text to PDF
- Type or paste your text, or open a .txt, .md, .log, .csv or source code file.
- Choose the font, size, spacing, page size, margins and extras like line numbers, a title and page numbers.
- Click Create PDF to download it.
Credits & open source
Our own code plus open-source libraries. Thank you to the people who make these projects.
- pdf-libCreate and modify PDF documents (merge, split, rotate, stamp, sign). © Andrew Dillon · MIT
- @pdf-lib/fontkitFont engine that lets pdf-lib embed Unicode TrueType fonts. © Devon Govett; fork by Andrew Dillon · MIT
Web platform APIs used: File API, TextEncoder, Intl.Segmenter.
- DejaVu Fonts by DejaVu fonts team (based on Bitstream Vera) (Bitstream Vera License / Public Domain) — DejaVu Sans, Sans Bold and Sans Mono, embedded as subsets for the body text, title and page numbers.
Full license texts: third-party notices · all credits
Frequently asked questions
Which languages work?
Latin, Greek, Cyrillic, Armenian, Georgian and many symbols. Chinese, Japanese and Korean are not in the font, and right-to-left scripts are not reordered yet.
What happens to very long lines?
With “Wrap long lines” on, lines break at spaces and very long words are split. Turn it off for code if you prefer, but long lines will then run off the page.