Legacy File Converter logoLegacy File Converter
History Lesson8 min read

History Lesson: What Is a .docx File? A ZIP of XML That Word 2007 Made the Default

Word’s default document since 2007 — a ZIP package of XML parts that grew out of Microsoft’s early-2000s XML experiments and became Ecma-376 and ISO/IEC 29500 after a contested standards fight.

·By the Legacy File Converter team
A cream document page with a zipper seam opening to reveal teal and amber part cards beside a dim old binary block, no logos

TL;DR

A .docx file is a ZIP package of XML parts: the Office Open XML format that Word 2007 made its default in place of the binary .doc. Its first bytes are PK, the ZIP signature, and inside sit text files such as word/document.xml, which holds the body text. Microsoft announced the format for standardization in November 2005, Ecma International approved it as Ecma-376 on 7 December 2006, and ISO and IEC published it as ISO/IEC 29500 in November 2008 after a contested vote. Legacy File Converter converts .docx locally on Windows to formats such as PDF, Markdown, and HTML; nothing is uploaded.

What is inside a .docx file?

A .docx file is a ZIP archive wearing a different extension. Open one in a hex viewer — a program that shows a file’s raw bytes — and the first two characters are PK, the initials of Phil Katz, who created the ZIP format at PKWARE; the full signature is the four bytes 50 4B 03 04. That is why any ZIP tool can list a .docx, and why Microsoft’s developer documentation tells programmers to rename the extension from .docx to .zip to see the parts inside.

The standard calls each file in the archive a part, and its packaging rules the Open Packaging Conventions (OPC). Ecma’s overview describes a minimal Word document as three parts: [Content_Types].xml, which says what type each part is; _rels/.rels, which says how the package connects to its main document; and the main document part, normally word/document.xml. Real documents add parts for styles, headers, footers, footnotes, comments, and settings, and pictures sit in the package as ordinary image files.

In document.xml the structure is plain. A body holds paragraphs (w:p), a paragraph holds runs (w:r) — regions of text that share the same formatting — and a run holds the text itself (w:t). The w: prefix marks the WordprocessingML vocabulary. Because a formatting change starts a new run, one sentence can be spread across several runs, which is one reason the XML looks busier than the page does.

Look inside a copy, not the original

Copy the file, rename the copy to .zip, and open it. Word finds each part through the relationships and content-type lists, so a hand-edited package that breaks them may not open again. Keep the untouched original.

Why did Word 2007 turn documents into a ZIP of XML?

Before 2007 Word saved the binary .doc (see History Lesson: What Is a .doc File?). Microsoft’s own 2006 developer overview was frank about why that had to change: the binary formats reflected the in-memory structures of the applications, built for low-memory computers with slow hard drives, and changing them outside Office was a leading cause of file corruption. The new design kept one file for the user but wrapped separate parts in a ZIP container, so a program could read or replace a single part without touching the rest.

XML had been creeping in for years. A timeline posted by Microsoft’s Brian Jones in January 2007 lists an XML format for Excel with Office XP, a full XML format for Word — WordprocessingML — in the first Office 2003 beta in October 2002, and the European Union asking Microsoft in May 2004 to submit its XML formats to a standards body. Microsoft’s 2006 overview adds that the Office 2003 XML formats worked for Word and Excel only, and that only Word’s was truly full-fidelity. The 2007 release extended the idea to PowerPoint and made it the default.

2005 to 2008: from Microsoft’s format to an international standard

On 21 November 2005 Microsoft announced that it would co-sponsor submitting the new formats to Ecma International. Ecma formed technical committee TC45 that December, with members including Apple, Barclays Capital, BP, the British Library, Essilor, Intel, Microsoft, NextPage, Novell, Statoil, Toshiba, and the United States Library of Congress, and the specification grew to roughly 6,000 pages. Ecma’s general assembly approved it as Ecma-376 on 7 December 2006, by 20 votes to 1; IBM cast the single no vote, saying OpenDocument was the better future.

The product shipped first. Office 2007 reached business customers on 30 November 2006, a week before the Ecma vote, and shops on 30 January 2007. The rival format had already won its own approval: OpenDocument became an ISO standard in 2006 (see History Lesson: What Is a .odt File?).

Ecma then sent Office Open XML to ISO and IEC under their fast-track procedure. In the vote that ended in September 2007 it was disapproved, with about 3,500 comments. A ballot resolution meeting in Geneva on 25–29 February 2008 worked through just over 1,000 distinct issues, many countries changed their votes, and on 2 April 2008 ISO announced the approval thresholds had been met, with 75% of votes cast positive and 14% negative. ISO/IEC 29500:2008 was published in November 2008. InfoWorld reported that many had opposed it as unnecessary, since OpenDocument was already an international standard.

The ISO text defines two levels of conformance, Strict and Transitional, and keeps a part called Transitional Migration Features for compatibility with existing documents. The Library of Congress notes that Office 2013 and later support Strict but do not use it as the default because of backwards-compatibility concerns, so Word’s everyday .docx output is normally Transitional.

ZIP plus XML does not mean interchangeable

Microsoft’s overview notes that the XPS fixed-layout format uses the same Open Packaging Conventions, and .odt is also a ZIP of XML. Each uses its own vocabulary, so renaming one extension to another converts nothing. See History Lesson: What Is a .xps File?.

The extra x, and why old Word could not open it

Microsoft’s overview explains the naming: the new extensions borrow from the binary ones by appending a letter, so .doc became .docx, .xls became .xlsx, and .ppt became .pptx. Macro-enabled files get an m instead — .docm — so anyone can tell before opening that code is inside, and Office does not run code from a file saved with the x extension.

Word 2003 and earlier knew nothing of the new package. Microsoft published a free Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats, its download page dated 6 November 2006, which lets Word 2000, XP, and 2003 open, edit, and save the new formats. Microsoft also claimed the files could be up to 75 percent smaller than comparable binary ones, because XML compresses well and ZIP compresses the parts; treat that as a vendor figure that varies with the document.

Why .docx files still sit on disks in 2026

A .docx is not an obsolete format; it is the one Word has saved by default for nearly two decades, so letters, contracts, theses, and reports from every year since 2007 sit in it. Microsoft’s overview notes that properties such as author and last-saved date, and comments, live in their own parts, so a .docx can carry more than the page shows. The files become legacy files when something around them changes: a PC without Word, an old Word without the pack, or a person who needs a PDF, a Markdown file, or HTML instead.

Legacy File Converter lists .docx among supported documents on Supported File Types and converts it locally on Windows to formats such as PDF, Markdown, and HTML. Nothing is uploaded. This article stays the history. For the binary format .docx replaced, see History Lesson: What Is a .doc File?; for practical steps with older Word files, see Old Word Documents That Won’t Open.

Ready to open your old files?

Start free, then unlock unlimited conversions with a one-time $79.95 Standard license. Download the Windows installer — full features for up to 10 files.

Free trial

Full app features · up to 10 files

Windows 10 or 11

Free trial — convert up to 10 files. Download the Windows installer and convert locally on your PC.

Start free trial — Download installer

Direct Windows installer · offline MSI

Is this safe? — publisher, installer, and SmartScreen help

Requires Windows 10 or 11. No subscriptions.