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)
Paste clipboard screenshots with Ctrl/Cmd+V or drop PNG files to generate clean Base64, downscale large assets, and export CSS or React-ready 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.
Capture an area screenshot on macOS or Windows and press Ctrl/Cmd+V straight into the workbench to copy clean Base64 without saving temporary PNG files.
Engineers authoring Playwright fixtures, Slack webhook cards, or single-file HTML bug reports often take quick screen captures purely to obtain a Data URI. Saving screenshot.png to Desktop, browsing for it in a file dialog, and deleting it afterward adds tedious friction.
Focusing the Base64Doc dropzone and pressing Ctrl+V or Cmd+V reads the raw image/png blob directly from the browser Clipboard API. Within a fraction of a second, the virtualized Base64 string, Data URI, and CSS/HTML wrappers appear ready to copy.
Keep razor-sharp monochrome icons in lossless PNG while converting heavy HiDPI UI screenshots to WebP before Base64 adds +33.33%.
Flat vector-style UI icons under 4 KB with limited palettes compress tightly inside PNG IDAT chunks; re-encoding them as lossy WebP rarely saves space and risks slight chroma softening around crisp 1 px lines.
Conversely, full-screen photographic screenshots or 2x Retina captures routinely balloon to 2–6 MB as PNGs—becoming 2.7–8 MB once Base64-encoded. Enabling Pre-Encode max-width scaling and WebP compression inside Base64Doc drops those payloads into the green zone immediately.
Export formatted CSS background rules and React/HTML image tags while knowing where inline Data URIs work best.
Modern browsers, SVG renderers, and headless PDF generators (such as Chromium Puppeteer or Playwright) render data:image/png;base64 reliably with zero external network fetches. For HTML marketing emails where certain webmail clients strip Data URIs, export raw RFC 4648 Base64 or MIME-76 blocks to attach via Content-ID (cid:) headers instead.
Drag local PNG icons or press Ctrl/Cmd+V after taking an OS screenshot; Base64Doc captures the raw PNG bytes right from the clipboard event.
Keep tiny crisp UI icons as lossless PNG; for large multi-megabyte retina screenshots, toggle WebP compression in the Pre-Encode bar to slash payload weight.
Verify the encoded byte size against Vercel 4.5 MB and AWS 6 MB thresholds, and toggle Raw Base64 vs data:image/png;base64 Data URI mode.
Switch to the CSS, HTML, Markdown, or JSON tab to copy formatted snippets straight into stylesheets, tests, or documentation.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| Clipboard Image Flow | ClipboardEvent.items -> Blob | Encodes screenshots directly without cluttering your Desktop folder. |
| PNG Output Prefix | iVBORw0KGgo... (image/png) | Lossless Deflate IDAT bytes preserved verbatim when slimming is off. |
| Retina Screenshot Savings | WebP / Max-Width Slimming | Cuts 2x HiDPI desktop screenshots by 60%–85% before Base64 expansion. |
| Email Client Caveat | Data URI vs CID attachment | Note that several desktop mail clients block inline data:image/png URIs. |
| Worker Memory Model | 786 KB aligned chunks | Handles large 50 MB+ PNG textures smoothly via virtualized preview. |
Yes, focusing the workbench and pasting an image from your OS clipboard reads the raw image/png blob and encodes it directly into Base64 and Data URI snippets.
Convert large UI screenshots or photographic PNGs to WebP whenever raw size exceeds ~100 KB or triggers yellow/red API gateway warnings, while keeping tiny sharp icons as lossless PNG.
Base64 maps 3 binary bytes into 4 ASCII characters (+33.33%), though HTTP Gzip or Brotli compression on the serving stylesheet recovers a small fraction of that overhead.
No, several major webmail and desktop mail clients strip inline Data URI images for security; use standard MIME cid: attachments when targeting broad email compatibility.
No, raw encoding converts the exact file bytes verbatim, preserving alpha transparency, ICC color profiles, and pHYs DPI chunks intact.
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.