TXT to PDF
Turn plain text files into neatly formatted PDF documents.
Drop a text file here (.txt)
or drag and dropProcessed on your device. Nothing is uploaded.About this tool
TXT to PDF turns a plain text file into a tidy, paginated PDF. Text files are everywhere: notes exported from apps, server logs, transcripts, README files and data dumps. They look raw when printed, and long lines can run off the screen. This tool reads the file, wraps lines to the page width, adds page breaks and sets the text in a clean font at the size you choose. A preview of the file appears before conversion. The PDF is built in your browser, so meeting notes or logs containing private details stay on your device.
Text files are easy to write but awkward to share or print. This tool wraps long lines, paginates the text and creates a clean PDF with selectable text. Keep a fixed-width layout for code or log files. Accented letters and Arabic text are supported.
How to use TXT to PDF
- Choose a .txt or .log file, or drag it onto the page. A preview of the beginning of the text appears.
- Pick the page size, A4 or US Letter, and Portrait or Landscape orientation.
- Set the font size between 7 and 20 points; 11 is the default and reads comfortably on paper.
- Tick “Keep fixed-width layout” for code, logs or text aligned in columns, so spacing and indentation are preserved.
- Create the PDF and download it; it takes the same name as your text file.
When it helps
Logs for incident reviews
Turn an application log into a paginated PDF that colleagues can annotate during a review meeting.
Archiving transcripts
Convert interview or chat transcripts saved as text into PDFs to keep in a project or case file.
Sharing quick notes
Send meeting notes written in a basic editor as a PDF that looks neat on every device.
Code listings
Students can print source code with its indentation intact for an assignment that must be submitted as PDF.
Tips for best results
- Use landscape together with fixed-width layout for wide logs or tables lined up with spaces, so fewer lines wrap.
- Save your text file as UTF-8 if it contains accented letters, Arabic or special symbols, for the most reliable result.
- Blank lines in your text are kept, so use them to separate paragraphs and sections.
- Lower the font size to 9 or 10 to fit more of a long file onto each page and reduce the page count.
Good to know
- Plain text carries no styling, so no bold text or real headings are created; use Markdown to PDF if you need formatting.
- Lines in scripts such as Arabic are placed as images to keep the letters correctly joined, so those lines cannot be selected or searched.
- In fixed-width mode, tabs are converted to four spaces, which can shift alignment in files that expect wider tab stops.
Related tools
Questions
Is the text selectable in the PDF?
Yes, for Latin scripts. Arabic lines are drawn as images to keep the correct shaping.
What encodings are supported?
UTF-8 and Windows-1252, which covers nearly all text files.
Will very long lines be cut off?
No. Lines wider than the page are wrapped onto the next line, and even a single very long word is broken so nothing disappears off the edge. Landscape reduces wrapping.
Is fixed-width layout switched on automatically?
It is ticked automatically for files ending in .log, which are usually aligned in columns. For other text files you can switch it on yourself.
What page margins are used?
A fixed margin of roughly two centimetres surrounds the text on every page. It cannot be changed, but a smaller font size or landscape gives you more room.
Can I convert a CSV file here?
You could, but the result would be raw lines of comma-separated values. CSV to PDF reads the same file and lays it out as a proper table with headers.
Is Convert Magician really free?
Yes. All tools are free to use without an account. The site is funded by advertising, which is why you may see ads around the tools.