Base64 to Hexadecimal Converter

Paste a Base64 string and instantly get the equivalent hexadecimal representation of its decoded bytes.

Use the Base64 to Hexadecimal Converter

Base64 Input

Hexadecimal Output

Copied!

Summary

This tool decodes a Base64-encoded string to its raw bytes, then represents those bytes as a hexadecimal string. It supports both standard Base64 (RFC 4648) and URL-safe Base64 (with - and _ instead of + and /). You can also choose between uppercase and lowercase hex output, and add a space between every byte for readability.

How it works

  1. Paste or type your Base64 string into the input field.
  2. The tool normalizes URL-safe characters (- → +, _ → /) before decoding.
  3. Missing Base64 padding (=) is added automatically.
  4. The decoded bytes are converted to their two-hex-digit representations.
  5. The result appears immediately; click Copy to copy it to your clipboard.

Use cases

  • Inspect the raw bytes of a Base64-encoded value from a JWT header or payload.
  • Convert Base64-encoded cryptographic hashes or keys to hex for comparison.
  • Debug binary data encoded in Base64 transport layers.
  • Translate Base64 color codes or pixel data into hex byte sequences.
  • Verify that two Base64 strings encode the same underlying bytes.
  • Examine image or file data embedded as Base64 strings.

Frequently Asked Questions

Last updated: 2026-05-28 · Reviewed by Nham Vu