Encode hexadecimal byte sequences as standard Base64 while preserving every byte, with a reverse mode for checking Base64 payloads as hex.
Last updated: August 2026 | By Workshelve Team
Whitespace and optional 0x prefixes are ignored; bytes must use two hex digits.
3q2+7wAB
Hexadecimal byte strings are convenient for logs, packet dumps, signatures, and low-level debugging, but many APIs and text formats expect binary values to be carried as Base64 instead. Hex → Base64 turns the byte sequence into a compact ASCII-safe representation without changing the bytes themselves.
The encoder reads each two-digit hex pair as one byte, preserves the original order and leading zero bytes, then encodes the complete byte stream as standard Base64. Spaces and line breaks are allowed for readability, and an optional0x prefix may appear at the start of individual byte values.
This is byte encoding, not numeric conversion. For example, the hex bytes00 10 are treated as two bytes in that order; they are not first collapsed into the number 16.
Base64 processes the byte stream in groups of three bytes. A final group of one or two bytes is represented with = padding so the encoded text still ends on a four-character Base64 group.
Encode DE AD BE EF 00 01 as Base64:
No padding is required because the input length is exactly six bytes, which divides evenly into three-byte groups.
Base64 is commonly used when binary bytes must travel through JSON, XML, form fields, configuration files, or other text-only channels. It represents the same bytes using a restricted text alphabet.
No. A prefix such as 0xDE is notation that marks DE as a hexadecimal byte. The prefix is removed before the byte stream is encoded.
Yes. Every complete two-digit pair is treated as a byte, including 00. Leading zero bytes remain part of the byte stream and therefore affect the Base64 output.
No. Bytes are encoded in the order entered. The tool does not apply little-endian or big-endian reinterpretation because it is not converting a multi-byte number.
Padding depends on the number of input bytes. One leftover byte produces two padding characters, two leftover bytes produce one, and a multiple of three needs none.
No. Each byte requires exactly two hex digits. A value such as ABC is ambiguous as a byte stream, so the converter asks you to provide complete byte pairs.
The result is standard Base64, which may contain + and /. Base64URL uses - and _ instead and is a separate variant.
Yes. Whitespace is ignored. You can also use optional 0x prefixes at byte boundaries, such as 0xDE 0xAD 0xBE 0xEF.
Related Tools
Convert HEX color codes into RGB color values.
Convert number base values.
Convert Base64 encoded data into hexadecimal values.
Convert binary values into hexadecimal numbers.
Convert hexadecimal values into binary numbers.
Convert CMYK color values into HEX color codes.