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 compact hex, 0x-prefixed arrays, or colon-separated digests to encode Standard or URL-Safe Base64 with Fail-Fast odd-nibble validation.
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.
Convert verbose 64-character hex SHA-256 hashes or 32-character UUIDs into 43- or 22-character Base64 strings without losing a single bit.
Hexadecimal represents each 8-bit byte as two ASCII characters—a 100% size expansion (2.0x) that bloats URLs, Subresource Integrity (SRI) attributes, and token payloads. Converting hex bytes into Base64 packs 6 bits per character instead of 4, cutting character length by one-third immediately.
For example, a standard 16-byte UUID (32 hex chars without hyphens) shrinks to just 22 unpadded Base64URL characters, while a 32-byte OpenSSL SHA-256 digest compresses from 64 hex chars into a standard 44-char sha256-<base64> SRI hash.
Paste OpenSSL colon-separated fingerprints or C-style 0x48, 0x65 byte arrays directly without manual regex cleanup.
Real debugging inputs rarely arrive as tidy lowercase hex strings. Certificate inspectors print A4:3F:09:..., C compilers export {0x48, 0x65}, and Wireshark copies space-delimited octets. Base64Doc strips those recognized separators cleanly before pairing nibbles.
Catch missing nibbles or accidental letter O/G typos right at the input boundary instead of emitting silently wrong Base64.
Notice a common gotcha: pasting raw ASCII text "4865" converts the bytes 0x48 0x65 ("He"), not the ASCII string "4865". And if a copy-paste dropped one nibble (producing an odd hex count), Fail-Fast validation aborts with an explicit error instead of guessing a leading zero.
Insert continuous SHA-256 strings, 0xFF C/JS byte literals, spaced Wireshark dumps, or colon-separated TLS fingerprints.
Base64Doc cleans allowed delimiters and immediately rejects odd nibble counts or non-[0-9a-fA-F] symbols with the exact offending token.
Toggle RFC 4648 §5 URL-Safe and Omit Trailing = when turning binary hex digests into JWT kids, SRI hashes, or webhook signatures.
Grab the encoded string (33% shorter than raw hex!) or copy matching language snippets.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| Accepted Hex Delimiters | Compact, Space, Colon (:), 0x, Comma | Parses xxd, OpenSSL fingerprints, and C byte arrays seamlessly. |
| Encoding Compression | 2.00x Hex -> 1.33x Base64 | Converts 64 hex chars (32 B) into 44 Base64 or 43 Base64URL chars. |
| Fail-Fast Validation | Rejects odd nibbles & bad chars | Never silently zero-pads half-bytes; surfaces exact error location. |
| Target Use Cases | SRI sha256-..., JWT x5t, UUIDs | Convert 32-char UUID hex into 22-char compact Base64URL slugs. |
| Execution Model | 100% browser-local RAM | Zero risk of leaking raw cryptographic keys or salts. |
4 hex input styles work natively: continuous pairs, space-separated bytes, colon-delimited MAC/TLS fingerprints, and 0x-prefixed arrays. Any non-[0-9a-fA-F] symbol triggers a Fail-Fast offset error.
Yes, enable RFC 4648 §5 URL-Safe and Omit Trailing = to convert SHA-256 hex digests straight into JWT or SRI-ready Base64URL.
Every byte requires exactly 2 hex nibbles (8 bits); an odd nibble count indicates a truncated hex string and cannot map cleanly to whole bytes.
Paste the 64-character SHA-256 hex digest here in Standard Base64 mode (with = padding kept) and prepend "sha256-" to the 44-character result.
Yes, parsing and encoding run completely inside browser memory with zero network uploads.
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.