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)
Not sure what file type a Base64 payload holds? Decode in a local Web Worker, identify 60+ binary signatures automatically, preview inline, and save the exact file extension.
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.
Stop guessing whether an opaque Base64 log entry is a PDF, SQLite database, Gzip archive, or compiled binary before writing it to disk.
Engineers triaging webhook queues, database BLOB columns, or email MIME parts often encounter anonymous Base64 strings lacking both filename and Data URI headers. Guessing .txt produces unreadable gibberish; guessing .pdf when the stream actually starts with 1F 8B 08 (Gzip) or 53 51 4C 69 74 65 (SQLite) triggers confusing app errors.
Base64Doc inspects decoded bytes locally against 66 deterministic magic signatures—including offset-aware matches like ISO BMFF ftyp video atoms at offset 4 and RIFF WAVE/WEBP subtypes at offset 8—while automatically extracting container manifests inside PK\x03\x04 archives.
Audit firmware blobs, Protobuf frames, ASN.1 certificates, and custom binary headers in 512-byte Hex + ASCII pages without leaving the browser.
When a decoded payload represents a custom RPC frame, DER certificate (30 82), or WebAssembly module (00 61 73 6D), visual document viewers naturally cannot render it. Rather than showing an unhelpful blank download link, Base64Doc switches smoothly to a dual-column Hex and printable ASCII table.
Paginating 512 bytes per page (32 rows of 16 bytes) keeps memory steady even on multi-megabyte binary blobs while letting you scan leading magic offsets immediately.
Paste entire JSON, XML, HAR, or EML captures to uncover every embedded binary file automatically.
If your mystery Base64 lives inside a multi-megabyte network trace or JSON object, you do not need to carve it out first. Base64Doc extracts every embedded binary, assigns smart names from enclosing JSON keys, and lets you inspect or zip the lot.
Drop any unidentified Base64 string, Data URI, or multi-line JSON/XML payload; the cleaner automatically removes outer quotes, whitespace, and JSON escapes.
The Web Worker decodes raw octets and checks headers across documents, images, media, archives, SQLite databases, ELF/Mach-O/PE executables, and WASM modules.
Known formats open native PDF, spreadsheet, image, ZIP-tree, or media viewers; uncommon binaries render in a paginated 512-byte Hex + ASCII inspector.
Save the output file with the exact signature-matched extension instead of guessing .bin or .txt blindly.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| Signature Coverage | 66 Magic Signatures + OOXML | Covers PDF, PNG/JPEG/WebP/SVG, ZIP/7z/RAR/Gzip, SQLite, WASM, ELF, Mach-O. |
| Container Disambiguation | PK\x03\x04 [Content_Types].xml | Separates .xlsx, .docx, .pptx, .epub, .odt, and .jar from plain .zip. |
| Binary Fallback Inspector | 512 B/page Hex + ASCII (16 B rows) | Inspect raw protocol headers without freezing browser layout. |
| UTF-8 & Legacy Text Sniffer | UTF-8, EUC-KR, Shift_JIS, GB18030 | Automatically rescues readable text payloads when bytes are non-binary. |
| Privacy Guarantee | Zero server file uploads | Safe for unknown incident artifacts, SQLite dumps, and internal keys. |
It decodes raw bytes locally and scans 66 magic-byte signatures plus internal PK\x03\x04 XML manifests to distinguish PDF, XLSX, DOCX, PNG, MP4, Gzip, SQLite, ELF, and more.
Base64Doc opens a paginated 512-byte Hex + ASCII inspector showing 16-byte row offsets so you can audit headers and download the exact binary.
Yes, the signature catalog detects 00 61 73 6D (.wasm), 7F 45 4C 46 (ELF), and FE ED FA CE/CF (Mach-O) headers accurately.
If no binary magic header matches and bytes look textual, Base64Doc validates UTF-8 and automatically sniffs EUC-KR, Shift_JIS, GB18030, Big5, and Windows-1251.
No artificial cap applies; Web Worker quartet chunking decodes multi-megabyte payloads in 1 MiB blocks inside browser RAM.
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.