Office Open XML Document (.docx)

ECMA-376 Standard

DOCX is a zipped, XML-based file format developed by Microsoft for word processing documents, standardizing Word documents under the Office Open XML specification.

Convertir PDF en DOCX

Convertisseur gratuit de PDF vers DOCX dans le navigateur. Convertissez des fichiers instantanément sur votre appareil.

Inspecter et métadonnées

Les systèmes d'exploitation et les analyseurs de fichiers identifient les fichiers DOCX en inspectant la séquence d'octets binaires de tête :

Sélectionnez ou faites glisser des fichiers

Sélectionnez ou déposez des fichiers ici

Conversion 100 % privée dans le navigateur - les fichiers ne quittent jamais votre appareil

ou coller Ctrl+V
Garantie de confidentialité sans transmission réseau : 0 octet téléchargé vers des serveurs externes. Tout le traitement a lieu localement dans le bac à sable de votre navigateur.

Signature d'en-tête au niveau des octets (Magic Bytes)

Les systèmes d'exploitation et les analyseurs de fichiers identifient les fichiers DOCX en inspectant la séquence d'octets binaires de tête :

SIGNATURE HEXADÉCIMALE (DÉCALAGE 0) :

50 4B 03 04

REPRÉSENTATION ASCII : PK..

Normalisation : ECMA-376 / ISO/IEC 29500

Spécifications techniques

Architecture de conteneurOpen Packaging Convention (OPC) ZIP archive containing XML parts
CompressionDeflate compression of individual XML files and media resources inside ZIP
Boutisme des octetsLittle-Endian for ZIP header records; UTF-8 XML for document text
Espaces colorimétriquessRGB for text and styling; embedded image parts retain native profiles
Canaux et structureStructured document hierarchy: paragraphs (w:p), runs (w:r), and text nodes (w:t)
Dimensions maximales55.87 x 55.87 cm (22 x 22 inches maximum Word page limit)
TransparenceSupported within embedded raster and vector shapes
Streaming et progressifZIP structure requires reading Central Directory at end of archive

Matrice de comparaison technique : DOCX vs Concurrents

Attribut techniqueDOCX (Actuel)PDFOpenDocument (ODT)Markdown
Primary PurposeEditable word processing documentFixed-layout digital paperEditable open standard documentLightweight plain text writing
Formatting ConsistencyVaries by software viewer and installed fonts100% pixel-perfect across all devicesVaries by software suiteDependent on Markdown parser and CSS
Editing ExperienceFull rich WYSIWYG editing with tracked changesDifficult to edit without specialized toolsFull WYSIWYG editingFast plain-text editing

Modes de corruption courants et guide de récupération hexadécimale

⚠️ Word displays error: 'The file is corrupt and cannot be opened'.

Cause racine: Damaged ZIP container structure or malformed XML in word/document.xml.

Récupération: Rename .docx to .zip, run 'zip -FF broken.zip --out fixed.zip', extract word/document.xml, fix XML syntax errors with an XML editor, and re-zip.

Analyse de sécurité et vecteurs d'attaque de l'analyseur

DOCX files cannot contain active VBA macros (.docm is required for macros), making them safer than legacy .doc files, but external template injection remains a risk.

Vecteurs d'attaque connus

  • Remote template injection pointing to malicious external dotm templates.
  • XML External Entity (XXE) vulnerabilities in unpatched document parsers.
  • Embedded OLE objects disguising executable malware.

Bonnes pratiques de défense: Disallow macro-enabled files (.docm) on public upload portals, inspect '_rels' for untrusted external URI templates, and sanitize XML inputs.

Origines historiques et jalons

2008ISO/IEC 29500 formalizes Office Open XML as an international open standard.
2006Microsoft introduces DOCX with Microsoft Office 2007, replacing legacy binary .doc.

Principaux avantages

  • Open XML packaging allows automated document generation and text extraction without Microsoft Word.
  • ZIP compression significantly reduces file size compared to legacy binary .doc files.
  • Modular structure isolates corrupt components, preventing entire document loss.

Limites techniques

  • Visual rendering can vary across LibreOffice, Google Docs, and Microsoft Word due to font layout heuristics.
  • Not designed for fixed-layout archiving (unlike PDF/A).
  • Complex ECMA-376 specification with thousands of legacy compatibility tags.

Anecdotes techniques

  • Renaming a .docx file to .zip allows you to extract all embedded images directly from the 'word/media/' folder.
  • The primary text content of any Word document resides in the file 'word/document.xml'.

Foire aux questions techniques

How can I extract all pictures from a DOCX file without Word?

Change the file extension from '.docx' to '.zip', open the archive with any unzipping tool, and browse to the 'word/media/' folder. All original high-resolution photos and graphics are stored there.

What is the difference between .doc and .docx?

.doc is a legacy proprietary binary format used in Word 97–2003. .docx is a modern open standard (ISO/IEC 29500) based on XML and ZIP compression, offering smaller file sizes, greater recovery reliability, and no macro execution capability.