Skip to tool
FeuTex · free tools runs in-browser no bloat built by LiMiT

Online Hex to Base64 Converter

Paste a hex string and convert it to Base64 in one click. Whitespace and common separators are ignored, and you can output URL-safe Base64 or remove padding. Everything runs locally in your browser.

Category: Developer · URL: /tools/online-hex-to-base64-converter.html
Privacy: runs locally in your browser. No uploads, no tracking scripts.

How to use

This tool converts raw bytes represented as hex into Base64 (or reverses Base64 back to hex).

  1. Select Hex → Base64 (default) or Base64 → Hex.
  2. Paste your value. For hex, separators like spaces, :, -, and a leading 0x are fine.
  3. Optional: enable URL-safe output and/or remove padding.
  4. Click Convert, then Copy the result.
Keywords this page targets (natural cluster): online hex to base64 converter, hex to base64, convert hex string to base64, hexadecimal to base64 online, 0x hex to base64, hex bytes to base64, hex to base64 url safe, hex to base64 no padding, remove spaces from hex and convert, base64 to hex converter, decode base64 to hex, hex to base64 encoder, convert deadbeef to base64, hex to base64 javascript, binary to base64 from hex, convert colon separated hex to base64, hex dump to base64, base64url from hex, atob btoa hex base64, validate hex string online
Secondary intents covered: Convert a hex dump into Base64 for an API payload, Handle hex strings with spaces, colons, or newlines, Generate URL-safe Base64 for JWTs or web-safe transport, Remove or keep Base64 padding depending on a protocol, Decode Base64 back to hex to inspect raw bytes, Validate hex input (illegal characters, odd length), Quickly copy output for use in code or CLI commands, Compare expected outputs while debugging encoders

FAQ

What hex formats does this accept?

It accepts plain hex plus common separators (spaces, newlines, :, -, _) and an optional leading 0x.

Why do I get “Hex length must be even”?

Hex encodes bytes as two characters per byte; an odd number of hex digits can’t be parsed into full bytes.

What is URL-safe Base64 (Base64url)?

Base64url replaces + with - and / with _, and often omits padding; use it for URLs, JWTs, and web transport.

Should I remove Base64 padding (=)?

Only if your target format requires it (e.g., many Base64url uses). Standard Base64 commonly keeps = padding.

Can I convert Base64 back to hex?

Yes—switch the direction to Base64 → Hex. Base64url input is also accepted.

Does this tool upload my data?

No. The conversion runs locally in your browser and does not send input to a server.

Is there a size limit?

It depends on your browser/device memory. Very large inputs can be slower, but the code is chunked to avoid common stack issues.