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)
Overcome 1 MB competitor caps: drop PNG, JPEG, WebP, or SVG files, optionally downscale or compress to WebP in-browser, and copy CSS, HTML, or Data URI strings.
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 high-resolution screenshots, product photography, and large sprite sheets locally without hitting artificial 1 MB caps or ad-bloated queues.
Several legacy Base64 image sites enforce hard 1 MB size rejections because they either push files through throttled backend servers or crash when writing long strings into an uncontrolled DOM textarea. Developers testing retina assets or 4 MB mobile camera uploads hit a brick wall immediately.
Base64Doc streams image bytes in 786 KB aligned chunks inside a Web Worker and displays a 4,096-character head/tail excerpt in the viewport. Whether you are encoding a 2 KB favicon or a 25 MB PNG texture, the page stays responsive and zero bytes leave your computer.
Resize oversized photos and convert heavy screenshots to WebP in-browser so Base64 strings stay lean inside JSON payloads and LQIP placeholders.
Base64 adds a mandatory one-third size inflation to every image. Uploading an unresized 4000x3000 phone JPEG inside a JSON KYC request wastes bandwidth and routinely trips Vercel 4.5 MB or AWS 6 MB limits.
Enabling Pre-Encode Slimming downscales wide dimensions and converts raster pixels to WebP directly on an offscreen browser canvas before Base64 encoding begins—frequently reducing final string length by 60% or more.
Use instant byte telemetry to keep small UI icons zero-request while avoiding CSS bloat from oversized inline backgrounds.
Inlining tiny 1–4 KB icons inside CSS or standalone single-file HTML emails eliminates extra round-trips. By contrast, embedding 200 KB hero banners inside a stylesheet blocks first paint and defeats browser asset caching. Live byte readouts let you make informed performance trade-offs immediately.
Select PNG, JPEG, WebP, GIF, or SVG files of any size—or press Ctrl/Cmd+V anywhere on the studio to capture raw clipboard image bytes.
Use the Pre-Encode Slimming bar to cap max pixel width (e.g., 1280 px) or convert bulky PNG/JPEG photos to WebP before generating Base64.
Compare raw bytes against the +33.33% Base64 output and verify whether inline embedding stays sensible for CSS (< 8 KB) or API JSON (< 4.5 MB).
Switch directly to formatted <img>, background-image: url(...), or JSON wrapper tabs and copy clean output in one click.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| File Size Ceiling | 100 MB+ (No 1 MB Cap) | Streams 786,432-byte slices in a Web Worker with virtualized UI preview. |
| Pre-Encode Optimization | Canvas Max-Width + WebP | Typically cuts photographic payload weight 40%–75% before encoding. |
| Inline CSS Sweet Spot | < 4–8 KB raw asset | Larger photos belong in cacheable static files rather than CSS bundles. |
| Clipboard Capture | Ctrl / Cmd + V image/png | Encodes screenshots straight from OS clipboard without saving temp files. |
| Snippet Export Modes | Data URI, HTML, CSS, MD, JSON | Includes properly quoted attribute wrappers for instant pasting. |
No, Web Worker streaming encodes high-DPI images well past 1 MB locally with zero server upload limits. Pre-encode resizing and WebP conversion also shrink large inputs before encoding.
Open the CSS Background or Markdown tab inside the 12-format developer bar and click Copy Full Output. Base64Doc wraps the RFC 2397 Data URI in url("data:image/...") or  syntax automatically.
Inlining images larger than ~8–10 KB inside CSS blocks render-blocking stylesheet parsing and prevents independent HTTP caching. Keep large photos as static WebP files.
Yes, focus the input dropzone and press Ctrl+V or Cmd+V; Base64Doc reads the pasted image blob and encodes it directly.
No, browser WebP canvas encoding preserves full 8-bit alpha transparency when converting from PNG or SVG.
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.