Understanding Base64 Decoding, Magic Bytes, & File Reconstruction
Base64 decoding reverses binary-to-text encoding by mapping groups of four 6-bit Base64 characters back into three 8-bit binary bytes ($4 \times 6 = 24$ bits = 3 bytes). Decoded byte streams can represent UTF-8 text strings, JSON documents, or raw binary payloads such as PNG images, PDF files, or ZIP archives.
Magic Byte File Signature Inspector Table
| File Format | Magic Bytes (Hex) | Detected MIME Type |
|---|---|---|
| PNG Image | 89 50 4E 47 0D 0A 1A 0A | image/png |
| JPEG Image | FF D8 FF | image/jpeg |
| GIF Image | 47 49 46 38 | image/gif |
| PDF Document | 25 50 44 46 (%PDF) | application/pdf |
| ZIP Archive | 50 4B 03 04 (PK..) | application/zip |
100% Local Browser Privacy & Security
Base64 strings often contain sensitive payload data or private tokens. Our decoder runs 100% locally in your web browser using JavaScript Web Workers. Zero tokens, files, or payload data leave your machine.