How to Convert Base64 to Hex - Step by Step Guide
Paste Base64 Data
Start by pasting your Base64 encoded data into the input area.
Automatic Conversion
About a second after you stop typing, the tool decodes your Base64 and writes every byte as two hex digits. If the input is not valid Base64, you get the first bad character with its line and column instead.
Copy or Download Result
Once converted, you can copy the hexadecimal output to your clipboard or download it for use in debugging and analysis.
What is Base64 to Hex Conversion?
Base64 to Hexadecimal conversion decodes Base64 data and displays it in hexadecimal format (base-16 number system using 0-9 and A-F). This is essential for debugging, cryptography, and low-level programming.
Hexadecimal is widely used in web development, assembly programming, and debugging tools because it provides a compact representation of binary data.
Frequently Asked Questions
How do I convert Base64 to Hex?
Paste the Base64 string into the left panel. About a second after you stop typing, the decoded bytes show up on the right as one run of uppercase hex, two digits per byte and no spaces. The Sample, TmV0d29yayBUb3dlciA1Ry0wMDE=, is the text "Network Tower 5G-001", so the output starts 4E6574776F726B (the bytes for "Network").
Why is the hex longer than my text?
Every byte becomes two hex digits, and the output shows bytes, not characters. Plain English letters are one byte each, but UTF-8 stores é as 2 bytes and an emoji like 😀 as 4. So José 😀 decodes to 10 bytes: 4A6F73C3A920F09F9880.
Which kinds of Base64 can I paste?
Standard Base64 with or without = padding, the URL-safe variant with - and _ (used in JWTs and many APIs), Base64 wrapped over several lines (MIME, PEM), a data:...;base64, prefix and a value still inside its quotes. If something is wrong, the error names the first bad character with its line and column, or says the string looks cut off.
What is hexadecimal format?
Hexadecimal is base 16: the digits 0-9 plus A-F. One byte (0 to 255) always fits in exactly two hex digits, from 00 to FF, which is why hex dumps, checksums and hash values are written this way.
Can I get the original file back instead of hex?
This page shows the bytes as hex text, which is handy for comparing checksums, reading file headers or debugging a protocol. To save the decoded bytes as a real file (an image, a PDF, a ZIP), use Base64 to File. To go the other way, from hex back to Base64, use Hex to Base64.
Is my data uploaded anywhere?
No. Decoding runs in your browser, nothing is sent to our server, and nothing is kept after you leave the page. Keep in mind that Base64 is only an encoding, not encryption: anyone who has the string can decode it.
Is this converter free?
Yes, it's free and you don't need an account. The hex output is about 2.7 times the length of the Base64 you paste, so a very large input gives a long result that can take a moment to show in the editor.
Related Tools
Hex to Base64
Convert hexadecimal data to Base64 encoded strings for APIs and data transmission
Binary to Base64
Encode binary data (0s and 1s) to Base64 format for data transmission
Base64 to Binary
Decode Base64 to binary format (0s and 1s) for debugging and bit-level analysis
ASCII to Base64
Encode ASCII text to Base64 format for embedded systems and protocols
Base64 to ASCII
Decode Base64 to ASCII text for legacy systems and serial communication
UTF-8 to Base64
Encode UTF-8 text to Base64 with international characters and emojis