Convert TXT to PDF
This is a free TXT to PDF converter: drop a plain text file into the editor and download it as a PDF, with no signup, no watermark and nothing uploaded to a server. It is the quickest fix when a form insists on a PDF and all you have is a .txt file, a log, or an export from another program. Because the editor is a markdown editor, you can also add headings, lists or a table on the way through without learning anything new.
Open the editorHow to convert TXT to PDF
Drop in your text file
Drag a .txt file onto the editor, or open it and paste the contents. Files up to 5 MB are accepted.
Adjust the font and margins
Pick a font family and size, set the margins and line spacing, and choose Letter or A4.
Download the PDF
Click Download PDF. Nothing is uploaded and the file carries no watermark.
What you get
Drag and drop
Drop a .txt or .md file straight onto the editor, up to 5 MB.
No watermark, ever
The PDF contains your text and nothing else — no branding, no trial notice.
Set the typography
Choose the font family, size from 6 to 36pt, line spacing and margins before you export.
How plain text is laid out on the page
A .txt file has no formatting to preserve, so the question is only how the text is flowed onto a page. Blank lines separate paragraphs and each paragraph wraps to the column width set by your margins, which is what you want for prose but not for anything you aligned by hand. If your file is a log, a table of fixed-width columns, or code, switch the font to the monospace option before exporting — a proportional font will destroy column alignment that depended on every character being the same width. For a hard line break inside a paragraph rather than a new paragraph, end the line with two spaces.
Encoding, accents and non-English text
Text files carry no reliable record of their own encoding, which is the usual reason a converted document comes out full of question marks or mojibake. Files are read as UTF-8, the modern default that Notepad, VS Code, macOS and Linux all write. A file saved as legacy ANSI or Windows-1252 with accented characters may come through wrong; the fix is to open it in a text editor and re-save it as UTF-8 before importing. Once the text is in, characters outside the basic Latin set are drawn from embedded fallback fonts chosen per character, so accents, Cyrillic, Greek, CJK, Arabic and Hebrew all render rather than silently turning into the wrong glyph.
Adding structure while you are here
The editor reads markdown, so a plain text file can gain real structure with almost no effort. Putting a # in front of a line makes it a heading, which also means it can appear in an automatically generated table of contents with matching PDF bookmarks. A line starting with a hyphen becomes a bullet; a line starting with '- [ ]' becomes a checkbox. If the text is going to someone else — a submission, a handover, a printed reference — a few minutes of this turns an undifferentiated wall of text into something navigable, and none of it requires leaving the page.
What this does not do
- Files are converted one at a time; there is no bulk or folder conversion.
- Imports are capped at 5 MB per file.
- A .txt file carries no formatting, so nothing about the original layout is recovered — only the text.
- Fixed-width alignment survives only if you select a monospace font before exporting.
Frequently asked questions
- Will my line breaks be preserved?
- Blank lines separate paragraphs, and text wraps to the page width. If you need a hard break inside a paragraph, end the line with two spaces.
- Is there a file size limit?
- Imports are capped at 5 MB, which is far larger than any practical text document. There is no limit on page count.
- Can I convert several files at once?
- Not in one step — import and export them one at a time. Each import starts a new draft, and your previous drafts stay available in this browser.
- Why did my accented characters come out wrong?
- The file was almost certainly saved in a legacy encoding rather than UTF-8. Open it in a text editor, re-save it as UTF-8, and import it again.
- How do I keep columns lined up?
- Choose the monospace font before downloading. Proportional fonts give every character a different width, which breaks any alignment made with spaces.
- Does it work on a phone?
- Yes. The editor, preview and settings are laid out as three tabs on small screens, and conversion runs on the device the same way it does on a desktop.
- Is the converted file uploaded to a server?
- No. The text is read by your browser and the PDF is built there. Nothing is transmitted, logged or stored anywhere.
Related converters
Convert markdown to PDF
Convert Markdown to PDF in your browser. Tables, syntax-highlighted code blocks, task lists and headings all render. Free, no account, nothing uploaded.
Turn notes into a PDF
Turn meeting notes, lecture notes or a to-do list into a formatted PDF. Checkboxes, headings and tables all render. Free and private.
Convert code to PDF
Turn source code into a PDF with syntax highlighting and indentation intact. Line-safe page breaks, monospace fonts, no signup and nothing uploaded.