Base64 to HEX Converter

Tool for converting Base64 data to hexadecimal format with various formatting options

This online Base64 to HEX converter supports multiple formatting options such as colon-separated and 0x-prefixed output.

Quickly convert Base64 to hexadecimal in your browser with no server upload.

Input Base64

HEX Output

About Base64 to HEX Converter

This tool allows you to convert Base64 encoded data to hexadecimal (HEX) format with various display options. Base64 is a binary-to-text encoding scheme commonly used to represent binary data in a format that is not affected by text processing systems.

Available HEX output formats

  • Plain - Simple uppercase hex characters (DEADBEEF)
  • With Dashes - Pairs separated by dashes (DE-AD-BE-EF)
  • With 0x Prefix - Each byte has 0x prefix (0xDE 0xAD 0xBE 0xEF)
  • With Colons - Pairs separated by colons (DE:AD:BE:EF)
  • Lowercase - Simple lowercase hex characters (deadbeef)
  • With Spaces - Pairs separated by spaces (DE AD BE EF)

What is Base64 and Why Convert it to HEX?

Base64 is a text-based encoding scheme used to represent binary data using ASCII characters. It's commonly used in web development, email attachments, cryptographic operations, and data serialization formats like JSON and XML.

While Base64 is great for safe data transmission, it's not ideal for low-level analysis, debugging, or binary inspection. That’s where HEX (hexadecimal) comes in. HEX offers a more compact and readable view of raw bytes, making it perfect for developers, network engineers, and security analysts.

Why Convert Base64 to HEX?

  • Debugging & Inspection: View byte-level structure of data easily
  • Security Analysis: Examine encoded malware signatures or binary payloads
  • Protocol Development: Inspect headers, tokens, and low-level structures
  • Storage Optimization: Use precise representations for logs or dumps

How the Conversion Works

To convert Base64 to HEX, the process involves two steps:

  1. Decode the Base64 string into its original binary (byte array)
  2. Convert each byte to a two-digit hexadecimal representation

For example:

Base64: SGVsbG8= → HEX: 48 65 6C 6C 6F

Our online Base64 to HEX converter performs this conversion locally in your browser, with options for spacing, prefix styles, case formatting, and more — no data is sent to any server.

FAQ

Is this Base64 to HEX converter free?

Yes, it's completely free with no registration, ads, or usage limits.

Do you store my Base64 data?

No, all decoding and conversion runs locally in your browser. Your data never leaves the page.

What formats can I output HEX in?

Six: Plain, With Dashes, With 0x Prefix, With Colons, Lowercase, and With Spaces. Pick one from the format dropdown.

What happens if my Base64 is invalid?

The tool shows an inline error toast via the browser's atob validation. Fix padding (=) or invalid characters and it will convert instantly.

Can I convert HEX back to Base64?

Yes — use the reverse tool: HEX to Base64 converter.

Does the tool support Base64URL encoding?

Standard RFC 4648 Base64 is supported. For URL-safe variants, replace - with + and _ with / before pasting.

I converted a PEM block to HEX — how do I decode the bytes?

Pipe the HEX output into the ASN.1 Viewer & X.509 / PKCS Decoder to parse DER-encoded certificates, CSRs, PKCS#7/CMS envelopes and private keys into a readable tree.

Base64 and HEX Learning Resources

To deepen your understanding of Base64 and hexadecimal encoding, here are curated external resources: