Base64Doc

Decode Base64 to Verified Local Files

100% Browser Local · 0 File Uploads · 100MB+ Ready

Not sure what file type a Base64 payload holds? Decode in a local Web Worker, identify 60+ binary signatures automatically, preview inline, and save the exact file extension.

Try 1-Click Synthetic Samples (Zero-Trademark):

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.

0 chars
Decoded Result & Document Actions Appear Here

Paste any Base64 string, Data URI, Postman JSON, SOAP XML, HAR, or EML payload on the left.

Interactive Synthetic Showcase Gallery

Load real client-side verified payloads straight into the workbench above. Zero third-party trademarks.

Free · InstantCASE-1

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)
Real browser-decoded output preview (client-side only)
Free · InstantCASE-2

ERP Payload -> PK\x03\x04 Verified 3-Sheet Excel Preview

Input Payload
ERP Base64 Payload (122.8 KB)
Verified Output
Summary (128 rows x 11 cols), LineItems (48 rows), Tax (24 rows) -> .xlsx / .csv / .json
Real browser-decoded output preview (client-side only)
Free · InstantCASE-3

Broken Data URI + MIME Fix + White Transparent Logo

Input Payload
Broken data:image/jpeg;base64 + \/ + newlines (4.9 KB)
Verified Output
Auto-fixed to image/png (512x512 px) + Checkerboard reveals white emblem
Real browser-decoded output preview (client-side only)
Free · InstantCASE-4

Gzip + Base64 Unpack & Korean EUC-KR Mojibake Self-Heal

Input Payload
Gzipped Base64 (212 chars) + EUC-KR Receipt
Verified Output
Gunzipped JSON + EUC-KR Hangul receipt recovered from UTF-8 replacement chars
Real browser-decoded output preview (client-side only)
Free · InstantCASE-5

40-Page Contract Slimming + Gateway Green-Light Check

Input Payload
40-Page Synthetic Contract PDF (33.7 KB)
Verified Output
Extract Page 1 -> +33.3% Base64 fits comfortably under 4.5 MB Vercel limit
Real browser-decoded output preview (client-side only)

Identifying Mystery Base64 Payloads With 66 Binary Signatures

Stop guessing whether an opaque Base64 log entry is a PDF, SQLite database, Gzip archive, or compiled binary before writing it to disk.

Read full technical details

Engineers triaging webhook queues, database BLOB columns, or email MIME parts often encounter anonymous Base64 strings lacking both filename and Data URI headers. Guessing .txt produces unreadable gibberish; guessing .pdf when the stream actually starts with 1F 8B 08 (Gzip) or 53 51 4C 69 74 65 (SQLite) triggers confusing app errors.

Base64Doc inspects decoded bytes locally against 66 deterministic magic signatures—including offset-aware matches like ISO BMFF ftyp video atoms at offset 4 and RIFF WAVE/WEBP subtypes at offset 8—while automatically extracting container manifests inside PK\x03\x04 archives.

Paginated Hex + ASCII Inspector for Uncommon Proprietary Binaries

Audit firmware blobs, Protobuf frames, ASN.1 certificates, and custom binary headers in 512-byte Hex + ASCII pages without leaving the browser.

Read full technical details

When a decoded payload represents a custom RPC frame, DER certificate (30 82), or WebAssembly module (00 61 73 6D), visual document viewers naturally cannot render it. Rather than showing an unhelpful blank download link, Base64Doc switches smoothly to a dual-column Hex and printable ASCII table.

Paginating 512 bytes per page (32 rows of 16 bytes) keeps memory steady even on multi-megabyte binary blobs while letting you scan leading magic offsets immediately.

Built-In Envelope Extraction for APIs & Email Logs

Paste entire JSON, XML, HAR, or EML captures to uncover every embedded binary file automatically.

Read full technical details

If your mystery Base64 lives inside a multi-megabyte network trace or JSON object, you do not need to carve it out first. Base64Doc extracts every embedded binary, assigns smart names from enclosing JSON keys, and lets you inspect or zip the lot.

Step-by-Step Local Workflow

STEP 1

Paste Unknown Base64 or Full Log Payload

Drop any unidentified Base64 string, Data URI, or multi-line JSON/XML payload; the cleaner automatically removes outer quotes, whitespace, and JSON escapes.

STEP 2

Run 66-Signature Magic-Byte Fingerprinting

The Web Worker decodes raw octets and checks headers across documents, images, media, archives, SQLite databases, ELF/Mach-O/PE executables, and WASM modules.

STEP 3

Preview Inline or Audit Hex + ASCII Offsets

Known formats open native PDF, spreadsheet, image, ZIP-tree, or media viewers; uncommon binaries render in a paginated 512-byte Hex + ASCII inspector.

STEP 4

Download With Verified File Extension

Save the output file with the exact signature-matched extension instead of guessing .bin or .txt blindly.

Technical Specification Summary

CapabilityBase64Doc BehaviorEngineering Notes
Signature Coverage66 Magic Signatures + OOXMLCovers PDF, PNG/JPEG/WebP/SVG, ZIP/7z/RAR/Gzip, SQLite, WASM, ELF, Mach-O.
Container DisambiguationPK\x03\x04 [Content_Types].xmlSeparates .xlsx, .docx, .pptx, .epub, .odt, and .jar from plain .zip.
Binary Fallback Inspector512 B/page Hex + ASCII (16 B rows)Inspect raw protocol headers without freezing browser layout.
UTF-8 & Legacy Text SnifferUTF-8, EUC-KR, Shift_JIS, GB18030Automatically rescues readable text payloads when bytes are non-binary.
Privacy GuaranteeZero server file uploadsSafe for unknown incident artifacts, SQLite dumps, and internal keys.

Frequently Asked Questions

How does Base64Doc identify an unknown Base64 string without a filename?

It decodes raw bytes locally and scans 66 magic-byte signatures plus internal PK\x03\x04 XML manifests to distinguish PDF, XLSX, DOCX, PNG, MP4, Gzip, SQLite, ELF, and more.

What if the Base64 decodes to an uncommon binary format without a visual preview?

Base64Doc opens a paginated 512-byte Hex + ASCII inspector showing 16-byte row offsets so you can audit headers and download the exact binary.

Can this decoder recognize compiled binaries like WASM, ELF, or Mach-O?

Yes, the signature catalog detects 00 61 73 6D (.wasm), 7F 45 4C 46 (ELF), and FE ED FA CE/CF (Mach-O) headers accurately.

What happens if the Base64 string actually decodes to Korean EUC-KR or UTF-8 text?

If no binary magic header matches and bytes look textual, Base64Doc validates UTF-8 and automatically sniffs EUC-KR, Shift_JIS, GB18030, Big5, and Windows-1251.

Is there a maximum file size when decoding unknown Base64 blobs here?

No artificial cap applies; Web Worker quartet chunking decodes multi-megabyte payloads in 1 MiB blocks inside browser RAM.

Explore All 34 Base64 Converters & Developer Tools