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)
Convert plain text, JSON, or large local files into Standard, URL-Safe, or MIME 76-column Base64 with omit-padding options and instant developer 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.
Switch cleanly between API single-line Base64, unpadded URL-Safe tokens, and 76-character MIME email blocks without terminal flag headaches.
Base64 is not a single rigid output shape. HTTP Basic Authorization headers require Standard RFC 4648 with = padding on one line; raw .eml email bodies and legacy PEM tools expect CRLF line breaks every 76 characters per RFC 2045; and OAuth query strings demand §5 URL-Safe without padding.
Rather than remembering whether GNU Linux base64 wraps at 76 columns by default while macOS BSD base64 omits wrapping, toggle the exact dialect switches in one clean toolbar and preview real-time byte totals.
Encode multi-byte Korean, Japanese, Chinese, Arabic, and emoji text reliably into deterministic UTF-8 Base64.
Using TextEncoder("utf-8") before 6-bit grouping guarantees identical output across Chrome, Safari, Node.js, Python, and Go backends—eliminating the InvalidCharacterError exceptions thrown by legacy window.btoa() calls.
Move from quick browser test to production implementation immediately using pre-populated snippets in 6 languages and 6 markup wrappers.
Every encoding run populates ready-to-copy snippets for Raw Base64, Data URIs, HTML, CSS, Markdown, JSON, JavaScript, Python, C#, Go, Bash, and PowerShell—all locally in browser memory.
Enter multi-language text, paste credentials/headers, or drop a 100 MB+ local file; Live Mode updates text output immediately as you type.
Pick Standard (+/) or URL-Safe (-_), toggle 76-character CRLF wrapping for email/PEM bodies, and decide whether to omit trailing =.
Track exact input bytes, encoded character length, and +33.33% serverless gateway status lights.
Copy the encoded string, stream-save .txt for huge files, or grab ready-to-run snippets across 12 formats and programming languages.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| Standard Alphabet | RFC 4648 §4 (A–Z, a–z, 0–9, +, /) | Universal default for HTTP Basic Auth, JSON payloads, and Data URIs. |
| Email Line Folding | RFC 2045 MIME (76 chars + \r\n) | Adds ~2.6% CRLF overhead; enable for SMTP/EML parts, disable for APIs. |
| Text Byte Encoding | UTF-8 via TextEncoder | Consistent cross-OS output matching Linux/macOS/Python UTF-8 streams. |
| Large File Engine | 786 KB Worker chunks + Virtual UI | Handles 100 MB+ binaries smoothly alongside tiny 10-byte text strings. |
| Developer Templates | 12 live snippet formats | Includes Bash (-w 0 vs macOS BSD), PowerShell, Go, C#, Python, and JS. |
Enable 76-character CRLF wrapping when embedding Base64 attachments inside raw .eml email bodies or legacy PEM/MIME transports, and disable it for JSON APIs.
Yes, all text strings encode via TextEncoder UTF-8 byte streams so Korean, Japanese, Chinese, Cyrillic, and emoji encode identically to backend UTF-8 libraries.
Enter "username:password" in Standard RFC 4648 mode with padding enabled and 76-char line wrapping off, then prefix the output with "Basic ".
Base64 emits 4 characters per 3-byte group; when final input bytes are 1 or 2 short of a 3-byte group, = or == pads the output length to a multiple of 4.
No, text encoding runs strictly inside browser memory with zero network transmissions, masked textareas, and stripped analytics URLs.
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.