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 audio Base64 or JSON payloads to verify MP3/WAV/OGG magic bytes, play audio directly in your browser via Blob URL, and download clean files.
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.
Paste raw JSON responses from Text-to-Speech endpoints and listen immediately inside the browser without saving temporary .mp3 files.
Developers tuning pronunciation, SSML pauses, or speech rate across Text-to-Speech APIs often inspect dozens of JSON responses carrying audioContent Base64 fields. Saving test1.mp3 through test20.mp3 to your Downloads folder just to hear a three-second prompt slows iteration down.
Base64Doc extracts the Base64 field directly from pasted JSON, decodes it to a local Blob URL, and mounts a native HTML5 audio player right inside the preview pane so you can verify audio clarity in one click.
Inspect audio magic bytes before saving so uncompressed WAV or Ogg Opus payloads never get saved with a misleading .mp3 extension.
Misconfigured TTS presets frequently request LINEAR16 (uncompressed WAV) or OGG_OPUS while test scripts blindly append .mp3. Checking RIFF...WAVE (52 49 46 46), OggS (4F 67 67 53), and fLaC (66 4C 61 43) headers prevents broken desktop playback and shows the true format immediately.
Play multi-minute voice recordings cleanly without hitting URL truncation bugs in Chromium or Safari audio elements.
Passing a decoded Uint8Array into Blob and mounting an Object URL gives browsers native seekable byte access in memory and automatically frees RAM when you load the next clip.
Drop a raw MP3 Base64 string, Data URI, or complete Text-to-Speech JSON response containing an audioContent key.
Base64Doc scans leading octets for ID3/MPEG frames, RIFF WAVE, OggS, or fLaC headers so mislabeled audio containers are caught immediately.
Press play on the embedded HTML5 <audio controls> widget powered by a safe local Blob URL—even on multi-megabyte voice recordings.
Save the clean audio file under its verified extension (.mp3, .wav, or .ogg) with zero server storage.
| Capability | Base64Doc Behavior | Engineering Notes |
|---|---|---|
| Inline Playback Mechanism | Blob([bytes], { type }) -> <audio> | Avoids browser Data URI length caps on long TTS voice clips. |
| Detected Audio Codecs | MP3 (ID3/Sync), WAV, OGG, FLAC | Alerts immediately if a TTS API returned WAV instead of MP3. |
| TTS JSON Key Support | audioContent / audio / payload | Unpacks nested Base64 audio straight from pasted API JSON responses. |
| Memory Cleanup | Automatic URL.revokeObjectURL() | Frees previous audio buffers whenever you paste a new sample. |
| Client Privacy | 100% browser RAM decoding | Confidential voicemails and medical dictations stay strictly local. |
Yes, Base64Doc mounts a native HTML5 audio player driven by a local Blob URL that revokes automatically when you switch files.
Base64Doc detects RIFF WAVE (52 49 46 46) or OggS (4F 67 67 53) magic bytes automatically and flags the mismatch. You can still audition the clip inline and save it with the true .wav or .ogg extension.
Yes, the payload extractor parses the JSON automatically, isolates the Base64 audio string, and names the downloadable clip from its JSON key.
Uncompressed PCM WAV stores raw samples (often ~176 KB/sec for stereo 44.1 kHz) whereas compressed MP3 uses ~16–40 KB/sec before +33.33% Base64 expansion.
No, decoding and HTML5 playback run strictly in local browser memory with zero outbound audio 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.