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)
Reveal white or transparent SVG paths on a checkerboard canvas, inspect viewBox dimensions, and download clean .svg markup or raster .png assets.
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.
Render untrusted Base64 SVGs safely inside isolated <img> Blob URLs while using dark and checkerboard canvases to reveal white vector paths.
Unlike raster PNGs, SVG is an XML dialect capable of containing embedded <script> tags or external entity references. Injecting decoded SVG markup straight into a host page DOM via innerHTML exposes applications to cross-site scripting risks.
Base64Doc strictly isolates decoded SVG bytes inside an object Blob URL mounted on an <img> element, where browser security sandboxes prevent script execution completely. Toggling Dark or Checkerboard mode behind the <img> exposes #FFFFFF navigation icons and transparent logos cleanly.
Recognize both bare <svg> fragments and XML-prolog vector files while fixing missing image/svg+xml headers.
Design exports from Figma or Illustrator frequently open with an <?xml version="1.0"?> prolog and XML comments before reaching the <svg> root element, whereas hand-authored icon sprites start directly with <svg xmlns="...">. Both patterns—PHN2Zy and PD94bW in Base64—are recognized accurately.
If a stylesheet wrapped the Base64 vector inside image/png or text/plain, Base64Doc repairs the Data URI prefix to image/svg+xml automatically.
Convert any decoded SVG icon into a ready-to-upload .png or .webp asset inside your browser for platforms that reject vector uploads.
Social platforms, legacy CMS dashboards, and mobile push services often forbid SVG uploads. Once your decoded SVG renders cleanly on screen, click Save .png or Save .webp to rasterize it locally at crisp native resolution.
Insert Base64 strings beginning with PHN2Zy or PD94bWws CSS url(...) values, or JSON icon payloads; quotes and whitespace strip automatically.
The detector scans decoded UTF-8 bytes for <svg or <?xml ... <svg tags, catching mislabeled raster PNG/JPEG strings before download.
Switch canvas contrast to examine white-stroke navbar icons or transparent badges rendered safely inside an isolated <img> element.
Download the decoded vector .svg file directly, or click Save .png to rasterize the vector paths locally via browser canvas.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| SVG Byte Signatures | 3C 73 76 67 (<svg) / 3C 3F 78 6D 6C | Encodes to PHN2Zy... or PD94bW... in standard Base64. |
| Security Sandbox | Isolated <img> Blob URL | Browsers block inline <script> execution inside SVG images loaded via <img>. |
| Canonical SVG MIME | image/svg+xml | Essential for browsers to treat decoded Blob bytes as vector graphics. |
| Contrast Modes | Checkerboard / Dark / Light | Exposes #FFFFFF icons and subtle opacity gradients immediately. |
| Local Rasterization | Vector SVG -> .png / .webp | Exports crisp bitmaps locally without Inkscape or Illustrator. |
Yes, white-stroke (#FFF) or light-fill SVG paths vanish against #FFFFFF preview boxes. Toggle Checkerboard or Dark Canvas to reveal the full vector geometry immediately.
Yes, click Save .png in the image action toolbar to rasterize the SVG locally using your browser canvas without uploading files.
Yes, Base64Doc renders SVG payloads via Blob URL inside an <img> tag rather than inline DOM injection, so browsers block any embedded SVG scripts from running.
PHN2Zy decodes to <svg directly, while PD94bWw decodes to <?xml (typical of desktop vector exports carrying an XML prolog). Both are valid SVG payloads.
Standalone SVG files opened via Blob URL require the SVG XML namespace; download the raw markup if you need to add the missing xmlns attribute before browser rendering.
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.