TXT to PDF Converter
Convert TXT to PDF online for free — drop a .txt file or paste text, choose the page size, font, size, margins and line spacing, and download a clean PDF with selectable text and page numbers. Runs 100% in your browser.
100% private — your text never leaves your browser. Conversion happens on your device; nothing is uploaded.
Text is laid out as real, selectable PDF text with word-wrap and automatic pages. Western European text uses standard PDF fonts; other scripts (Greek, Cyrillic and more) automatically embed the open-source DejaVu font. Your text never leaves your device.
How to convert TXT to PDF
- Drop a .txt file, or paste your text into the box.
- Choose the page size, font and font size.
- Adjust margins and line spacing, and keep or remove page numbers.
- Click “Convert to PDF” to download your PDF.
What you can use it for
- Turn notes, drafts and plain-text documents into printable PDFs
- Convert logs and code files (monospace) for sharing or archiving
- Make a PDF from text copied out of an email or app
- Prepare plain-text manuscripts for reading on any device
More free tools
Working with PDFs?
Merge, split, compress, protect and convert PDFs with our free, private PDF tools.
See all free PDF tools →Frequently asked questions
How do I convert a TXT file to PDF?
Drop the .txt file in (or paste the text), choose the page size and font, then click “Convert to PDF”. Long text flows onto as many pages as needed.
Is the text in the PDF selectable?
Yes. The PDF contains real text, not an image, so you can search, select and copy it.
Does it support other languages?
Yes for most scripts. Western European text uses standard PDF fonts; text with Greek, Cyrillic and other characters automatically embeds the open-source DejaVu font. Chinese, Japanese and Korean aren't supported yet.
Which font should I use for code or logs?
Choose Monospace so columns and indentation line up exactly as in the original file.
Is my text uploaded?
No. The PDF is created in your browser, so your text never leaves your device.
Which page sizes, margins and font sizes can I choose?
Choose A4 (the default), US Letter, US Legal or A5 for the page, and Sans-serif, Serif or Monospace for the font. Font size runs from 6 to 36 pt (default 11) and margins from 5 to 60 mm on every side (default 20 mm). Line spacing can be Tight (1.15), Normal (1.4, the default), Relaxed (1.8) or Double (2.0). Font sizes and margins typed outside those ranges are adjusted to fit within them.
Which files can I open, and is there a size limit?
Drop or choose a plain-text file such as .txt, .log, .md or .csv, up to 20 MB, or paste text straight into the box. The file is read as UTF-8; if that fails, as UTF-16 when it starts with a byte-order mark, otherwise as Windows-1252. The text appears in the box first, with a live word, line and character count, so you can check or edit it before converting.
Will line breaks, blank lines and indentation be kept?
Yes. Every line break and blank line in your text is kept, and lines too long for the page wrap at word boundaries; a single word longer than the line is split across lines. Spaces at the start of a line are kept, so indentation survives, and each tab becomes four spaces. Wrapped continuation lines start at the left margin. Invisible control characters are removed.
What do the page numbers look like, and can I turn them off?
With Add page numbers ticked (the default), each page gets a grey number centred near the bottom, written as page and total, such as “2 / 5”. It uses the same font as your text at 80% of its size, never below 7 pt, and the text area stops a little higher so your text doesn't run into it. Untick the box for a PDF without numbers.
What will my PDF file be called?
The PDF takes the name of the file you loaded, so notes.txt downloads as notes.pdf. If you only paste text, it's saved as text.pdf. The same name is set as the PDF's document title, and the creator field reads “Made Good Designs — TXT to PDF”. The PDF is generated in your browser and downloads straight to your device.
Do I need to sign up, and is there a watermark?
No sign-up or account is needed: open the page, add your text and click Convert to PDF. The PDF contains only your text and, if you keep them ticked, the page numbers; no logo or watermark is added to the pages. There is no usage counter, so you can convert as many files as you need, one after another.
Why does it say it's loading a Unicode font?
That message appears when your text includes characters beyond Western European, such as Greek or Cyrillic letters. The tool then downloads the matching open-source DejaVu font (sans, serif or mono) and embeds only the characters you use. Only the font file is fetched; your text stays on your device. When it's done, the status line says the Unicode font was embedded. If it fails, refresh the page and try again.