Hex to Base64 Converter

Turn a hexadecimal byte dump into a compact Base64 value for a protocol, test fixture or configuration. Read the hex bytes before applying Base64 encoding.

Input: Hexadecimal byte valuesResult: Base64 text

Text input

Run to see the result

Examples

Bitcoin genesis newspaper headline

Input

54 68 65 20 54 69 6d 65 73 20 30 33 2f 4a 61 6e 2f 32 30 30 39 20 43 68 61 6e 63 65 6c 6c 6f 72 20 6f 6e 20 62 72 69 6e 6b 20 6f 66 20 73 65 63 6f 6e 64 20 62 61 69 6c 6f 75 74 20 66 6f 72 20 62 61 6e 6b 73

Expected answer

VGhlIFRpbWVzIDAzL0phbi8yMDA5IENoYW5jZWxsb3Igb24gYnJpbmsgb2Ygc2Vjb25kIGJhaWxvdXQgZm9yIGJhbmtz
A registry credential from Kubernetes documentation

Input

74 69 67 65 72 3a 70 61 73 73 31 32 33 34

Expected answer

dGlnZXI6cGFzczEyMzQ=
A checksum-sensitive log line with a final newline

Input

65 76 65 6e 74 3d 64 65 70 6c 6f 79 20 73 74 61 74 75 73 3d 72 65 61 64 79 0a

Expected answer

ZXZlbnQ9ZGVwbG95IHN0YXR1cz1yZWFkeQo=
A French café in precomposed Unicode

Input

63 61 66 c3 a9

Expected answer

Y2Fmw6k=
A French café with a separate combining accent

Input

63 61 66 65 cc 81

Expected answer

Y2FmZcyB
Chinese text in a UTF-8 request body

Input

e4 bd a0 e5 a5 bd ef bc 8c e4 b8 96 e7 95 8c

Expected answer

5L2g5aW977yM5LiW55WM
A literal plus and space inside a URL parameter

Input

72 65 6c 65 61 73 65 20 6e 6f 74 65 73 2b 41 2f 42 3f

Expected answer

cmVsZWFzZSBub3RlcytBL0I/

How the result is produced

  1. Hex to Text & Bytes Converter
  2. Base64 Encoder

Conventions and limitations

Use two hexadecimal digits for each byte. A numeric identifier and the UTF-8 text of that identifier are different inputs.

Related tools

Browse data format tools