- Open it free: LibreOffice Draw opens many .pub files. Layouts can shift.
- Keep the layout: convert the file to PDF. You can open a .pub file online here, and Publisher to PDF is free, 3 files a day.
- Not a document at all? If the file is plain text starting with
ssh-, it is an SSH public key.
A .pub file is usually a Microsoft Publisher document, such as a flyer, newsletter or brochure. Less often it is an SSH public key made by ssh-keygen. To open a Publisher file without Publisher, use LibreOffice Draw or convert the file to PDF.
What a .pub file is
Most .pub files are made by Microsoft Publisher, a desktop publishing program. They hold pages, text boxes, pictures and fonts in one file. Schools, churches, small shops and offices used them for flyers, cards and newsletters.
The other meaning is a developer one. When you run ssh-keygen, it writes a private key and a public key. The public one ends in .pub, for example id_ed25519.pub. It is a short line of text, not a document.
To tell them apart, open the file in a plain text editor like Notepad. A key is readable text that starts with ssh-. A Publisher file looks like random symbols. If it is a key, you can stop here. Paste it where the service asks for your public key.
Three ways to open a Publisher .pub file
| Way | Cost | Best when | Catch |
|---|---|---|---|
| LibreOffice Draw | Free | You want to edit and the layout is simple | Import quality varies |
| Convert to PDF | Free for 3 files a day | You only need to read or print it | You can't edit the PDF easily |
| FileRewind | See below | You have many files or odd layouts | Needs an upload |
1. LibreOffice Draw (free)
LibreOffice is a free office suite for Windows, Mac and Linux. Its Draw app can import many .pub files.
- Install LibreOffice.
- Open Draw.
- Choose File, Open and pick your .pub file.
- Check the pages. Fonts, spacing and text boxes may move.
- Export to PDF if you only need to share it.
It works best on simple files. Complex layouts with unusual fonts often come out changed.
2. Convert it to PDF
A PDF looks the same on every device and opens in any browser. Use this when you only need to read, print or send the file. You can't change the text easily afterwards.
3. Use FileRewind
Upload the file on the open a .pub file online page and pick a format. Publisher to PDF is free, 3 files a day. Other formats cost $4.99 per file, and you pay only after the conversion works. Have a whole folder? The Archive plan is $19 one time for up to 500 files in a zip. Pro is $29 a month for 100 files, and you can cancel any time.
Conversion is not always perfect. Check the result before you delete the original.
Which output to pick: PDF, Word or image
- PDF: best for reading, printing and sharing. It keeps all pages.
- Word (.docx): best when you need to edit the text. We turn the file into a PDF first, then import it. Text boxes become editable frames, and the layout may shift. See Publisher to Word.
- PNG or JPG: only the first page is exported. Use PDF for multi-page files.
Other targets are SVG and ODG. Details are on the Publisher to PDF page.
Why renaming .pub to .docx does not work
Changing the ending does not change what is inside. A .docx file is a different format. Word will say the file is corrupt, or open a page of symbols. You have to convert the file, not rename it.
Is it safe to upload a .pub file?
Any online converter means sending your file to a server. FileRewind deletes uploaded files after 1 hour. If the document is private, use LibreOffice on your own computer instead. It never leaves your machine.
Looking for a program to replace Publisher for new work? See our guide to Microsoft Publisher alternatives.
Questions
Can I open a .pub file on a Mac or phone?
Not with Publisher, which is a Windows program. On a Mac, LibreOffice can open many .pub files. On a phone, the easiest way is to convert the file to PDF and open the PDF. There is also a guide to opening Publisher files on a Mac.
Is a .pub file the same as a PDF?
No. A .pub file is an editable Publisher document. A PDF is a fixed copy that looks the same everywhere. You can make a PDF from a .pub file, but not the other way around.
Can I edit the file afterwards?
Yes, with limits. LibreOffice Draw lets you edit the text and pictures it imports. A Word conversion gives you editable text, but the layout may shift. A PDF is hard to edit.
What if my .pub file is an SSH key?
Open it in a text editor. The line starting with ssh- is your public key. Copy the whole line into the service that asked for it. It is safe to share. Never share the matching private key file.