Base64Doc

Decode Base64 JSON & Unpack API Attachments

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

Decode Base64-encoded JSON objects with charset self-healing, or paste full Postman/REST JSON envelopes to unpack and name every embedded file automatically.

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)

Two High-Frequency JSON Workflows Solved in One Workbench

Decode Base64-wrapped JSON tokens cleanly, or paste whole 50,000-line REST JSON envelopes to extract every embedded document without manual text hunting.

Read full technical details

Engineers dealing with JSON and Base64 face two opposite headaches daily. First, OAuth state parameters, Pub/Sub messages, and cursor tokens arrive as Base64 strings (typically opening with eyJ for {" ) that decode into compact JSON objects—often encoded with legacy regional charsets or URL-Safe characters.

Second, ERP, customs, and shipping APIs return massive JSON objects hiding multiple Base64 PDFs, Excel workbooks, or PNG labels inside nested keys like response.documents[0].content. Base64Doc detects which input you pasted automatically: decoding eyJ... strings into legible formatted JSON, or walking raw JSON trees to surface every binary attachment in named tabs.

Automatic Escaped-Slash Cleaning & Outer-Key File Naming

Eliminate JSON \/ escape errors and generic application (1).pdf downloads with intelligent property-name derivation.

Read full technical details

Many PHP, Java, and Go JSON serializers escape every forward slash inside Base64 as \/. Standard decoders crash on the very first backslash. Base64Doc normalizes \/ back to /, inspects sibling filename/fileName keys or parent property names, and pairs each extracted file with 66 magic-byte checks.

One-Click .zip Packaging for Multi-Attachment API Responses

Bundle all extracted PDFs, spreadsheets, and images from a single API call into one verified .zip download locally.

Read full technical details

When debugging multi-document webhooks returning packing slips alongside customs forms, fflate packs every verified attachment into one clean .zip archive directly in browser memory.

Step-by-Step Local Workflow

STEP 1

Paste Base64 JSON String or Whole REST Envelope

Drop either an encoded Base64 string representing JSON (starting with eyJ...) or an entire multi-kilobyte Postman/webhook JSON response.

STEP 2

Auto-Route Between JSON Decode & Attachment Unpack

If input is Base64, Base64Doc decodes and pretty-prints the JSON (recovering EUC-KR/Shift_JIS if needed); if raw JSON, it scans every nested key for embedded Base64 files.

STEP 3

Inspect Extracted Tabs Named by Outer Keys

Switch across auto-named attachment tabs (such as waybill_label.pdf or invoice_data.xlsx) derived from sibling fileName fields or JSON keys.

STEP 4

Copy Formatted JSON or Export .zip Bundle

Copy the decoded JSON object, preview extracted PDFs/Excel sheets inline, or download every attachment together in one .zip archive.

Technical Specification Summary

CapabilityBase64Doc BehaviorEngineering Notes
JSON Decode TriggereyJ... (7B 22) / W3... (5B)Handles both Standard (+/) and Base64URL (-_) serialized JSON tokens.
JSON Envelope ExtractionRecursive key + fileName walkStrips JSON \/ escaped forward slashes and literal \r\n automatically.
Charset RecoveryUTF-8, EUC-KR, Shift_JIS, GB18030Fixes garbled Asian strings inside legacy decoded JSON responses.
Multi-File BundlingClient-side fflate .zip exportZero server round-trips even when unpacking 5+ API attachments.
Privacy Posture0 payload bytes transmittedSafe for OAuth userinfo claims, PII webhooks, and carrier payloads.

Frequently Asked Questions

How does Base64Doc handle both a Base64-encoded JSON string and a JSON response containing Base64 files?

If you paste a Base64 string whose decoded bytes are JSON, it decodes and recovers charsets automatically; if you paste raw JSON, it scans every nested key to unpack embedded binary attachments.

Does it unescape JSON forward slashes like \/ before decoding?

Yes, the sanitizer converts \/ back to / and strips JSON wrapper quotes and literal \r\n escapes cleanly before Base64 decoding runs.

Why do Base64-encoded JSON objects almost always start with eyJ?

Because JSON objects begin with opening brace and quote characters {" (hex 7B 22), which encode deterministically to eyJ in Base64.

How does the unpacker name files extracted from a large JSON response?

It reads sibling fileName or filename keys when available, or falls back to the enclosing JSON property name paired with the magic-byte-verified extension.

Can I paste a Base64 JSON payload encoded in EUC-KR or Shift_JIS without garbled text?

Yes, strict UTF-8 failure automatically triggers regional legacy charset scoring so Korean, Japanese, Chinese, or Cyrillic JSON values render cleanly.

Explore All 34 Base64 Converters & Developer Tools