Skip to content

Encoding converters

Base64 to Hex

Convert Base64 to hex online: raw hexadecimal string, spaced pairs or a clean xxd-style dump with byte offsets. Works both directions — hex back to Base64 too. 100% private.

100% private · everything runs in your browser

Convert Base64 to hexadecimal — continuous, space-separated, 0x-prefixed, comma-separated, or a clean xxd-style dump with byte offsets. Ideal for debugging binary protocols, checking magic bytes and pasting byte values into code reviews.

Base64 input
Options

How to use

Base64 to Hex, step by step

  1. 01

    Paste the Base64 value — whitespace, line breaks and data-URI prefixes are handled automatically.

  2. 02

    Pick a hex style: continuous for compactness, spaced for readability, 0x-prefixed for C-style arrays, comma-separated for Python bytes literals, or the xxd dump for offsets plus 8+8 byte grouping.

  3. 03

    Copy the hex with one click or download it as a .hex file.

FAQ

Frequently asked questions

Continuous (a1b2c3…) for hashes and compact strings; space-separated for documentation; 0x-prefixed for C, C++ and Arduino byte arrays; comma-separated for Python’s bytes([…]) literal; and the xxd dump when you need byte offsets alongside the bytes.

Lowercase — the convention in most hex dumps and tooling. Every byte is always two digits, so columns line up no matter the value.

Each line starts with the byte offset of the first byte shown (00000000, 00000010, …) and the bytes are grouped 8 + 8 like xxd prints them. Both are safe to paste straight back into the Hex to Base64 tool — it ignores offsets and regroups automatically.

Yes — the Hex to Base64 tool accepts every style this page emits, including full xxd dumps with offsets, and returns clean Base64.

Hex is the lingua franca of debugging: magic bytes, protocol headers, encryption vectors and memory dumps are all discussed in hex. Base64 is compact for transport; hex is exact for inspection — this tool moves between them without a server round-trip.

No server limit — everything is computed locally. Hex doubles the size of the data (one byte becomes two characters), so very large inputs produce very large text fields.

Related tools

esc

Tools

Pages

↑↓ navigate↵ open⌘K

Keyboard shortcuts

Same shortcuts everywhere — ⌘ on macOS, Ctrl on Windows and Linux.