TXT -> PDF · Local tool
TXT to PDF
Turn a text file into a PDF, keeping its line breaks and alignment.
Last updated
01 / Your device
the file stays here
02 / Browser memory
the work runs locally
03 / Back to you
saved on this device
When you would use this
Situations, not settings.
- A log or export somebody needs as a document
- Server logs, bank exports and device readouts arrive as .txt and have to be attached to a ticket or a claim.
- Notes written in Notepad or TextEdit
- Plain text is the most portable thing there is and the least sendable, because it looks unfinished and formats differently everywhere.
- Anything lined up with spaces
- A table drawn with spaces or a code listing needs a monospace face to survive, which a word processor will not give it by default.
How it works / no cloud
A conversion engine, not an upload form.
The text is escaped and set with the line breaks and spacing it already has, then handed to your browser's own print engine, which is what turns it into a PDF. Nothing is parsed: a line reading an HTML tag prints as those characters rather than being interpreted, which is both what a text file means and why no markup can reach the document. Long lines wrap rather than running past the margin, because the part past the margin would simply be missing.
- Offline ready
- Installable app
- No file limit queue
Straight answers
No accordion. Nothing hidden.
- Is it free?
- Yes, with no watermark and no page limit.
- Does it need an account?
- No. There is no account system.
- Is my file processed on my device?
- Yes. The file is read by your browser and never uploaded. There is no server to send it to.
- What formats are supported?
- TXT and LOG in. A PDF out, saved through your browser's print dialog, with the text still real text.
- What are the limits?
- The last step is the browser's print dialog rather than a download, so you choose Save as PDF there. There is no styling to apply beyond the typeface, because a text file carries none; if you want headings and tables, the file you have is probably markdown and /markdown-to-pdf reads those.
- Does it work on mobile?
- Yes, on any modern mobile browser. Large files are limited by the memory the phone gives the browser.
- Does it work offline?
- Yes. Nothing is downloaded to make this work, so it keeps working with no network connection once the page has loaded.
- Will my line breaks survive?
- Yes, exactly, and that is the reason this page exists separately from the markdown one. Markdown treats a single line break as an ordinary space and joins the lines into a paragraph, which would turn a poem, an address block or a log into a wall of prose. Nothing here is parsed, so every break and every run of spaces is kept.
- Should I pick monospace or serif?
- Monospace if the file has anything lined up in columns: a log, a table drawn with spaces, code, a directory listing. Every character is the same width, so the alignment holds. Serif if it is prose meant to be read, like notes or a letter, where a proportional face is easier on the eye. Monospace is the default because misaligned columns are a worse failure than slightly harder reading.
- What happens to very long lines?
- They wrap onto the next line rather than running off the right edge. The alternative keeps the file looking more like the original and silently loses everything past the margin, which is not a trade worth making for a document you are printing to keep.
- Why does the print dialog open instead of downloading?
- Because the browser's print engine is what makes the PDF, and it is better at breaking pages than anything that would fit in a web page. Choose Save as PDF as the destination; in Chrome, unticking Headers and footers keeps the date and URL off the pages.
Keep working locally
7 available · more coming
- Markdown to PDFTurn a markdown file into a PDF, with headings, tables and code kept.
- Word to PDFConvert a Word document to PDF, keeping the text as real text.
- PDF to TextPull the text out of a PDF, page by page, and copy it or save it as .txt.
- EPUB to PDFTurn an EPUB ebook into a PDF, one chapter per new page.
- Merge PDFCombine several PDFs into a single file, in page order you choose.
- PDF to JPGTurn each page of a PDF into a JPG image at the resolution you pick.