Base64Doc

Decode & Decompress Gzip + Base64 Payloads

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

Eliminate two-step terminal pipes: paste a Base64 string wrapping 1F 8B Gzip bytes to decompress, format inner JSON/XML, and unpack nested attachments locally.

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)

One-Step H4sI... Decompression for Cloud Logs & Webhooks

Turn unreadable Gzip + Base64 log strings straight into formatted JSON or XML without switching to a terminal pipe.

Read full technical details

AWS CloudWatch Subscriptions, OpenTelemetry exporters, legacy SOAP/SAML endpoints, and high-throughput ERP webhooks routinely compress JSON before Base64-encoding it. Every normal Base64 decoder stops halfway—dumping raw 1F 8B binary gibberish onto the screen.

Whenever Base64Doc detects RFC 1952 Gzip headers (1F 8B 08, deterministically starting with H4sI in Base64), it automatically triggers a local fflate gunzipSync pass inside the Web Worker and renders the decompressed JSON, XML, or plain text immediately.

Recursive Unpacking & EUC-KR Recovery After Decompression

Automatically unpack PDFs nested inside gunzipped JSON and repair garbled EUC-KR or Shift_JIS text hidden inside compressed payloads.

Read full technical details

Real-world integrations frequently nest formats: a JSON webhook arrives Gzip-compressed and Base64-encoded, and inside the gunzipped JSON sits another Base64-encoded thermal PDF or legacy Korean EUC-KR receipt.

Rather than forcing two manual decode passes, Base64Doc recursively feeds the inflated payload back through its attachment scanner and legacy charset sniffer so both nested documents and international text appear cleanly.

Distinguishing Gzip (.gz) From Raw Deflate & PKZIP Archives

Catch zlib (78 9C) or PKZIP (50 4B 03 04) streams accurately rather than crashing with generic gunzip errors.

Read full technical details

If a payload actually uses zlib framing (eJw...) or ZIP containers (UEsDB...) instead of RFC 1952 Gzip, magic-byte inspection flags the exact compression format immediately.

Step-by-Step Local Workflow

STEP 1

Paste Gzipped Base64 (H4sI...) or Log Line

Drop Base64 strings starting with H4sI from CloudWatch, Envoy, SAML, or compressed ERP webhooks—even wrapped inside JSON quotes.

STEP 2

Verify RFC 1952 1F 8B 08 Header & Gunzip Locally

Base64Doc strips wrappers, confirms 1F 8B Gzip magic bytes, and inflates the compressed stream in memory via fflate gunzipSync.

STEP 3

Inspect Pretty JSON, Nested Files, or Recovered Text

View formatted inner JSON/XML, unpack any secondary Base64 PDF/Excel attachments inside the gunzipped response, or heal legacy EUC-KR text.

STEP 4

Copy Output or Save Decompressed Artifact

Copy the legible JSON/text payload or download extracted files directly from browser memory.

Technical Specification Summary

CapabilityBase64Doc BehaviorEngineering Notes
Gzip Header Signature1F 8B 08 (Base64: H4sI...)RFC 1952 ID1=0x1F, ID2=0x8B, CM=0x08 (Deflate compression).
Two-Stage PipelineBase64 -> fflate gunzipSyncReplaces `base64 -d | gunzip` terminal chains inside browser RAM.
Recursive ExtractionScans gunzipped JSON/XMLPulls nested PDF or spreadsheet Base64 payloads out of inflated logs.
Legacy Charset HealingUTF-8 -> EUC-KR / Shift_JISRecovers non-UTF-8 Asian/Cyrillic text hidden inside compressed streams.
Upload ExposureZero server gunzip callsSafe for production trace payloads and SAML assertions.

Frequently Asked Questions

What happens if the gunzipped payload contains another Base64 attachment or legacy EUC-KR text?

Base64Doc recursively scans decompressed JSON or XML for nested Base64 attachments and applies fatal UTF-8 plus EUC-KR/Shift_JIS charset sniffing automatically.

Does Gzip + Base64 decompression run on your server?

No, fflate executes gunzipSync strictly inside your browser Web Worker with zero network calls or payload retention.

Why do Gzip + Base64 strings almost always begin with H4sI?

RFC 1952 Gzip streams begin with magic bytes 1F 8B and compression method 08 (Deflate), which encode to the four Base64 characters H4sI.

What if my compressed Base64 string starts with eJw instead of H4sI?

Strings beginning with eJw (78 9C) use raw zlib deflate framing rather than Gzip 1F 8B headers, so standard gunzip rejects them without a zlib header wrapper.

Can I still download the raw .gz binary before decompression if needed?

Yes, Base64Doc lets you download the decoded .gz binary directly or copy and save the inflated JSON/text payload.

Explore All 34 Base64 Converters & Developer Tools