Base64Doc

Convert Base64 to Hexadecimal & ASCII

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

Decode RFC 4648 or URL-Safe Base64 into clean hex bytes, inspect paginated 16-byte Offset + Hex + ASCII dumps, and identify binary file headers instantly.

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)

Auditing Cryptographic Digests, Nonces & ASN.1 Certificates in Hex

Inspect raw byte values behind Base64 HMAC signatures, AES initialization vectors, and DER certificates without writing one-off terminal scripts.

Read full technical details

Security headers, SAML assertions, and webhook signatures encode raw binary hashes—such as 32-byte SHA-256 digests or 16-byte AES-GCM IVs—as Base64 strings. Because Base64 packs 6 bits per character, eyeballing bitmasks, ASN.1 length tags (such as 30 82), or null padding bytes directly in Base64 is virtually impossible.

Converting to hexadecimal immediately reveals 1-byte boundaries: two hex nibbles equal one exact octet. Base64Doc pairs raw byte dumping with a clean 16-byte-per-row Offset + Hex + ASCII view so embedded PEM headers or ASCII tags jump right off the screen.

Seamless RFC 4648 Standard & URL-Safe Base64URL Normalization

Decode JWT signature segments and JWK modulus fields containing - and _ without first converting them back to + and /.

Read full technical details

JSON Web Keys (JWKs) and OAuth signatures store RSA/ECDSA coordinates in unpadded Base64URL. Standard terminal pipes choke immediately on hyphens and missing = characters. Base64Doc normalizes -/_ and restores legal modulo-4 padding automatically before emitting exact hex bytes.

Paginated 512-Byte Views for Large Binary Buffers

Step cleanly through multi-kilobyte binary captures page by page without freezing your browser.

Read full technical details

Dumping 5 MB of hex text into a webpage creates 15 million spaced characters. Paginating 512-byte slices keeps rendering snappy while still checking 66 magic signatures on byte offset 0.

Step-by-Step Local Workflow

STEP 1

Paste Standard or URL-Safe Base64 Token

Drop cryptographic digests, JWT signatures, AES IVs, or binary chunks—even unpadded RFC 4648 §5 strings using - and _.

STEP 2

Decode 24-Bit Quartets Into Exact Octets

Each group of 4 Base64 characters converts deterministically into 3 raw bytes (6 hexadecimal nibbles) inside browser memory.

STEP 3

Audit Dual-Column Offset, Hex & Printable ASCII

Inspect bytes in clean 16-byte rows (512 bytes per page) with 8-digit offsets and printable ASCII equivalents side by side.

STEP 4

Copy Clean Hex Bytes or Verify Magic Header

Grab continuous or spaced hex bytes for OpenSSL, Python, or Wireshark comparisons, and view any matched binary file header.

Technical Specification Summary

CapabilityBase64Doc BehaviorEngineering Notes
Quartet-to-Hex Ratio4 Base64 chars = 3 bytes = 6 hex charsA 44-char SHA-256 Base64 string decodes to exactly 64 hex nibbles (32 B).
Inspector Pagination512 bytes/page (16 B/row)Prevents DOM lag when inspecting large ASN.1 DER or binary frames.
Alphabet SupportRFC 4648 §4 (+/) & §5 (-_)Automatically restores missing trailing = padding where len % 4 != 1.
Common Cryptographic Sizes16 B (MD5/AES-128), 32 B (SHA-256)Verify exact byte length instantly beside the hex dump.
Privacy PostureZero server transmissionSafe for production HMAC keys, bearer tokens, and raw TLS certs.

Frequently Asked Questions

Does Base64 to Hex accept URL-Safe Base64 strings containing - and _ without = padding?

Yes, the decoder auto-detects both standard (+/) and URL-Safe (-_) alphabets and restores missing = padding before emitting exact hex bytes.

Can I inspect large binary Base64 buffers page by page without freezing my browser?

Yes, the Hex + ASCII inspector paginates decoded bytes in 512-byte slices arranged in 16-byte offset rows.

Why does a 44-character Base64 SHA-256 hash decode to 64 hexadecimal characters?

A SHA-256 hash is 32 bytes (256 bits): Base64 encodes 32 bytes into 44 characters (including one = pad), while hex represents each byte as 2 nibbles (64 chars).

What if the Base64 string contains whitespace or JSON escaped \/ slashes?

Base64Doc strips surrounding quotes, whitespace, and JSON \/ escapes cleanly before decoding to hex, pinpointing any remaining illegal character by line and column.

Is it safe to decode production API secret keys or JWT signatures to hex here?

Yes, all Base64-to-hex byte math runs strictly inside local browser memory with zero network calls and masked input elements.

Explore All 34 Base64 Converters & Developer Tools