A virtual teacher who reveals to you the great secrets of Base64

Hex to Base64

The “Hex to Base64” converter is a smart tool which is able to convert online Hex values to Base64 strings. I call him “smart” because it accepts several written representations of hexadecimal values. The conversion process is quite simple: the converter decodes the Hex value into the original data, then encodes it to Base64 and gives you the final result almost instantly. If you are looking for the reverse process, check Base64 to Hex.

How to convert Hex to Base64

  1. Type or paste your hexadecimal value into the “Hex” field.
  2. Press the “Convert Hex to Base64” button.
  3. Download or copy the result from the “Base64” field.
Comments (2)

I hope you enjoy this discussion. In any case, I ask you to join it.

  • Abdelrahman,
    Could you please send me code of converting string (hexa) to base 64 ?
    • Jana,

      """Convert Hex string to Base64"""
      import base64

      HEX_STRING = '49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d'

      BYTE_ARRAY = bytearray.fromhex(HEX_STRING)
      BASE64_VAL = base64.b64encode(BYTE_ARRAY)
Add new comment

If you have any questions, remarks, need help, or just like this page, please feel free to let me know by leaving a comment using the form bellow.
I will be happy to read every comment and, if necessary, I will do my best to respond as quickly as possible. Of course, spammers are welcome only as readers.