Office Open XML Document (.docx)

ECMA-376 Tiêu chuẩn

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

Chuyển đổi PDF sang DOCX

Trình chuyển đổi từ PDF sang DOCX miễn phí trên trình duyệt. Chuyển đổi tệp ngay lập tức trên thiết bị của bạn.

Kiểm tra & Siêu dữ liệu

Các hệ điều hành và trình phân tích tệp nhận dạng tệp DOCX bằng cách kiểm tra chuỗi byte nhị phân đầu tệp:

Chọn hoặc kéo tệp

Chọn hoặc thả tệp vào đây

Chuyển đổi 100% riêng tư trong trình duyệt - tệp không bao giờ rời khỏi thiết bị của bạn

hoặc dán Ctrl+V
Cam kết bảo mật không truyền tải qua mạng: 0 byte được tải lên máy chủ bên ngoài. Toàn bộ quá trình xử lý diễn ra cục bộ trong hộp cát trình duyệt của bạn.

Chữ ký tiêu đề ở cấp độ Byte (Magic Bytes)

Các hệ điều hành và trình phân tích tệp nhận dạng tệp DOCX bằng cách kiểm tra chuỗi byte nhị phân đầu tệp:

CHỮ KÝ HEX (OFFSET 0):

50 4B 03 04

BIỂU DIỄN ASCII: PK..

Tiêu chuẩn hóa: ECMA-376 / ISO/IEC 29500

Thông số kỹ thuật

Kiến trúc ContainerOpen Packaging Convention (OPC) ZIP archive containing XML parts
NénDeflate compression of individual XML files and media resources inside ZIP
Thứ tự byte EndiannessLittle-Endian for ZIP header records; UTF-8 XML for document text
Không gian màusRGB for text and styling; embedded image parts retain native profiles
Kênh & Cấu trúcStructured document hierarchy: paragraphs (w:p), runs (w:r), and text nodes (w:t)
Kích thước tối đa55.87 x 55.87 cm (22 x 22 inches maximum Word page limit)
Độ trong suốtSupported within embedded raster and vector shapes
Truyền phát & Tăng dầnZIP structure requires reading Central Directory at end of archive

Ma trận so sánh kỹ thuật: DOCX so với các đối thủ

Thuộc tính kỹ thuậtDOCX (Hiện tại)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

Các chế độ hỏng hóc phổ biến & Hướng dẫn khôi phục Hex

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

Nguyên nhân gốc rễ: Damaged ZIP container structure or malformed XML in word/document.xml.

Khắc phục: 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.

Phân tích bảo mật & Các vectơ tấn công bộ phân tích cú pháp

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.

Các Véc-tơ Tấn công Đã biết

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

Thực tiễn Tốt nhất về Phòng thủ: Disallow macro-enabled files (.docm) on public upload portals, inspect '_rels' for untrusted external URI templates, and sanitize XML inputs.

Nguồn gốc lịch sử & Các cột mốc

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

Ưu điểm & Lợi ích chính

  • 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.

Hạn chế & Nhược điểm kỹ thuật

  • 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.

Thông tin kỹ thuật thú vị

  • 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'.

Các câu hỏi kỹ thuật thường gặp

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.