Loading Base64 to Hex converter...

How to Convert Base64 to Hex - Step by Step Guide

Step 1

Paste Base64 Data

Start by pasting your Base64 encoded data into the input area.

•
Paste Base64: Copy and paste your Base64 string
•
Wrapped or URL-safe: Line breaks, a data URI prefix and URL-safe Base64 are fine
•
Try sample: Click "Sample" to test with example data
Step 2

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.

•
Two digits per byte: Uppercase, with no spaces, so 3 bytes give 6 hex digits
•
Bytes, not characters: é is 2 bytes in UTF-8 and an emoji is 4, so they take 4 and 8 hex digits
Step 3

Copy or Download Result

Once converted, you can copy the hexadecimal output to your clipboard or download it for use in debugging and analysis.

•
Copy to clipboard: One-click copying for quick use
•
Download output: Save the hex as a .txt file
•
Stays in your browser: Nothing is uploaded to our server

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.