Convert text to PDF
Drop in a .txt file, or paste text straight in. Choose a font and page size, and get a tidy PDF with real, searchable text.
- 1Add your file
- 2Make it yours
- 3Download & done
Let’s start with your file.
Drop a text file here, or paste your text below.
.txt, .md, .log, code and other plain-text files·Or drag and drop a file
Choose a different fileYour files stay on this device. Always.
How to convert text to PDF
- Choose a text file, or paste your text into the box and press Use this text.
- Pick a font, size, line spacing, page size and margins.
- Press Create PDF and download it.
Good to know
Long lines wrap at the margin, and each line break in your text starts a new line in the PDF. A form-feed character (the old “page break” in printer files) starts a new page. Tabs become four spaces.
The text is written into the PDF as real text, not a picture, so the file is small and you can search and copy from it. Pick Courier for code, logs and anything lined up in columns.
Which characters work
The PDF uses the three fonts every PDF reader has built in (Helvetica, Times and Courier), which keeps files small and works everywhere. They cover English and Western European languages, including accents, curly quotes, dashes and the euro sign. Emoji and other scripts, such as Cyrillic, Greek, Arabic, Hindi or Chinese, show as “?”, and PDF1 tells you how many were affected. For those, paste the text into HTML to PDF, which prints with your system’s fonts.
Odd characters in old files?
PDF1 reads UTF-8 and UTF-16 files, and falls back to the Windows Western encoding used by many older files, so “café” comes out as café rather than café.
Questions
Is my file uploaded anywhere?
No. PDF1 runs the whole job inside your browser tab with JavaScript and WebAssembly. The page has no upload endpoint, and its security policy blocks connections to other servers, so the file stays on your device. You can even disconnect from the internet once the page has loaded.
Can I convert Markdown or code files?
Yes. Any plain-text file works, and its text appears exactly as written. Markdown formatting such as **bold** is kept as plain characters rather than rendered.
Can I add page numbers?
Yes. Tick Add page numbers and each page gets “3 / 12” style numbering at the bottom.
Is there a size limit?
No fixed limit. Text is small, so even a book-length file converts in a few seconds.