How to use the Base64 to Word (DOCX) tool
- Paste the document string into the Base64 or Base64 data URL field. Line-wrapped MIME text is accepted.
- Select Decode file and wait for the package check to finish.
- Make sure the Result line ends with wordprocessingml.document, the DOCX media type.
- Select Download to save decoded.docx, and rename it to the original title if you know it.
From Base64 to Word: what gets verified
A .docx file is a ZIP package defined by the Office Open XML standard, ECMA-376. The text of the document lives in word/document.xml. Styles, numbering, headers, footers and images sit in neighboring parts, and [Content_Types].xml at the root declares what each part is.
This tool decodes the Base64, confirms the ZIP signature, then opens the archive and looks for two entries: [Content_Types].xml and word/document.xml. If both exist, the bytes are offered as decoded.docx with the type application/vnd.openxmlformats-officedocument.wordprocessingml.document. The document is not rendered, converted or modified.
Worked example: a 1,054 byte document
For this guide we built a minimal package with three parts: the content types list, the root relationships file and a word/document.xml holding one paragraph. Compressed, it is 1,054 bytes, which is 1,408 Base64 characters beginning with UEsDB, the encoding of the ZIP signature. Pasting it produces the first result below. Feeding the same tool a plain ZIP that lacks the Word parts produces the second.
Input: minimal DOCX package (1,408 Base64 characters)
Result: 1,054 bytes · application/vnd.openxmlformats-officedocument.wordprocessingml.document
File: decoded.docx
Input: ZIP archive that contains only hello.txt
Result: The ZIP container does not contain a DOCX document.The data URL type rule
Word attachments often travel as data URLs, and the label in front is frequently wrong. This decoder reads that label. It accepts no type at all, application/octet-stream, application/zip, or the full DOCX media type. Any other value stops the conversion with The declared Office file type does not match this tool.
The usual offender is application/msword. That type belongs to the legacy .doc format, yet many upload widgets attach it to .docx files. If you are sure the content is DOCX, delete everything up to and including base64, and paste the remainder. Without a declared type, only the package contents decide.
Formats that are not DOCX
Word can open many file types, and several of them fail here for good reasons.
- Legacy .doc files are compound binary files, not ZIP archives. Their Base64 begins with 0M8R4KGxGuE.
- RTF is plain text that starts with {\rtf, encoded as e1xydGY.
- OpenDocument .odt files are ZIP archives without word/document.xml.
- Encrypted, password-protected documents are stored in a compound binary wrapper.
- PDF exports begin with JVBERi0. Use Base64 to PDF for those.
Frequently asked questions
Does the Word document leave my computer?
No. Decoding and the package check happen in the browser tab. Contracts, resumes and other documents you paste are not sent to Base64Coding or anyone else.
Can I read the text of the document on this page?
No. The tool confirms that word/document.xml exists but does not display it. Download decoded.docx and open it in Word, or in any editor that reads Office Open XML.
What does These bytes do not have an Office document container mean?
The decoded data does not start with a ZIP signature, so it cannot be a DOCX package. It may be a legacy .doc, an RTF file, a PDF, or an HTML error page that an API returned in place of the document.
Are .docm and .dotx files accepted?
Yes, because macro-enabled documents and templates also contain word/document.xml. The download is named decoded.docx regardless. Change the extension to .docm or .dotx so Word treats the file correctly.
Is document metadata preserved?
Yes. Author name, revision history, comments and tracked changes are stored in parts of the package, and the package is saved unchanged. Review that information before forwarding a decoded document.
Why do I see an error about a corrupted zip?
The data starts like a ZIP archive but its directory, stored at the end, could not be read. That almost always means the Base64 string was truncated. Request the full value and try again.