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 multi-sheet ERP workbooks right in your browser without Microsoft Excel installed, verify genuine .xlsx OOXML structure, search cells, and export XLSX, CSV, or JSON.
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.
Inspect inside PK\x03\x04 archives for [Content_Types].xml before saving so a mislabeled Word document, ZIP archive, or PDF never turns into a corrupt spreadsheet.
Modern .xlsx workbooks, .docx documents, .pptx slides, and standard .zip bundles all begin with the exact same four magic bytes: 50 4B 03 04. Shallow converters either fail to identify .xlsx beyond generic ZIP or blindly obey whatever extension the URL implies—saving PDF bytes or HTML 500 error responses as report.xlsx, which then throws unreadable file errors in desktop Excel.
When decoded bytes match PK\x03\x04, Base64Doc dynamically invokes fflate to read [Content_Types].xml and top-level directory entries inside the archive. Only packages declaring application/vnd.openxmlformats-officedocument.spreadsheetml.sheet or xl/workbook.xml pass as genuine .xlsx files.
If an upstream ERP webhook accidentally populated a spreadsheet field with an invoice PDF or a plain ZIP archive, the extension guard halts blind .xlsx saving, displays the true detected MIME type, and provides a one-click download under the verified extension.
Verify financial totals, SKU counts, and tax columns across multiple workbook tabs straight inside your browser without installing Office.
QA engineers, support analysts, and Linux/macOS developers frequently inspect Base64 ERP exports on machines or jump hosts without Microsoft Excel installed. Downloading a file, launching a heavy spreadsheet suite, and discovering the wrong date range wastes time on every integration test.
Base64Doc loads SheetJS lazily in a dedicated chunk only when spreadsheet bytes are verified. Within milliseconds, every worksheet tab appears across the preview header alongside exact row and column dimensions, letting you switch from Summary to LineItems or Tax immediately.
A built-in cell search bar filters visible rows in memory across the active sheet, making it trivial to confirm whether an order ID, SKU, or tax total landed in the payload before forwarding the report.
Turn any decoded worksheet tab into clean CSV or structured JSON objects in one click for quick diffs, scripts, or database seeds.
Even after confirming an .xlsx workbook looks right, downstream tooling often prefers flat text formats for diffing or script ingestion. Base64Doc converts the currently selected sheet straight to RFC 4180 CSV or header-keyed JSON object arrays in local memory.
If your decoded payload is actually a legacy OLE2 BIFF8 .xls binary (D0 CF 11 E0) or UTF-8/EUC-KR CSV text, the engine parses those variants seamlessly as well—preserving Asian or Cyrillic accounting labels without UTF-8 replacement diamonds.
Drop a raw workbook Base64 string, Data URI, or REST API payload containing an exported report; the sanitizer strips JSON quotes and escaped slashes automatically.
Base64Doc inspects inside the PK\x03\x04 container via fflate to confirm spreadsheetml.sheet parts, blocking disguised PDFs or plain ZIP archives from saving as broken .xlsx files.
Browse every worksheet tab inside the interactive browser table, check exact row and column counts, and filter rows instantaneously with live keyword search.
Download the verified .xlsx workbook, dump the active worksheet as UTF-8 .csv, or convert rows into clean .json arrays for downstream scripts.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| OOXML Container Header | 50 4B 03 04 (PK\x03\x04) | Must also declare spreadsheetml inside [Content_Types].xml or xl/workbook.xml. |
| Legacy Binary Support | D0 CF 11 E0 (OLE2 .xls) & CSV | Detects legacy BIFF8 .xls workbooks and UTF-8 comma-separated sheets cleanly. |
| Parser Loading Strategy | Dynamic lazy-xlsx chunk | Loaded only when an Excel file is decoded so initial page load stays fast. |
| In-Browser Grid Features | Multi-sheet tabs + cell search | Displays active row/col dimensions and filters visible rows client-side. |
| Cross-Format Exports | .xlsx / .csv / .json | Converts active sheet rows to CSV or JSON objects without desktop Office. |
It reads inside the PK\x03\x04 archive using fflate to inspect [Content_Types].xml and xl/workbook.xml entries. If the package holds Word XML, a plain ZIP, or %PDF- bytes, blind .xlsx saving is blocked automatically.
Yes, once the multi-sheet grid opens locally, pick any worksheet tab and click Export .csv or Export .json to save clean tabular data immediately.
Yes, SheetJS executes strictly in browser memory with zero server uploads, rendering every worksheet tab, row count, and calculated cell value.
Base64Doc detects D0 CF 11 E0 OLE2 headers for legacy .xls binaries and text/csv streams for plain tables, rendering the grid accurately and offering the matching download extension.
SheetJS parses the active worksheet !ref dimension bounds (for example, A1:K128 -> 128 rows by 11 columns) directly from the XML sheet. That live count lets you spot truncated or empty ERP exports before downloading.
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.