Skip to content
HappyPDFz

TXT to PDF

Open a .txt file, check how it will look, and download it as a PDF with the page size, font, and margins you choose. It all happens on your device.

Spaces, indentation, and line breaks are kept as they are, and long lines wrap to fit the page.

This tool works with the Latin alphabet: letters A–Z with accents (á, ñ, ç, ü…), numbers, and common symbols. Other alphabets, such as Cyrillic, Greek, Arabic, or Chinese, can’t be drawn yet.

You can also type or paste the text below.

Preview of the first page

How to use it

  1. Choose your .txt file, or drag it onto the box. You can also edit the text that appears.
  2. Pick the page size, orientation, margin, font, and text size. The preview updates as you change them.
  3. Press “Convert to PDF” and download the result.

How it works

The text is laid out page by page: long lines wrap at the margin, line breaks and blank lines are kept, and tabs are turned into spaces. A fixed-width font keeps columns aligned.

Files in UTF-8, UTF-16, or Windows-1252 are read correctly, so accents appear as they should.

Good to know

  • Text files up to 2 MB, and PDFs up to 1,000 pages.
  • For now only the Latin alphabet is supported (A–Z with accents, ñ, ç, numbers, and common symbols). If the text has other characters, such as Cyrillic, Greek, Arabic, Chinese, or emoji, the tool tells you which ones, and no PDF is made.
  • Nothing is uploaded: your text is turned into a PDF in your browser. Download the result before closing the page.

Frequently asked questions

Is my text uploaded anywhere?

No. Everything happens in your browser, on your own device. We never receive your text or your files.

Why does it say a character is not supported?

PDF files made here use the standard PDF fonts, which only cover the Latin alphabet. The message names the characters to change or remove. Support for more alphabets may come later.

Which text encodings work?

UTF-8 (with or without BOM), UTF-16, and Windows-1252, the usual ones. The tool detects them by itself.

Are line breaks and indentation kept?

Yes. Blank lines and indentation stay as they are. Lines that are too long wrap at the margin.