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.

Learn More