Explainer

What is a DOCX file? A plain-English explanation

Updated · 6 min read

The short answer

A DOCX file is a word-processor document saved in the Office Open XML format. Inside it is a zipped bundle of text and settings files, which is why many programs can open it. You can open one in Microsoft Word, LibreOffice, Google Docs, or in your browser with Wrdio.

Try it right here

This is the editor you will use. Click it to open a blank page.

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:

PartWhat it holds
word/document.xmlYour text and its structure (about 4.8 KB for our two pages)
word/styles.xmlThe look of headings, body text and lists
word/media/Pictures you inserted
word/header1.xml, footer1.xmlHeader and footer text
word/numbering.xmlBullet and number list settings
docProps/Properties such as the author and a small preview
[Content_Types].xmlA 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?

ProgramWhere it runsCostDoes the file leave your device?
Microsoft WordComputer, phone, browserPaid, with a limited free web versionDesktop: no. Web: stored in your account
LibreOffice WriterComputerFreeNo
Google DocsBrowser, phoneFree with an accountYes: stored in your Google account
Apple PagesMac, iPhone, iPadFree on Apple devicesNo, unless saved to iCloud
WrdioBrowserFree, no accountNo

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.

Questions people ask

What does DOCX stand for?

DOCX is short for Document, with the X standing for XML, the markup language used inside the file. It is the format Microsoft Word has used since 2007.

Is a DOCX file the same as a DOC file?

No. DOC is the older format and DOCX is the newer one. DOCX files are usually smaller, less likely to be damaged beyond repair and easier for other programs to read.

What program opens a DOCX file?

Microsoft Word, LibreOffice Writer, Google Docs, WPS Office, Apple Pages and browser tools such as Wrdio can all open DOCX files.

Can a DOCX file contain a virus?

A DOCX file cannot contain macros: Microsoft says only files whose extension ends in m, such as .docm, can. Any document can still link to harmful sites, so treat unknown files with care.

Is DOCX an open standard?

Yes. The format is described by the Office Open XML specification, published as ECMA-376 and also as ISO/IEC 29500.

How can I see inside a DOCX?

Make a copy, rename it to end in .zip, and open it. The text is in word/document.xml, and pictures are in word/media.

What is the difference between DOCX, DOCM and DOTX?

.docx is a normal document, .docm is a document that can contain macros, and .dotx is a template. Wrdio opens .docx only.

Keep reading

All guides

More in Open and view Word files

See all guides in this topic