Hex to Base64 Converter
Convert any hex code (0-9, A-F) to a base64 encoded string. Paste your hex string below, get instant base64 output, and learn how the conversion works.
Base64 output
Example: Hex to Base64
- Hex input:
48656c6c6f20776f726c64
Base64 output:SGVsbG8gd29ybGQ=
"Hello world" in hex is48656c6c6f20776f726c64
. Its base64 encoding isSGVsbG8gd29ybGQ=
.
How to Convert Hex to Base64?
- Paste or enter your hexadecimal string in the input box.
- Click Convert.
- The output box will display the base64 encoded result.
What is Hex to Base64 Conversion?
Hexadecimal (base 16) is a way to represent binary data as 0-9 and A-F. Base64 encodes binary data as printable ASCII. It's widely used for URLs, emails, JSON APIs, file embeds, and cryptography.
FAQ
- Can I use uppercase and lowercase hex?
Yes, both uppercase (A-F) and lowercase (a-f) are valid. - Why is my result blank?
Make sure you enter a valid hex string with even length (every byte is two hex digits). - What is base64 used for?
Base64 is used for embedding binary data in web pages, emails, and APIs that need only text. - Is this tool secure?
Yes. All conversion happens in your browser, nothing is sent anywhere.