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 decoded PNG, JPEG, WebP, GIF, or SVG artwork on checkerboard, dark, or light backgrounds, repair broken data:image/* MIME headers, and save across formats.
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.
Toggle Checkerboard, Dark, and Light preview canvases instantly so white-ink PNG and SVG emblems never look like broken blank images.
Front-end engineers frequently paste a Base64 logo string into a traditional decoder and conclude the payload is empty simply because white vector paths or anti-aliased white PNG text sit invisibly atop a white preview box. Guessing whether alpha transparency survived conversion wastes time across design handoffs.
Base64Doc mounts a three-state background switcher right above the rendered asset. One click switches from clean Light mode to high-contrast Dark slate or classic Checkerboard tiles, making alpha transparency edges, drop shadows, and stray matte pixels obvious immediately.
Alongside the canvas, the metadata strip reports true intrinsic pixel dimensions, real container format, decoded byte count, and Base64 character overhead.
Detect deceptive Data URI headers where image/png wraps JPEG or WebP bytes and generate the corrected prefix automatically.
Legacy CMS exporters and mobile upload forms often hardcode data:image/png;base64, ahead of every user avatar regardless of actual file content. While modern browsers sometimes sniff around wrong headers inside <img> tags, strict PDF generators, email clients, and server validators fail outright when MIME type contradicts binary headers.
After stripping whitespace and decoding raw octets, Base64Doc checks exact magic bytes—89 50 4E 47 for PNG, FF D8 FF for JPEG, 52 49 46 46...57 45 42 50 for WebP, and 47 49 46 38 for GIF. Any mismatch raises an explicit badge and generates the repaired Data URI ready to copy.
Decode multi-megabyte high-DPI artwork in a local Web Worker and save directly as .png, .jpg, or .webp without server transmission.
Popular image-to-Base64 helpers cap uploads at 1 MB and clutter viewports with dozens of ad scripts. Base64Doc processes multi-megabyte images strictly in browser memory, rendering previews via Blob URLs rather than giant inline URIs and letting you export converted formats locally via offscreen canvas.
Insert raw image strings, CSS url("data:image/...") fragments, or JSON payloads; outer quotes, whitespace, and escaped slashes are cleaned automatically.
The detector inspects binary headers across PNG, JPEG, WebP, GIF, BMP, ICO, and SVG—catching conflicts like data:image/png wrapping FF D8 FF JPEG bytes.
Toggle canvas backgrounds to reveal white-on-transparent logos or subtle alpha anti-aliasing halos while checking naturalWidth x naturalHeight pixel dimensions.
Save the verified binary directly with its true extension, copy the repaired Data URI, or transcode locally to .png, .jpg, or .webp.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| Supported Image Signatures | PNG, JPEG, WebP, GIF, BMP, ICO, SVG | Identifies exact raster and vector headers regardless of input prefix. |
| Canvas Background Modes | Checkerboard / Dark / Light | Exposes white alpha-transparent icons that disappear on standard pages. |
| MIME Conflict Repair | data:<real-mime>;base64,... | Replaces false image/png headers when bytes start with FF D8 FF or RIFF WEBP. |
| Cross-Format Transcoder | HTMLCanvasElement -> Blob | Exports locally to .png, .jpg, or .webp without server image queues. |
| Processing Limit | 100 MB+ local memory | No 1 MB cap and zero ad overlays blocking the preview viewport. |
Alpha-transparent PNG and SVG icons with #FFFFFF foreground pixels vanish against #FFFFFF preview boxes. Toggle the 3-state Checkerboard or Dark Canvas above the image preview to verify alpha edges immediately.
Base64Doc detects the FF D8 FF JPEG magic bytes, flags the header mismatch, and generates a repaired data:image/jpeg;base64, prefix with one click.
Yes, click Save .png in the image micro-action bar to render and download a lossless local PNG without installing graphics software.
Yes, GIF87a/GIF89a and RIFF WEBP (VP8/VP8L/VP8X) decode into native Blob URLs that preserve animation frames and alpha channels.
No, decoding and canvas rendering occur strictly inside browser memory with zero outbound image requests.
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.