TXT to PDF converter
Turn a .txt file into a PDF in your browser. Laid out on A4 pages in a monospaced face, so logs and aligned tables keep their shape. Nothing is uploaded.
Drop files here
or
Accepts .txt · Up to 20 files at a time · up to 1.4 GB each "Upload" and "download" here mean your browser reading a file from this device and writing one back to it. Nothing is sent to a server — open your browser's network panel and watch: no request carries your file.
FAQ
Is the result real text or a picture of text?
Real text for anything the PDF built-in fonts can encode — English, code, logs, most European languages. It stays sharp at any zoom, can be selected and copied, and a 150-line log comes out around 4 KB. Text those fonts cannot encode, such as Chinese or Japanese, takes a different path: the page is drawn with your browser’s own fonts and an invisible text layer is added underneath, so it still selects and searches correctly but the file is larger. You are told which one you got.
Why is it monospaced?
Because a .txt is as likely to be a log, a stack trace or a hand-aligned table as it is to be prose, and all three fall apart in a proportional face — columns that lined up in your editor stop lining up. A monospaced face keeps them. Converting to Word instead gives you proportional text you can restyle.
How does it know the file’s encoding?
A .txt carries no declaration, so it is worked out. UTF-8 is tried strictly first; a file that is not valid UTF-8 is tried as GBK, which covers most older Chinese text files; anything still undecided falls back to Windows-1252, which cannot fail. Valid UTF-8 is never mistaken for GBK, because strict UTF-8 decoding rejects the byte sequences GBK would claim.
What happens to very long lines?
They wrap at the page margin rather than running off the edge. A word that is itself longer than a line — a URL, a hash, a base64 blob — is broken across lines, because the alternative is losing it. Tabs become four spaces.
Can I choose the page size or font size?
Not yet. It is A4 at 10pt with a two-centimetre margin, which fits about 55 lines to a page and prints correctly on both A4 and Letter. If your file needs a specific layout, a word processor is the right tool.
Is the file uploaded?
No. The text is read, laid out and drawn into a PDF inside this page. You can confirm it in your browser’s network panel: nothing carrying your file goes out.
Is it really free?
Yes — every conversion on this site, with no account, no watermark and no daily cap. The work happens on your own device, so there is no server bill for us to pass on to you.
Do I need to install anything?
No. It runs in any modern browser, on Windows, macOS, Linux, Android and iOS. There is nothing to download and nothing to sign up for, and once the page has loaded it keeps working with the network switched off.
Related converters
PDF tools
- Merge PDFCombine several PDFs into one, in the order you choose.
- Sign PDFDraw or type your signature, drop it where it belongs on the page, and download the signed PDF.
- Watermark PDFStamp text across the pages of a PDF — diagonal, straight or tiled, at the opacity you choose.
- Add page numbersPut page numbers on a PDF — any corner, any starting number, on the pages you choose.