You have seen the letters at the end of a file name: report.docx, cv.docx, notes.docx. They tell your computer which program should open the file. This guide explains what is behind those letters, in words that do not need a computer science degree.
What is a DOCX file, in short?
Microsoft introduced the DOCX format with Word 2007. It replaced the older DOC format and is defined by the Office Open XML specification, published as ECMA-376 and as ISO/IEC 29500. Because the design is published, anyone can build a program that reads it. That is why a file made in one program usually opens in another.
What is inside a DOCX file?
A DOCX is really a small folder that has been zipped into one file. We opened a real two-page test document this way. It held 20 parts. The main ones:
| Part | What it holds |
|---|---|
word/document.xml | Your text and its structure (about 4.8 KB for our two pages) |
word/styles.xml | The look of headings, body text and lists |
word/media/ | Pictures you inserted |
word/header1.xml, footer1.xml | Header and footer text |
word/numbering.xml | Bullet and number list settings |
docProps/ | Properties such as the author and a small preview |
[Content_Types].xml | A map of what each part is |
The exact list varies by program. Our test file came from a Python library, not Word, so a Word-made file may have different parts and sizes. You can look inside any DOCX the same way: copy it, rename the copy to end in .zip, and open it. Because the pieces are separate, a program can read just the text, or just the pictures, without having to understand everything else. That also keeps files small, and it is why text can sometimes be rescued from a damaged file (see how to fix a DOCX that will not open).
Why can a DOCX look different in different programs?
The file says what the document contains, not exactly how it must be drawn. Each program makes its own choices about spacing, fonts and line breaks. If your document uses a font that is not installed on the computer, a substitute is used and the text can reflow. Simple documents look almost the same everywhere. Complicated ones, with text boxes, columns or tracked changes, are where small differences appear.
If the exact look matters, send a PDF. We cover how in saving a Word document as a PDF without breaking it.
Which programs open DOCX files?
| Program | Where it runs | Cost | Does the file leave your device? |
|---|---|---|---|
| Microsoft Word | Computer, phone, browser | Paid, with a limited free web version | Desktop: no. Web: stored in your account |
| LibreOffice Writer | Computer | Free | No |
| Google Docs | Browser, phone | Free with an account | Yes: stored in your Google account |
| Apple Pages | Mac, iPhone, iPad | Free on Apple devices | No, unless saved to iCloud |
| Wrdio | Browser | Free, no account | No |
What are DOCX, DOC, DOCM and DOTX?
Microsoft lists them on its page about Open XML formats and file name extensions:
- .docx is a normal document.
- .doc is the older format. See DOCX vs DOC.
- .docm is a document that can contain macros, small programs that run inside it. Do not enable macros in files from people you do not know.
- .dotx is a template you start new documents from, and .dotm is a template that can contain macros.
How do I open one right now?
The quickest way, with nothing to install, is to drop the file onto the Wrdio home page. It reads the file in your browser tab and does not upload it. Wrdio opens .docx only; it does not open .docm, .dotx or the old .doc. For more routes, see how to open a DOCX without Word, and if it will not open, how to fix a DOCX that will not open.