Which document format is this, and what opens it?
Start with the filename extension: .docx usually opens in Microsoft Word, .odt in LibreOffice Writer or Word, .pages in Apple Pages, .wpd in WordPerfect, and .pub in Microsoft Publisher or a compatible conversion tool. If the extension is hidden or unfamiliar, reveal the complete filename and use the format groups below before choosing an app; changing the letters after the period does not convert the file. For problems that affect several file types rather than one particular format, return to the PDF compatibility guide.
The extension identifies the document family and its likely opening app
A document format defines how text, styles, images, page geometry and other information are stored. The visible extension is normally the quickest way to identify that format, but the extension does not guarantee that every application will reproduce every feature correctly.
The first decision is whether the file is an editable word-processing document, a page-layout publication or a fixed-layout delivery copy. That distinction matters more than the icon shown beside the file.
| Extension | Document format | Best first app to try | What to expect |
|---|---|---|---|
| .docx | Microsoft Word Open XML document | Microsoft Word | Widely supported editable document; other office apps may alter complex layout or features |
| .doc | Legacy Microsoft Word binary document | Desktop Microsoft Word | Older editable format; conversion to .docx may reveal compatibility changes |
| .docm | Macro-enabled Word document | Desktop Microsoft Word | Contains an editable document and may contain VBA macro code |
| .odt | OpenDocument Text | LibreOffice Writer or Microsoft Word | Standardized editable format; features can change when moved between office suites |
| .rtf | Rich Text Format | Word, LibreOffice Writer or Apple Pages | Carries text and common formatting but fewer advanced document features |
| .txt | Plain-text document | Any text editor | Contains characters but no page layout, styles, embedded images or rich formatting |
| .pages | Apple Pages document | Apple Pages | May be a word-processing or page-layout document |
| .wpd | WordPerfect document | Corel WordPerfect | Legacy proprietary document; LibreOffice can import many WPD files |
| .wps | Microsoft Works or another WPS-associated document | A compatible legacy importer, often LibreOffice Writer | The extension alone may not identify the creating application with certainty |
| .pub | Microsoft Publisher publication | A working perpetual copy of Microsoft Publisher or a specialist importer | Page-layout format with limited support outside its native application |
| Portable Document Format | A PDF viewer or editor | Fixed-layout copy intended to preserve appearance rather than the original authoring structure |
Word-processing formats are designed for text that reflows
Word-processing documents treat the main text as a continuous story. Adding a paragraph near the beginning usually pushes later text onto another page. Headers, footnotes, comments, tracked changes and automatic tables of contents may be stored as document features rather than as objects at fixed coordinates.
.docx, .doc, .odt, .rtf, .wpd and many .pages files belong to this broad group. They are not interchangeable, even when they display the same words. Each format can represent a different set of styles, review tools, fields, equations, embedded objects and automation features.
Microsoft Word is the native choice for .docx, .doc and .docm. LibreOffice Writer can open a broad range of Word, OpenDocument and legacy word-processing formats, including .wpd and .wps. Apple Pages can open its own documents as well as common Word, RTF and plain-text files. Import support does not promise perfect fidelity: an app may recover the text while changing fonts, page breaks, positioned objects or unsupported features.
Plain-text files are the exception. A .txt file does not contain a designed page, even if its contents look aligned in one editor. Spacing may depend on the font, and any headings or lists are characters rather than structural document styles.
Page-layout formats position objects on a page
A page-layout document behaves more like a canvas. Text commonly sits in frames, and images, shapes and text boxes are positioned in relation to the page. Newsletters, flyers, labels, brochures and posters often use this model because their arrangement matters as much as their reading order.
Microsoft Publisher .pub files are page-layout publications. Apple Pages can also create page-layout documents, so two files with the same .pages extension may behave differently: one may have flowing body text, while another may consist entirely of positioned objects.
Opening a page-layout file in a word processor can produce a document that contains the words but not the original design. Text boxes may move, columns may become ordinary paragraphs, linked frames may separate, and items placed near a page edge may be clipped. If the original appearance matters, first open the file in its native application and export a fixed-layout copy.
Fixed-layout formats preserve the delivered page
PDF is a fixed-layout format. It records pages for consistent viewing, sharing or printing rather than preserving every feature of the application that created the document. A PDF may contain selectable text, images, forms, annotations and accessibility information, but it is not automatically equivalent to the source Word, Pages, Publisher or WordPerfect file.
A PDF viewer is therefore the correct first app when you only need to read or print the file. A PDF editor or converter is needed when you must change content or recover it into an editable format. Conversion can reconstruct paragraphs and images, but it cannot always recover the original styles, text-frame links, formulas or application-specific features.
PDF/A is an archival profile within the PDF family rather than a separate filename extension. A PDF/A file still normally ends in .pdf and opens in ordinary PDF software, although an editor may report that archival restrictions or conformance rules apply.
Modern office documents may be packages containing many parts
A .docx file is not one uninterrupted stream of formatted text. Office Open XML stores the document as a ZIP package containing separate parts for content, styles, relationships, properties and embedded resources. OpenDocument files such as .odt also use a ZIP-based package containing XML and associated files.
This explains why changing .docx to .zip on a disposable copy may expose folders and XML files. It does not mean that an ordinary ZIP archive is a Word document, and it does not repair a damaged file. The package needs the correct internal parts and relationships before a compatible word processor can interpret it.
Package-based formats can be standardized and supported by several applications while still producing different results. One app may understand the basic paragraphs and images but not a particular field, content control, positioning rule or review feature. The file can therefore open successfully and still require a visual and functional check.
How to confirm the format when the filename or icon is misleading
A document’s icon shows which application your computer currently associates with it. It does not prove which application created the document or what data the file actually contains. A .docx file might display a LibreOffice icon, for example, if LibreOffice is the default app on that computer.
Use these checks before installing software or attempting a conversion:
- Reveal the complete extension. In Windows File Explorer, select View, then Show, then File name extensions. On a Mac, select the file and choose File > Get Info, or enable Show all filename extensions in Finder settings.
- Read the final extension. A name such as report.final.docx is a Word document because .docx is the final extension. Earlier periods are simply part of the filename.
- Do not rely on the icon. Right-clicking or Control-clicking the file and checking Open with can reveal other installed applications, but the list reflects software associations rather than guaranteed compatibility.
- Check where the file came from. A document exported from Word is more likely to be a genuine Word file than an unexplained attachment whose extension was manually changed. Keep an untouched copy if the source is uncertain.
- Compare the purpose with the format. A multi-page report is plausibly a word-processing file. A brochure made of movable text boxes is more likely to be a page-layout publication. A final proof intended only for printing is likely to be a PDF.
- Try the native or closest compatible application first. Use Word for Word files, Pages for .pages, WordPerfect for .wpd and a PDF application for .pdf. Use a broad importer such as LibreOffice Writer when the native software is unavailable.
- Distinguish an unsupported format from a damaged file. If one application rejects a file but another opens it, the first application may lack the required import filter. If several appropriate applications reject it, the file may be incomplete, password-protected, misnamed or corrupted.
- Check whether opening and editing are separate capabilities. A mobile or browser-based app may display a format but require conversion before editing it. Desktop software often supports more legacy formats and document features.
Renaming letter.wpd to letter.docx changes only the name. The internal WordPerfect data does not become Office Open XML, so Word may report that the extension does not match the content or that the file is damaged. Genuine conversion requires an application that can read the source format and write the destination format.
Open the original safely, then convert a copy for the job
Choose the next action according to what you need from the file. Reading, editing, recovering content, preserving a layout and creating an archival copy are different jobs, and one output format rarely handles all of them equally well.
- Keep an untouched original. Duplicate the file before testing importers, repair options or conversions. This is especially important for old or proprietary formats that may be difficult to recreate.
- Open it in the native application when possible. Native software normally provides the best chance of retaining application-specific fields, page objects, comments, automation and layout rules. If that software is unavailable, use a compatible importer and expect to inspect the result.
- Decide whether you need appearance or editability. Use PDF when the immediate goal is dependable viewing, approval, printing or distribution. Use .docx or .odt when another person needs to continue editing flowing text. Keep the native file as well when the document depends on a page-layout application.
- Save the converted result as a new file. Do not overwrite the only usable copy. Include the destination format in the filename if several versions will sit in the same folder, such as newsletter-publisher-original.pub and newsletter-sharing-copy.pdf.
- Check the content before trusting the conversion. Compare page count, headings, tables, images, fonts, footnotes, headers, page numbers and section breaks. For page-layout files, also inspect text boxes, columns, object positions, bleed areas and anything close to a page edge.
- Test editable features separately from appearance. A document can look correct while fields, comments, tracked changes, links or formulas no longer work. Conversely, all the text may remain editable even though line wrapping and page breaks have changed.
- Convert legacy and proprietary files while a suitable reader is available. For .wpd, .wps, .pub and uncommon historical formats, keep the original and create at least one broadly readable copy. Where continued editing matters, also create an editable modern copy and inspect it carefully.
- Use PDF as a delivery copy, not automatically as the only master. PDF is useful for stabilizing pages, but later conversion back to Word or another editable format may reconstruct rather than restore the source document. Preserve the editable original whenever possible.
For Word and OpenDocument files, conversion is easier but still deserves checking. Microsoft documents that Word can open and save .odt, while also warning that differences between the formats can affect formatting and unsupported features. The safest collaborative workflow is to agree on one editable format, avoid repeatedly converting the same file back and forth, and produce a checked PDF when the final appearance has been approved.
Source: File-extension identification and the difference between renaming and converting from Common file name extensions in Windows, Microsoft Support; Word format names and capabilities from File format reference for Word, Excel, and PowerPoint, Microsoft Learn; Office Open XML package structure from About the Open XML SDK for Office, Microsoft Learn; OpenDocument package structure from Open Document Format for Office Applications Version 1.3, Part 2: Packages, OASIS; cross-format import and export support from File Conversion Filter Names, LibreOffice Help; Pages document compatibility from Open or close a document in Pages on Mac, Apple Support; Publisher availability and retirement dates from Microsoft Publisher will no longer be supported after October 2026, Microsoft Support; and format-identification principles from Format Descriptions: Explanation of Terms, Library of Congress. Page last checked 2 October 2026.