File types / Documents
.docx file
Word document (Office Open XML)
- Extensions
- .docx, .docm
- MIME type
application/vnd.openxmlformats-officedocument.wordprocessingml.document- Signature
50 4B 03 04(PK..)at byte offset 0- Safety
- Open with care
What is a .docx file?
DOCX is the standard Microsoft Word format. Internally it is a ZIP archive of XML files, which is why a DOCX begins with the same PK signature as any ZIP.
You can tell a DOCX from a plain ZIP by looking inside: it contains [Content_Types].xml and a word/ folder. The .docm variant is identical but is allowed to hold macros.
Used for: Letters, reports and anything written in Word.
How can I tell if a file is really a DOCX?
Read its first bytes rather than trusting the name. A genuine DOCX file has the signature 50 4B 03 04 (PK..) at byte offset 0. The File Identity tool reads these bytes in your browser, so the file is never uploaded.
To compare the name against the content, use Validate Extension. To see the raw bytes, use Safe File Preview.
Is a .docx file safe to open?
The DOCX format cannot run macros, but .docm can, and malicious documents are a common way to deliver malware. Be wary of macro prompts from unknown senders.
Easy to confuse
The old .doc format is completely different: a binary format, not a ZIP. See the DOC page.