Convert text to PDF
Paste text or open a .txt, .md, .csv or .log file and get a clean, paginated PDF. Any language and any file encoding.
- Files never leave your device
- Free, no signup, no watermark
- Works on any browser
How to convert text to PDF
- 1Paste text or open a text file
- 2Choose the font, size, page format and margins
- 3Create and download the PDF

About Text to PDF
Paste or open plain text and get a clean, paginated PDF with proper word wrapping. Files in any common encoding open correctly, Arabic lines are shaped and right-aligned, and Chinese, Japanese, emoji and math symbols use matching fonts. Choose sans serif, serif or monospace, the size, the page format and the margins. Even multi-megabyte logs convert in seconds, and nothing is uploaded.
See also: Create PDF, EPUB to PDF
Useful for
- Turn notes into a printable document
- Archive a log file or console output as PDF
- Print code or configuration with monospace columns
- Make a simple letter or list
Frequently asked questions
Which files can I open?+
Text files such as .txt, .md, .csv and .log, or paste any text. The encoding is detected automatically: UTF-8 with or without BOM, UTF-16 (Notepad's "Unicode") and older Windows-1252, Arabic Windows-1256 and Japanese Shift_JIS files, so accents never turn into question marks.
Does it work with Arabic and other languages?+
Yes. Arabic and other right-to-left lines are shaped and aligned to the right, and Chinese, Japanese, emoji, math symbols and box-drawing characters use matching fonts.
How are long lines and tabs handled?+
Lines wrap between words. A long web address or a word without spaces is broken across lines instead of running off the page. Tabs line up on 4-character stops, and a form feed character starts a new page.
Can I convert a very large file?+
Yes. A 3 MB log file becomes a PDF of about 1,300 pages in roughly 15 seconds on a laptop.
Which fonts and page sizes can I pick?+
Sans serif, serif or monospace, from 9 to 18 pt, on A4, US Letter, Legal, A3 or A5 with narrow, normal or wide margins. Monospace keeps the columns of logs, tables and code aligned.
Is the text searchable, and is it private?+
The PDF contains real text you can search and copy. The conversion runs in your browser, so your text never leaves your device.
Add Text to PDF to your website
Free, no ads, no sign-up. Paste one line of code and your visitors use it right on your pages.
<div data-pdfkind-tool="text-to-pdf"></div>