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)
Drop .docx contracts or templates to generate clean RFC 4648 Base64, verify API gateway payload budgets, and copy JSON or Python/C#/JS snippets.
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.
Drop any local file up to 100MB+ or type UTF-8 text on the left. No data leaves your browser.
Load real client-side verified payloads straight into the workbench above. Zero third-party trademarks.
Encode sensitive employment agreements, vendor contracts, and medical intake templates without routing files through unknown conversion servers.
Enterprise teams integrating e-signature platforms, contract lifecycle workflows, or document assembly webhooks regularly need Base64 test payloads derived from real Word templates. Uploading proprietary legal drafts to ad-supported online utilities violates strict data-handling policies.
Base64Doc computes the entire Base64 stream inside a local browser Web Worker. Neither the .docx container nor its extracted text ever leaves your device, allowing compliance teams to verify zero outbound payload traffic directly in browser DevTools.
Catch oversized .docx attachments that blow past 4.5 MB or 6 MB serverless limits once Base64 adds +33.33% overhead.
A single unoptimized scan or 300-DPI letterhead embedded inside word/media/ routinely pushes a two-page .docx to 4 MB. Once Base64 encoding inflates it to ~5.33 MB, Vercel Serverless Functions and strict API gateways reject the request before business logic executes.
The live gateway budget bar alerts you immediately when encoded output crosses 4.5 MB, 6 MB, or 10 MB, prompting you to downscale embedded images in Word or switch to pre-signed binary uploads.
Wrap your encoded .docx into a clean JSON body or copy verified C#, Python, Node.js, and PowerShell templates in one click.
Beyond raw Base64 output, backend engineers need clean request skeletons. Toggle Data URI mode when testing web preview bridges, or grab the JSON Payload tab and language-specific snippets to keep local test fixtures reproducible across teams.
Drag your Word contract, invoice template, or mail-merge file into the dropzone; bytes stay strictly inside your browser Web Worker.
Keep unwrapped RFC 4648 Base64 for REST/GraphQL payloads, or enable 76-character CRLF wrapping when assembling raw SMTP MIME parts.
Watch the green/yellow/red gateway gauge; high-DPI photos embedded inside a .docx inflate quickly once multiplied by 1.333.
Grab a ready-made JSON payload or switch to Python, C#, Go, JavaScript, or PowerShell tabs for immediate integration testing.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| Standard OOXML MIME | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Required by e-signature and document-conversion REST endpoints. |
| Gateway Raw Threshold | ~3.35 MB raw -> 4.47 MB Base64 | Exceeding 3.35 MB risks HTTP 413 on 4.5 MB serverless functions. |
| Email MIME Wrapping | RFC 2045 (76 chars + CRLF) | Optional line folding for legacy mail transfer agents and .eml files. |
| Worker Streaming Speed | 786 KB aligned chunks | Keeps browser UI responsive even on 50 MB+ media-heavy manuals. |
| Privacy Architecture | 0 outbound POST bytes | Safe for NDA, legal, healthcare, and internal HR documentation. |
No, conversion runs 100% locally inside a browser Web Worker with zero outbound file requests or server retention.
Yes, open the JSON Payload snippet tab or click Copy API JSON Request Body in the toolbar to grab a formatted JSON object immediately.
Limit raw .docx attachments to roughly 3.35 MB (3,512,729 bytes) before encoding. Once +33.33% Base64 expansion and JSON keys apply, larger files exceed the 4,718,592-byte HTTP body ceiling.
Bytes 50 4B 03 04 (PK\x03\x04) followed by standard ZIP header flags encode to UEsDB in Base64, confirming a valid OOXML ZIP container.
Yes, dropping a legacy .doc file encodes its exact bytes and assigns application/msword automatically based on the D0 CF 11 E0 header.
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.