Skip to content

Base64 to Hex

Convert Base64 back to hexadecimal, with your choice of separator.

Quick Tool Overview

The Base64 to Hex converter decodes standard or URL-safe Base64 and writes the bytes as hex, with no separator, spaces or colons, in upper or lower case.

What it does
Converts Base64 to a hex string
You give it
Standard or URL-safe Base64
You get back
Hex with your chosen separator and case
Best for
Feeding command-line tools that expect hex
Developer Tools Free, unlimited use No sign-up Runs in your browser

About the Base64 to Hex

Going the other way: a Base64 string becomes the hex representation of the same bytes. This is the conversion you need when a system hands you a key or a digest in Base64 and the tool you are feeding it to wants hex — which is most command-line tooling.

The decoder accepts both alphabets, so a URL-safe string with hyphens and underscores works without you having to convert it first, and missing padding is added automatically. The hex output can be continuous, space-separated for a readable dump, or colon-separated to match the format OpenSSL and certificate tools print fingerprints in, in upper or lower case.

Key features of the Base64 to Hex

Both alphabets accepted

Hyphens and underscores are converted before decoding, so a JWT segment works exactly as pasted.

Padding fixed automatically

A string missing its trailing equals signs is padded before decoding rather than rejected.

Three separator styles

Continuous for code, spaces for a readable dump, colons to compare against a certificate fingerprint.

Upper or lower case

Match whatever you are comparing the value against, since string comparison is case-sensitive even though hex is not.

Byte count shown

Confirms the decoded length, which tells you at a glance whether a digest is the size it should be.

How to use the Base64 to Hex

  1. 1

    Paste the Base64

    Standard or URL-safe, padded or not.

  2. 2

    Choose the separator

    None for a continuous string, spaces for a readable dump, or colons for a fingerprint.

  3. 3

    Choose the case

    Lower case is the common default; upper case matches some certificate tools.

  4. 4

    Copy the hex

    Take the result to your clipboard.

Frequently asked questions

Yes. Hyphens and underscores are converted back to plus and slash before decoding, and missing padding is added, so a JWT segment works as pasted.

Reviews of the Base64 to Hex

What people who use the Base64 to Hex think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Base64 to Hex. It takes half a minute and no account.

Write the first review

More developer tools