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)
Decode RFC 4648 or URL-Safe Base64 into clean hex bytes, inspect paginated 16-byte Offset + Hex + ASCII dumps, and identify binary file headers instantly.
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.
Inspect raw byte values behind Base64 HMAC signatures, AES initialization vectors, and DER certificates without writing one-off terminal scripts.
Security headers, SAML assertions, and webhook signatures encode raw binary hashes—such as 32-byte SHA-256 digests or 16-byte AES-GCM IVs—as Base64 strings. Because Base64 packs 6 bits per character, eyeballing bitmasks, ASN.1 length tags (such as 30 82), or null padding bytes directly in Base64 is virtually impossible.
Converting to hexadecimal immediately reveals 1-byte boundaries: two hex nibbles equal one exact octet. Base64Doc pairs raw byte dumping with a clean 16-byte-per-row Offset + Hex + ASCII view so embedded PEM headers or ASCII tags jump right off the screen.
Decode JWT signature segments and JWK modulus fields containing - and _ without first converting them back to + and /.
JSON Web Keys (JWKs) and OAuth signatures store RSA/ECDSA coordinates in unpadded Base64URL. Standard terminal pipes choke immediately on hyphens and missing = characters. Base64Doc normalizes -/_ and restores legal modulo-4 padding automatically before emitting exact hex bytes.
Step cleanly through multi-kilobyte binary captures page by page without freezing your browser.
Dumping 5 MB of hex text into a webpage creates 15 million spaced characters. Paginating 512-byte slices keeps rendering snappy while still checking 66 magic signatures on byte offset 0.
Drop cryptographic digests, JWT signatures, AES IVs, or binary chunks—even unpadded RFC 4648 §5 strings using - and _.
Each group of 4 Base64 characters converts deterministically into 3 raw bytes (6 hexadecimal nibbles) inside browser memory.
Inspect bytes in clean 16-byte rows (512 bytes per page) with 8-digit offsets and printable ASCII equivalents side by side.
Grab continuous or spaced hex bytes for OpenSSL, Python, or Wireshark comparisons, and view any matched binary file header.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| Quartet-to-Hex Ratio | 4 Base64 chars = 3 bytes = 6 hex chars | A 44-char SHA-256 Base64 string decodes to exactly 64 hex nibbles (32 B). |
| Inspector Pagination | 512 bytes/page (16 B/row) | Prevents DOM lag when inspecting large ASN.1 DER or binary frames. |
| Alphabet Support | RFC 4648 §4 (+/) & §5 (-_) | Automatically restores missing trailing = padding where len % 4 != 1. |
| Common Cryptographic Sizes | 16 B (MD5/AES-128), 32 B (SHA-256) | Verify exact byte length instantly beside the hex dump. |
| Privacy Posture | Zero server transmission | Safe for production HMAC keys, bearer tokens, and raw TLS certs. |
Yes, the decoder auto-detects both standard (+/) and URL-Safe (-_) alphabets and restores missing = padding before emitting exact hex bytes.
Yes, the Hex + ASCII inspector paginates decoded bytes in 512-byte slices arranged in 16-byte offset rows.
A SHA-256 hash is 32 bytes (256 bits): Base64 encodes 32 bytes into 44 characters (including one = pad), while hex represents each byte as 2 nibbles (64 chars).
Base64Doc strips surrounding quotes, whitespace, and JSON \/ escapes cleanly before decoding to hex, pinpointing any remaining illegal character by line and column.
Yes, all Base64-to-hex byte math runs strictly inside local browser memory with zero network calls and masked input elements.
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.