Convert Hexadecimal Byte Strings to Standard Base64 or Base64url
When working with SHA-256 digests, AES encryption keys, UUIDs, or Subresource Integrity (SRI) hashes, you often need to convert raw hexadecimal bytes into Base64. Paste any hex format here for instant conversion.
Accepts Spaced, Colon-Separated & 0x-Prefixed Hex
Whether your hex bytes are continuous (48656C6C6F), space-separated (48 65 6C 6C 6F), colon-separated (48:65:6C), or 0x-prefixed (0x48 0x65), 64Encode strips delimiters and converts the exact raw bytes to Base64.
Why Hex-to-Base64 Differs from Text-to-Base64
Encoding the text "4865" treats each digit as an ASCII character, whereas Hex-to-Base64 parses 0x48 and 0x65 as raw binary bytes ("He"). To convert Base64 back to hex, use Base64 to Hex on 64Decode.