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)
Generate clean URL-safe strings using - and _ with trailing = padding omitted by default for safe query strings, JWT claims, and file names.
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.
Encode tokens safely for query strings, path segments, and HTTP cookies without +, /, or = breaking routers and parsers.
Passing standard Base64 inside an HTTP URL creates three immediate failure points: + gets decoded as an ASCII space by application/x-www-form-urlencoded parsers, / splits URL route matching into unintended path segments, and = collides with query-parameter key/value separators.
RFC 4648 §5 Base64URL substitutes - for + and _ for / while omitting trailing = signs. Every emitted character is an unreserved URI character under RFC 3986—eliminating ugly %2B and %2F percent-encoding.
Craft JWT header/payload mocks, safe S3/R2 object keys, and filesystem-friendly tokens in seconds.
Because / is illegal in POSIX and Windows filenames and + often causes issues in shell scripts, unpadded Base64URL doubles as a clean filename-safe encoding for content hashes and short binary identifiers.
Keep trailing = omitted for modern web specs or toggle it on with one click when older libraries require divisible-by-4 strings.
While RFC 7515/7519 forbid = padding inside JWTs, certain older Java or Python urlsafe_b64decode callers still require multiples of 4. One checkbox flips padding without re-entering input.
Type plain text, paste JSON JWT payloads, or drop a binary signature/key file; everything stays local inside your browser.
Defaults are pre-set to URL-Safe (-/_) and Omit Trailing = so output avoids +, /, and = characters completely.
Leave = omitted for JWT (RFC 7519), OAuth PKCE, and URLs, or switch padding on for legacy servers demanding multiples of 4.
Grab the clean token directly or switch to JavaScript, Python, Go, or Bash snippets implementing Base64URL.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| Default Alphabet | A–Z, a–z, 0–9, "-", "_" | Safe in URL paths, query strings, cookies, and POSIX/Windows filenames. |
| Default Padding Setting | Omit trailing "=" enabled | Matches JWT, JWS, JWE, and OAuth 2.0 PKCE specifications. |
| URL Escaping Savings | Zero %2B / %2F / %3D bloat | Avoids double-encoding bugs across reverse proxies and gateways. |
| Text Serialization | UTF-8 byte stream (TextEncoder) | Supports international characters and emoji identically across platforms. |
| Chunked File Support | 786 KB Web Worker streaming | Encodes multi-megabyte payloads cleanly into URL-safe format too. |
Yes, RFC 4648 §5 and JWT/OAuth2 specifications omit = padding because = acts as a query-parameter delimiter in URLs; Base64Doc lets you toggle it freely.
Yes, all text inputs convert through UTF-8 byte streams via TextEncoder before applying the - and _ alphabet.
Yes, when trailing = is omitted, every character belongs strictly to [A-Za-z0-9_-], avoiding slashes and reserved filesystem symbols.
Replace + with -, / with _, and strip trailing = signs; or decode on /base64-decode and re-encode here if you want byte-verified conversion.
HTTP query parsers following application/x-www-form-urlencoded decode unescaped + (0x2B) characters as ASCII spaces (0x20). Encoding with RFC 4648 §5 Base64URL (- and _) eliminates that collision permanently.
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.