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)
Inspect every file inside a Base64-encoded ZIP archive right in your browser, extract single files individually, or download the verified .zip package.
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.
Paste any Base64 string, Data URI, Postman JSON, SOAP XML, HAR, or EML payload on the left.
Load real client-side verified payloads straight into the workbench above. Zero third-party trademarks.
Browse every path inside a Base64-encoded ZIP in browser memory and extract just the one XML receipt or log file you need.
Batch reporting webhooks, tax portals, and CI artifact APIs commonly return multiple XML invoices or diagnostic logs zipped together and Base64-encoded. Normally you must decode to disk, open an archive utility, extract a temporary folder, find the single file you care about, and clean up temp clutter afterward.
Base64Doc loads fflate dynamically in your browser the moment a PK\x03\x04 payload decodes, rendering the full archive directory tree with entry names and uncompressed byte counts. Clicking Download beside a single entry decompresses and saves only that file straight from RAM.
Automatically spot when a PK\x03\x04 Base64 string is actually an Excel .xlsx workbook, Word .docx contract, or EPUB e-book.
Because Microsoft Office OOXML and EPUB containers are built atop ZIP compression, generic Base64 tools misclassify them constantly. Base64Doc scans internal manifest entries automatically—directing you to multi-sheet table preview when xl/workbook.xml is present rather than treating a spreadsheet as a generic archive.
Protect workstations from Zip Slip path-traversal entry names while keeping encrypted or sensitive archives strictly off external servers.
Untrusted archives occasionally embed ../ traversal prefixes inside ZIP central directory filenames. Single-file extraction strips directory traversal segments before naming downloads, and zero archive bytes ever cross the network.
Insert Base64 strings beginning with UEsDB (50 4B 03 04) or full JSON/XML logs containing compressed export bundles.
Base64Doc invokes fflate locally to inspect whether the PK\x03\x04 package is a general archive or an Office .xlsx/.docx document.
Review every folder path, compressed size, and original uncompressed byte count inside the archive table directly in your browser.
Click Download on any single embedded XML, log, or PDF entry—or export the entire verified .zip package.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| ZIP Signature Variants | 50 4B 03 04 / 05 06 (Empty) / 07 08 | Recognizes normal, empty, and data-descriptor ZIP headers. |
| Decompression Engine | fflate (Lazy Async Chunk) | High-speed browser Deflate/Store unpacking with zero server uploads. |
| Single-Entry Extraction | Per-entry Blob download | Pull one manifest XML or error log out of a multi-file ZIP immediately. |
| Office Format Guard | Checks [Content_Types].xml | Notifies if an archive is actually an .xlsx spreadsheet or .docx file. |
| Path Normalization | Strips ../ traversal segments | Sanitizes individual entry names before triggering browser file saves. |
Yes, Base64Doc renders the full internal directory tree via fflate with byte counts and gives each entry an individual Download button.
Base64Doc inspects [Content_Types].xml inside the 50 4B 03 04 container automatically via fflate. It notifies you of the exact Office OOXML type so you can preview sheets or save with the right extension.
The standard ZIP local file header signature 50 4B 03 04 ("PK\x03\x04") encodes directly to UEsDB in RFC 4648 Base64.
No, Gzip uses 1F 8B 08 headers rather than PK\x03\x04; Base64Doc detects 1F 8B automatically and recommends or switches to the Gzip + Base64 pipeline.
No, AES-encrypted or ZipCrypto entries cannot be decrypted without your password inside the inline tree viewer. You can still inspect entry filenames and download the complete verified .zip archive locally.
Avoid Chrome data: URI truncation and memory leaks when rendering Base64 PDFs in JavaScript using Uint8Array, Blob URLs, and Web Workers.
Fix binascii.Error Incorrect padding and binary mode corruption when decoding Base64 PDFs, Excel sheets, and images in Python.
Diagnose why base64 -d, atob, or APIs fail with invalid input: data: prefixes, URL-Safe -/_ chars, JSON \/ escapes, whitespace, and missing =.
Understand the +33.3% Base64 expansion math, Data URI overhead, Vercel 4.5MB and AWS 6MB/10MB payload limits, and when to switch to binary uploads.
Eliminate garbled characters (mojibake) when decoding Korean EUC-KR/CP949, Japanese Shift_JIS, Chinese GB18030, or Cyrillic Base64 payloads.
Cross-platform cheat sheet comparing GNU/Linux base64 -d -w0, macOS BSD base64 -D -i/-o, and Windows PowerShell [Convert]::FromBase64String.
Diagnose why decoded Base64 to PDF files open blank, corrupted, or upside down: 2MB Data URI caps, JSON \/ escapes, HTML 502 payloads, and text writes.
Convert Base64 columns in Excel without add-ins using Power Query Binary.FromText, Office Scripts, or VBA MSXML2, and avoid 32,767 cell truncation.