What is the PUB file format?
Files with the .pub extension are document files created and supported by Microsoft Publisher, one of the Microsoft Office suite applications. .pub files are rich-layout documents capable of containing text, raster and vector images, diagrams, charts, and embedded metadata. They are commonly used to produce publications such as brochures, posters, postcards, and leaflets.
.pub files are also used to create templates for websites and email messages. The format is proprietary, based on the OLE2 Compound File Binary container - the same low-level structure shared with legacy .doc and .xls files - and is supported by only a limited number of applications. This can make sharing .pub documents problematic, since a recipient generally needs a compatible program to open and view the content correctly. The following approaches can help:
- Export the finished document to HTML format. This makes the content viewable in any standard web browser; the recipient cannot edit the layout, but the visual result is reliably accessible.
- If the project is largely text-based with few complex layout elements, saving or converting it to a .DOCX file is an option. Text formatting is largely preserved, though detailed page layout and graphic elements may not transfer cleanly.
- Export to PDF to preserve the exact visual layout for distribution without requiring Publisher on the recipient's machine.
- If editing the file is necessary, the recipient must install one of the programs that provide full support for this format - such as Microsoft Publisher itself or LibreOffice Draw, which offers partial
.pubimport.
Security & safety
RISK: MEDIUMLike other legacy OLE Office binaries, .pub can contain VBA macros and is a possible malware carrier, so don't enable macros on an unexpected Publisher file. The bigger practical risk now is data loss: with Publisher being retired after October 2026, files left only in .pub may become hard to open - convert important PUB files to PDF while you still can. When using online converters, avoid uploading confidential documents.
Format details
in a nutshellPrograms that open PUB files
Technical details
deep spec| Container format | OLE2 Compound File Binary (CFB) - the same low-level wrapper used by legacy `.doc`, `.xls`, and `.ppt` files |
| MIME type | `application/x-mspublisher` |
| File signature | `D0 CF 11 E0 A1 B1 1A E1` (hex, offset 0) - generic OLE2 CFB magic bytes; Publisher identity confirmed via internal document streams |
| Publisher identification streams | Quill stream (text and layout engine data) and Escher drawing stream (vector graphics records based on the Escher protocol) |
| Encoding | Proprietary binary; not XML-based or human-readable |
| Platform support | Windows only natively; no official macOS or Linux release of Microsoft Publisher; LibreOffice Draw provides partial cross-platform import |
| Page layout model | Multi-page documents with master pages, snap guides, column grids, and linked text frames |
| Image embedding | Raster images (BMP, JPEG, PNG, GIF, TIFF) and vector graphics (WMF, EMF) embedded within compound file streams |
| Color models | RGB for screen output and CMYK for print production |
| Typography features | Kerning, tracking, drop caps, hyphenation, and text wrapping around objects |
| Native export formats | PDF, XPS, HTML, JPEG, PNG, TIFF, and DOCX via Microsoft Publisher's built-in export |
| File structure | Single monolithic binary file; no ZIP-based bundle or folder package (unlike `.idml` or `.pages` formats) |
| Released | 1991 (Microsoft Publisher 1.0); modern OLE-based .pub since the late 1990s |
| Specification | learn.microsoft.com |
PUB conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about PUB files.