Convert Base64 to hexadecimal bytes and back.
The Base64 to Hex tool converts binary data between its Base64 text form and its hexadecimal form. It decodes standard and URL-safe Base64 and encodes hex back to Base64, with options for grouping and letter case. It is handy when you move keys, hashes, signatures or IDs between systems that print them differently.
Base64 and hexadecimal are two ways of writing the same bytes as printable text. Hex uses two characters (0-9, a-f) per byte, so the output is exactly twice as long as the data. Base64 packs three bytes into four characters from an alphabet of letters, digits, plus and slash, which makes it about 33 percent larger than the data. The URL-safe variant in RFC 4648 swaps plus and slash for hyphen and underscore and usually drops the trailing equals padding. Converting between them does not change the bytes, only how they are written, so the tool does not interpret the data as text. Hex is easier to read and compare by eye, while Base64 is more compact in JSON, headers and configuration files.
No. Both forms describe the same bytes. Only the text representation changes.
Yes. Base64 to Hex accepts both the standard alphabet and the URL-safe one (hyphen and underscore), with or without padding.
Each byte is written as two hex digits. Base64 uses roughly four characters for every three bytes.
No. The tool works on raw bytes. If the bytes are UTF-8 text, use a Base64 text decoder to see the characters.
No. The conversion runs in the page and the input is not sent to a server.