Base64Doc

Decode Base64 to Verified DOCX Documents

100% Browser Local · 0 File Uploads · 100MB+ Ready

Verify genuine Word OOXML packages inside PK\x03\x04 archives, inspect internal document XML parts, and block misnamed PDF or Excel saves.

Try 1-Click Synthetic Samples (Zero-Trademark):

Drop any file, paste Base64, or press Ctrl/Cmd+V with clipboard files or raw API JSON

Runs inside a local Web Worker. Network tab stays at 0 file POST requests.

0 chars
Decoded Result & Document Actions Appear Here

Paste any Base64 string, Data URI, Postman JSON, SOAP XML, HAR, or EML payload on the left.

Interactive Synthetic Showcase Gallery

Load real client-side verified payloads straight into the workbench above. Zero third-party trademarks.

Free · InstantCASE-1

Shipping API JSON -> 2 Auto-Named PDFs + 180 deg Label Fix

Input Payload
Raw Shipping API JSON (4.8 KB)
Verified Output
waybill_label.pdf (4x6 in, 180 deg -> 0 deg) + commercial_invoice.pdf (A4, 2 pages)
Real browser-decoded output preview (client-side only)
Free · InstantCASE-2

ERP Payload -> PK\x03\x04 Verified 3-Sheet Excel Preview

Input Payload
ERP Base64 Payload (122.8 KB)
Verified Output
Summary (128 rows x 11 cols), LineItems (48 rows), Tax (24 rows) -> .xlsx / .csv / .json
Real browser-decoded output preview (client-side only)
Free · InstantCASE-3

Broken Data URI + MIME Fix + White Transparent Logo

Input Payload
Broken data:image/jpeg;base64 + \/ + newlines (4.9 KB)
Verified Output
Auto-fixed to image/png (512x512 px) + Checkerboard reveals white emblem
Real browser-decoded output preview (client-side only)
Free · InstantCASE-4

Gzip + Base64 Unpack & Korean EUC-KR Mojibake Self-Heal

Input Payload
Gzipped Base64 (212 chars) + EUC-KR Receipt
Verified Output
Gunzipped JSON + EUC-KR Hangul receipt recovered from UTF-8 replacement chars
Real browser-decoded output preview (client-side only)
Free · InstantCASE-5

40-Page Contract Slimming + Gateway Green-Light Check

Input Payload
40-Page Synthetic Contract PDF (33.7 KB)
Verified Output
Extract Page 1 -> +33.3% Base64 fits comfortably under 4.5 MB Vercel limit
Real browser-decoded output preview (client-side only)

Preventing Generic .zip Misidentification on Word Contracts

Verify wordprocessingml manifests inside PK\x03\x04 archives so every decoded contract saves cleanly as .docx rather than a generic .zip or broken .txt.

Read full technical details

Generic magic-byte scanners stop reading after the first four bytes (50 4B 03 04) and label every Office Open XML payload as a standard ZIP archive. Even worse, converters without archive inspection happily save a PDF invoice or HTML error body with a .docx filename if the user visits a Word-specific URL.

Base64Doc pairs 66 binary signatures with fflate archive traversal inside your browser. Upon detecting PK\x03\x04, it reads [Content_Types].xml and checks for wordprocessingml.document or word/document.xml, separating .docx cleanly from .xlsx, .pptx, .epub, and plain .zip.

Legacy document APIs occasionally emit older OLE2 .doc binaries (D0 CF 11 E0) or plain RTF markup ({\rtf1) under a .docx label. Catching those signatures upfront prevents corrupted Word recovery prompts.

Inspecting word/document.xml and Embedded Media Safely

Audit internal package parts and oversized embedded images right inside the browser without executing macros or uploading confidential agreements.

Read full technical details

Before opening an untrusted contract or generated mail-merge file in desktop Word, engineers often want to inspect which XML parts or embedded assets exist inside the container. Base64Doc displays the internal OOXML directory tree with uncompressed byte counts for every file.

Spot instantly whether a 9 MB .docx owes its bloat to an uncompressed BMP stamp inside word/media/image1.png or whether a template placeholder failed to populate inside word/document.xml—all without any file bytes leaving your workstation.

Handling E-Signature JSON & MIME Envelopes Effortlessly

Unpack Base64 .docx attachments nested inside REST webhooks or .eml messages without manual substring slicing.

Read full technical details

Document automation and e-signature APIs frequently return completed .docx agreements alongside audit-trail PDFs inside a single JSON payload. Simply paste the entire API response into the studio; Base64Doc isolates every attachment tab and labels each file from its outer JSON key.

Step-by-Step Local Workflow

STEP 1

Paste DOCX Base64 or E-Signature Payload

Drop a raw Base64 string, Data URI, or contract-management JSON response into the input field; escaped slashes and wrapper quotes are stripped cleanly.

STEP 2

Inspect WordprocessingML Package Manifest

Base64Doc decompresses the PK\x03\x04 ZIP directory locally via fflate to confirm wordprocessingml.document in [Content_Types].xml and word/document.xml presence.

STEP 3

Browse Internal XML & Media Parts

Review embedded word/media/* images, headers, or footers inside the archive inspector tree to spot oversized signatures or broken template assets before opening Word.

STEP 4

Save Verified .docx or Redirect Mismatches

Download the confirmed .docx file, or follow the mismatch alert if the payload actually carries a legacy .doc, RTF, or PDF stream.

Technical Specification Summary

CapabilityBase64Doc BehaviorEngineering Notes
OOXML Signature50 4B 03 04 + word/document.xmlDistinguishes Word contracts from .xlsx sheets and .pptx decks.
Legacy Binary WordD0 CF 11 E0 A1 B1 1A E1 (.doc)Alerts when an older OLE2 compound document arrives instead of .docx.
Rich Text Detection7B 5C 72 74 66 31 ({\rtf1)Catches mislabeled RTF outputs returned by legacy ERP document generators.
Verified Word MIMEapplication/...wordprocessingml.documentAuto-repairs generic application/zip or octet-stream Data URIs.
Embedded Asset Auditword/media/* byte sizesLists internal XML parts and embedded images without running macros.

Frequently Asked Questions

Why do generic Base64 tools label .docx files as .zip archives?

Every .docx file opens with the 4-byte ZIP local header 50 4B 03 04 (PK\x03\x04). Base64Doc inspects [Content_Types].xml and word/document.xml inside the package locally to distinguish genuine Word documents from plain ZIPs.

What if I paste legacy binary .doc (OLE2) Base64 instead of .docx?

Base64Doc detects the D0 CF 11 E0 OLE2 signature, alerts you that the payload is legacy .doc rather than OOXML .docx, and recommends saving with the safe .doc extension.

Can Base64Doc tell a .docx document apart from an .rtf file misnamed by an API?

Yes, it checks for 7B 5C 72 74 66 ({\rtf) at byte offset 0 and warns you immediately if an API sent Rich Text instead of an OOXML package.

Can I inspect the files inside a Base64 .docx without installing Microsoft Word?

Yes, the built-in archive inspector lists word/document.xml, styles.xml, and word/media/* assets with byte sizes and allows single-part extraction.

Does inspecting a confidential employment or NDA .docx upload anything to the cloud?

No, decoding, fflate XML inspection, and file creation run 100% inside local browser memory with zero outbound requests.

Explore All 34 Base64 Converters & Developer Tools