← All Base64 tools
LOCAL CONVERSION · HEX

Hex to Base64 Converter

Convert pairs of hexadecimal digits into Base64 bytes. Processed in your browser.

Hexadecimal bytesBase64 bytes

Enter complete hex pairs. Spaces separate bytes; no text encoding is applied.

0 UTF-16 code units
Maximum pasted length: 48 MiB characters. Decoded files: 16 MiB. Oversized input is rejected when run.

Base64 bytes

Run your source or load the labelled sample to explore the output. Input stays on this device.

How to use Hex to Base64 Converter

  1. Paste the source value into the input field.
  2. Run the tool and review its result or validation message.
  3. Download the complete result, or copy text output. Clear removes the result and releases its download.

Does this upload my data?

No. This tool runs in a browser worker. Input is not stored or sent to a server.

Does Base64 change a file format?

No. Encoding and decoding preserve bytes. A format-specific tool checks the signature, but does not transcode or guarantee that a file is intact. Some media may not play in your browser; the download still preserves the bytes. SVG and HTML are never rendered here.

Related tools

About Hex to Base64 Converter

Hexadecimal writes each byte as two characters from 0–9 and a–f. This tool reads hex pairs, optionally separated by spaces, and encodes the exact bytes as Base64 without treating them as text.

It is the quickest way to move a hash, key or packet dump from a hex-oriented tool into a system that expects Base64.

Good for

  • Converting SHA-256 hashes or HMACs between formats.
  • Preparing binary test vectors for an API.
  • Encoding bytes copied from a hex editor or debugger.

Questions

Why does it reject my input?

Every byte needs two hex digits. An odd number of digits, or characters outside 0–9 and a–f, cannot be converted.

Is 0x accepted?

Remove 0x prefixes and other separators so only hex pairs and spaces remain.