What Is a .DOCX File? (.docx, .docm, .dotx)

A .docx file is a Microsoft Word document saved in the Office Open XML format used by Word 2007 and later. It stores text, formatting, images, tables, comments and tracked changes in a compressed ZIP package, and it is the default format for editable documents in Word, Google Docs exports and most office suites.

Extension
.docx, .docm, .dotx
Full name
Microsoft Word Open XML Document
Type
Document file
MIME type
application/vnd.openxmlformats-officedocument.wordprocessingml.document
Developed by
Microsoft (Office Open XML, standardized as ECMA-376 and ISO/IEC 29500)

About DOCX files

Despite the single extension, a .docx is really a ZIP archive full of XML files plus a media folder for images. That is why it is much smaller than the old binary .doc for the same content, and why renaming one to .zip lets you extract the original embedded photos. Text-only documents are usually a few dozen kilobytes; size grows almost entirely with embedded images.

The format has siblings worth knowing. A .docm is the same thing with macros enabled, and a .dotx is a template. Plain .docx files cannot contain VBA macros, which is a useful security signal: a document from a stranger that insists you "enable content" and arrives as .docm or old .doc deserves suspicion.

Compatibility is excellent but not perfect. Google Docs, Apple Pages, LibreOffice Writer and WPS all open .docx, yet complex layouts, custom fonts, text boxes and equations can shift slightly between apps. If the reader only needs to view the document and not edit it, send a PDF instead.

What DOCX files are used for

  • Letters, reports, essays and theses
  • Résumés and cover letters you still need to edit
  • Contracts and drafts reviewed with Track Changes and comments
  • Templates for recurring documents (.dotx)

How to open a .docx file

Windows

Microsoft Word opens it natively. Without Office, upload it to Word for the web with a free Microsoft account, or install LibreOffice Writer.

Mac

Pages and TextEdit both open .docx files (TextEdit drops complex layout), and Microsoft Word for Mac and LibreOffice are full alternatives. Quick Look previews it with Space.

iPhone and iPad

Tap it in the Files app for a preview, or open it in Pages or the Microsoft Word app to edit.

Android

Open it with the Microsoft Word app or Google Docs; Files by Google can hand it to either.

Online / any browser

Upload it to Google Drive and choose Open with > Google Docs, or open it in Word for the web from OneDrive.

How to convert a .docx file

To make a PDF, use File > Save As (or Export) > PDF in Word, Pages or LibreOffice, or File > Download > PDF in Google Docs.

To share with someone on an old Word version, save as Word 97-2003 Document (.doc); to share with LibreOffice users, .odt is also available under Save As.

Changing the extension from .docx to .pdf or .doc does not convert anything; always use Save As or Export.

Need a Word file from a PDF or a photo? PDF to Word and JPG to Word make an editable .docx in your browser, free and without uploading.

Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.

Naming and renaming DOCX files

  • Use a version suffix such as _v3 or _2026-03-14 rather than "final", "final2" and "final-FINAL"; Word does not track versions in the file name for you.
  • When sending a document for review, add your initials or a status, for example proposal_acme_v2_BY-comments.docx, so returned copies do not overwrite each other.
  • Word suggests the first line of the document as the file name, which often produces names like "Dear Sir.docx". File Renamer AI can rename a folder of documents based on what they actually contain.

Renaming lots of .docx files? See how to rename docx files with ai, use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.

Related file types

Frequently Asked Questions

What is the difference between .doc and .docx?

.doc is the binary format used by Word 97 to 2003, while .docx is the XML-based ZIP format introduced with Word 2007. .docx files are smaller, more robust and cannot contain macros; every modern Word version opens both.

How do I open a .docx file without Microsoft Word?

Use Google Docs, Word for the web (free with a Microsoft account), LibreOffice Writer, or on a Mac, Pages or TextEdit.

What is a .docm file?

It is a Word document with macros enabled. Only enable its macros if you trust the sender, because macros can run code on your computer.

Can I recover images from a .docx file?

Yes. Make a copy, rename the copy to .zip, extract it, and the original images are in the word/media folder.

More document file extensions · all file extensions