FILE UPLOAD

How to convert a TXT file to PDF

Turn a TXT file into a readable PDF. Learn how to upload it, fix encoding errors, choose a page layout, review the preview and download your finished file.

Start with the original text file

A TXT file contains plain text. It carries the words and line breaks, but it does not describe a printed page. The converter adds paper size, margins and a font so you can share those words as a PDF.

Keep the original TXT file. This website reads it in your browser and leaves the file itself unchanged. It accepts one file at a time, up to 1 MB and 200,000 characters. The finished document can have at most 100 pages. A large file may reach the page limit before the character limit.

Upload, check and export

Open the converter and choose Upload TXT. On a computer, you can also drop one TXT file into the text area. On a phone, use the file picker or copy the text from your notes app.

  1. Choose a file whose name ends in .txt. Wait for its text to appear in the editor.
  2. Read the beginning and end of the imported text. Check accented letters, punctuation and blank lines.
  3. Choose A4 or Letter, then select a font, size and margins. Start with 12 pt and Standard margins.
  4. Press Create PDF preview. Use the page arrows to check the result, including the last page.
  5. Select Download PDF. Open the saved file in a PDF reader and confirm that you can search for a distinctive phrase.

Try this sample

Meeting notes

Date: 4 October 2026
Topic: Autumn workshop

Next steps:
    Prepare the room
    Print the handout
    Confirm the schedule

Fix an encoding error without losing your work

This version accepts valid UTF-8, with or without a byte-order mark. It also reads UTF-16 little-endian or big-endian files when they include the matching byte-order mark. It does not guess legacy encodings such as Windows-1252.

If a file cannot be decoded, the tool shows an error and keeps the text already in the editor. Reopen the original in a text editor, choose Save As and select UTF-8. Renaming a Word document or PDF to .txt does not turn it into a text file. A binary file, broken byte sequence or NUL character will be rejected.

Decoding and font support are separate checks. A correctly encoded file can still contain a character this version cannot render. In that case, the error identifies examples by line and column. Use the character support guide to decide whether this tool fits your document.

Know what carries into the PDF

Paragraphs and blank lines are kept. Tabs become spaces at four-column tab stops. Long lines wrap to the available width; an unbroken URL can split across lines. The PDF uses selectable text rather than a screenshot of the editor.

Bold, headings from a word processor, images and links with hidden destinations are not preserved. Text that looks like Markdown stays literal text: a pair of asterisks is not converted into bold styling. If you need rich formatting, use a document editor with PDF export.

After an edit or a settings change, create a fresh preview. The previous download disappears so it cannot be mistaken for the updated document. Keep your original file or copy the text before closing or refreshing the tab; the website does not save a draft.

Sources and related checks

The settings, supported characters and size limits above describe this converter. For the underlying technical behavior, see:

Try it in the converter