Base64Doc

Base64 Decode & Base64 to Text Converter

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

Full-featured local Base64 to text decoder and binary converter with Live Mode, dirty Data URI sanitization, 66 magic-byte checks, and automatic EUC-KR / Shift_JIS / GB18030 charset healing.

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)

Automatic EUC-KR, Shift_JIS & GB18030 Mojibake Recovery

Eliminate unreadable replacement diamonds when decoding Base64 text from legacy Korean, Japanese, Chinese, or Cyrillic systems.

Read full technical details

Base64 encodes raw 8-bit octets—not character encodings. When older Korean settlement systems (EUC-KR / CP949), Japanese shipping terminals (Shift_JIS), Chinese banking gateways (GB18030 / Big5), or Eastern European servers (Windows-1251) encode non-UTF-8 strings into Base64, conventional decoders hardcode non-fatal UTF-8 and flood the screen with U+FFFD replacement diamonds.

Base64Doc validates every text buffer with TextDecoder("utf-8", { fatal: true }) first. The moment fatal validation catches an illegal UTF-8 sequence, the charset engine scores regional legacy codepages via WHATWG TextDecoder and renders legible Hangul, Kana, Hanzi, or Cyrillic immediately—even offering a diff toggle against broken UTF-8.

Smart Routing From Text Snippets to Binary Previews

Switch effortlessly between decoding short debug strings in Live Mode and unpacking multi-megabyte PDFs or spreadsheets.

Read full technical details

Unlike bare text-only utilities that vomit thousands of random %PDF- symbols into an output textarea when you paste a document string, Base64Doc checks 66 binary signatures on decoded bytes first and opens the matching PDF, Excel, Image, or ZIP preview automatically.

Full Dirty-String Sanitization & Fail-Fast Diagnostics

Clean pasted quotes, Data URI prefixes, and escaped slashes while pinning exact error coordinates on genuinely broken strings.

Read full technical details

Combined with debounced Live Mode and 1-click legacy encoding override selectors, engineers have a single local decoder for both everyday text and complex cross-border troubleshooting.

Step-by-Step Local Workflow

STEP 1

Paste Text Base64, Legacy Payloads, or File Strings

Drop standard or URL-Safe Base64, dirty Data URIs, or JSON logs; Live Mode decodes short snippets automatically while protecting active drafts.

STEP 2

Auto-Route Between Binary Files & Text Streams

Binary headers (PDF, ZIP, images, audio) trigger instant inline previews; text streams pass through strict fatal UTF-8 validation.

STEP 3

Heal Non-UTF-8 Asian or Cyrillic Mojibake

If strict UTF-8 fails, Base64Doc scores EUC-KR/CP949, Shift_JIS, GB18030, Big5, and Windows-1251 candidates automatically and lets you compare or switch with one click.

STEP 4

Copy Clean Text or Export Decoded File

Grab recovered UTF-8 text or save verified binary files directly from browser memory.

Technical Specification Summary

CapabilityBase64Doc BehaviorEngineering Notes
Legacy Charset SniffingEUC-KR, Shift_JIS, GB18030, Big5, Win-1251Triggered automatically whenever TextDecoder("utf-8", { fatal: true }) throws.
Live Mode ThresholdDebounced on interactive textLarge multi-megabyte inputs switch smoothly to async 1 MiB Worker chunks.
Alphabet & Wrapper CleaningStandard, URL-Safe, Data URI, \/Restores omitted = padding and strips outer log formatting automatically.
Binary Detection66 Signatures + OOXMLNever dumps raw PDF or PNG bytes as unreadable ASCII text.
Privacy Posture0 server text uploadsDecoded customer notes, emails, and tokens stay strictly in browser RAM.

Frequently Asked Questions

How does Base64Doc fix garbled Korean, Japanese, or Chinese text after Base64 decoding?

When decoded bytes fail strict fatal UTF-8 validation, Base64Doc scores EUC-KR/CP949, Shift_JIS, GB18030, Big5, and Windows-1251 automatically and recovers the readable text in one click.

Is Live real-time conversion safe for pasting huge strings?

Yes, Live Mode uses debounced execution for interactive text inputs, while multi-megabyte payloads process asynchronously inside a Web Worker with virtualized head/tail output.

Why do other Base64 decoders show question-mark diamonds on valid Korean EUC-KR strings?

They pass raw bytes into non-fatal UTF-8 decoding, which replaces every unmatched legacy multi-byte Hangul sequence with U+FFFD diamonds.

Can I force a specific character encoding like Shift_JIS or Windows-1251 manually?

Yes, use the Charset selector bar above the decoded text result to switch between UTF-8, EUC-KR, Shift_JIS, GB18030, Big5, and Windows-1251 at any time.

What happens if I paste a Base64 PDF or PNG string into this general decoder?

Base64Doc detects the binary magic bytes automatically and switches to the visual PDF or image preview rather than displaying binary gibberish as text.

How do I convert Base64 to plain text without garbled characters?

Base64Doc decodes raw octets through fatal UTF-8 TextDecoder validation first and falls back to EUC-KR, Shift_JIS, GB18030, Big5, or Windows-1251 automatically so converted plain text never shows replacement diamonds.

Explore All 34 Base64 Converters & Developer Tools