.PUB File Extension
Publisher Document
Developer | Microsoft |
Popularity |
3.7 | 495 Votes |
What is a PUB file?
A PUB file is a document created by Microsoft Publisher, a desktop publishing program used to create professional documents and marketing materials. It contains a page layout and design elements, such as text, shapes, and vector or raster graphics. Users often save brochures, newsletters, flyers, invitations, and posters as PUB files.
More Information
Casual and professional designers primarily use Microsoft Publisher to design marketing materials and other documents. The software is only available for Windows as part of the Microsoft 365 subscription service or as a one-time, standalone purchase.
When you save a document in Publisher, the program creates a PUB file to store the document's contents. After saving the PUB file, you can close and re-open the PUB file to continue editing the document at a later time.
NOTE: Besides saving page layouts as PUB files, advanced Publisher users may also create PUB files to integrate and store data sources for mail merges and generating data sheets.
How to open a PUB file
You can open a PUB file with Microsoft Publisher by selecting File → Open... from the program's menu bar, and then navigate to and open your PUB file.
You can also open PUB files with several other desktop publishing applications. For example, you can open PUB files with LibreOffice Draw (included with LibreOffice) and CorelDRA
How to convert a PUB file
Microsoft Publisher can convert PUB files to several file types, including the following formats:
- .PDF - Portable Document Format
- .JPEG - JPEG Image
- .PNG - Portable Network Graphic
- .TIF - Tagged Image File Format
- .EMF - Enhanced Windows Metafile
- .WMF - Windows Metafile
- .BMP - Bitmap Image
- .EPS - Encapsulated PostScript
- .PS - PostScript File
- .DOCX - Microsoft Word Document
- .RTF - Rich Text Format
- .TXT - Plain Text File
- .HTML - Hypertext Markup Language
- .XPS - XML Paper Specification
NOTE: When converting to a DOCX file, the formatting will be preserved, but not the graphics or columns included in the PUB file.
Programs that open PUB files
Public Key File
Developer | N/A |
Popularity |
3.1 | 46 Votes |
A PUB file may also be a public key used in public-key cryptography. It contains encrypted text used to encrypt and decrypt data, alongside a corresponding private key. Programs like ssh-keygen and PuTTY can create PUB files (and corresponding private keys).
More Information
Public-key cryptography is a common form of cryptography that uses pairs of "keys," which are strings of encrypted text created using key generation programs. Key pairs consist of a public key, which is meant to be shared with others, and a private key, which is not meant to be shared.
Public keys created by programs like ssh-keygen and PuTTY are saved as PUB files. For example, ssh-keygen creates keys named id_rsa.pub and saves them in the ~/.ssh directory by default.
PUB files created using OpenSSH, such as those created by ssh-keygen, are used primarily to authenticate a user's credentials when that user logs in to a server. In these cases, the PUB file is meant to be stored on the server in question (often in a .ssh/authorized_keys directory), while the user retains their private key.
PuTTY PUB files
PuTTY saves PUB files in a multi-line format that OpenSSH may not recognize by default. To use PUB files saved in this format with OpenSSH, remove the BEGIN, Comment:, and END lines, as well as any newlines. Then, add ssh-rsa to the beginning of the file.
How to open a PUB file
You can open a PUB file and view the text it contains in any text editor, such as Microsoft Notepad (Windows), Apple TextEdit (Mac), or GitHub Atom (multiplatform).