Resources » How to Convert PDFs » How to Convert Text to PDF

What Is a TXT File?

What is a TXT file? A TXT file is called a plain text file. You can open one in a plain text editor like Microsoft Notepad or Notepad++ on Windows, or TextEdit on a Mac. These editors are free, and Notepad and TextEdit come preinstalled, so you can open a TXT file on almost any computer.

screenshot showing text to pdf

If you open a TXT in one of these programs, you’ll see information displayed without formatting like italics, bolding, or font choices. It will display information line-by-line in plain text. Ergo, the name “plain text file.”

TXT files are small, and they often come bundled with software to hold instructions or details about that program. TXT files are not only easy for you to read, but they’re also easy for computers to read. Sometimes a .txt may contain configuration settings for a piece of software. Changing parameters within the .txt will then change how the software operates. 

Now that you know what a TXT file is and where you’ll find one, here’s how to convert it to a PDF.

Text to PDF Converter Using Notepad (Windows)

If you want your TXT file converted to a PDF without any formatting settings, you can do this in Windows Notepad using the built-in Microsoft Print to PDF option (available in Windows 10 and 11).

  1. Open your TXT file in Notepad, then select File > Print (or press Ctrl + P). 
  1. Select Microsoft Print to PDF and adjust your page settings as necessary.
  1. Click Print. You can then choose where you’d like your converted PDF to be located on your PC. The resulting PDF keeps the plain text look, with page breaks and margins added.

TXT to PDF with Document Editors (Offline)

Most document editors can open TXT files, so you can use a program like Microsoft Word, Google Docs or LibreOffice Writer to open and edit one offline. For example, we’ve uploaded into Google Docs this software license that was stored as a .txt file. 

As you can see, Google Docs can display the information within the file as well as convert it into a Google Doc. If you convert your .txt to a Google Doc or .doc/.docx file (Microsoft Word format), the software will add formatting like page breaks, margins, and a default font, so it may look different from the original TXT file. It will look significantly different from the original .txt file.

From there, select File > Download > PDF Document (.pdf). For more detail, see our Google Doc to PDF guide online. Essentially, you’ll save the Google Doc as a separate PDF.

You’d be surprised how many different ways you can open TXT files. Try opening it with a document editor of your choice to see how the formatting settings may change. Again, if you’re unhappy with the result, you can always create the PDF directly with Notepad.