Converter
Hex to Base64 Converter
Input
Output
Run process to generate output.
Frequently Asked Questions
Why convert hex to Base64?
Base64 is more compact than hex and is the standard encoding for embedding binary data in HTTP headers, JSON payloads, data URIs, and email attachments. Converting hex (from a hash or binary dump) to Base64 is common when working with web APIs.
Do spaces in hex input matter?
This tool strips spaces before converting, so 'DE AD BE EF' and 'DEADBEEF' produce the same result. Ensure your hex input uses an even number of characters (each byte is exactly 2 hex digits).
Is Base64 from hex the same as encoding the original string in Base64?
Only if the hex exactly represents the UTF-8 bytes of the string. For example, hex '48656c6c6f' is the UTF-8 bytes of 'Hello', and its Base64 is 'SGVsbG8='. But if the hex encodes arbitrary binary (not text), the Base64 output is not the same as Base64-encoding the text.