Initializing Secure Environment…
Initializing Secure Environment…
Turn plain-text files into clean, searchable PDFs: notes, logs, code, subtitles, poems, exported chats. A text file's line breaks and spaces are its formatting, so every line starts where it did and indentation is kept; only lines too long for the page wrap. Fonts are chosen for the scripts in your text, so any language works. Convert several files at once, each to its own PDF, entirely in your browser.
To convert a TXT file to PDF, open it in a converter that lays the text out on pages with a font that covers its characters. On ihatepdf you drop in one or more .txt files (or paste text), choose a font, size and paper, and download a PDF with real, selectable text. Line breaks and indentation are kept exactly, and Hindi, Arabic, Chinese, Thai and other scripts come out as text, not boxes. Nothing is uploaded.
Printing a text file from a browser or an editor often breaks long lines at the page edge, loses indentation, or prints boxes for characters the default font lacks. This converter wraps long lines at spaces, keeps the indent of the line it wrapped, and embeds only the fonts your text needs, so a 2,000-line log or a Hindi document comes out complete and searchable.
Choose monospace when columns need to line up: source code, tables drawn with spaces, server logs and configuration files. Tabs expand to real tab stops (2, 4 or 8 columns), so aligned columns stay aligned. Characters the monospace face lacks, such as Hindi or Chinese, fall back to a matching font instead of turning into boxes.
Drop the .txt file on this page, choose a font and paper size, and press Convert to PDF. The PDF downloads straight away. It is free, with no sign-up and no watermark.
Yes. Every line of the text file starts a new line in the PDF and its leading spaces are kept, so lists, code and poems keep their shape. Tabs become four spaces. Only a line too long for the page wraps, and the wrapped part keeps the same indent.
Yes. The converter picks a Noto font for each script in your text and shapes complex scripts properly, so Devanagari conjuncts and joined Arabic letters print correctly, as text rather than boxes or pictures. Right-to-left lines are aligned to the right.
That happens when a file is read in the wrong encoding. This tool checks for a byte-order mark, then tries UTF-8, then falls back to Windows-1252, which reads nearly every text file saved by Notepad correctly.
Yes. Drop in as many as you like. Each can become its own PDF (downloaded together in a ZIP), or they can go into one PDF where every file starts on a new page and has its own bookmark.
Turn on "Fit the longest line". The text shrinks, down to 5 pt, until the longest line fits the page width; choose landscape to keep it larger.
Yes. The encoding is detected automatically, and the "Text encoding" menu lists 21, from Windows-1251 Cyrillic to Shift_JIS and Big5. The preview updates as you switch, so you can see which one reads correctly.
Yes. Turn on Line numbers and each source line is numbered in the margin, which is useful for code reviews and log files. Wrapped lines are not numbered twice.
No. The PDF is built in your browser. Only the font files are downloaded, and your text never leaves your device.
More pdf tools — all free, no upload.