Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Online Hex to Base64 Converter

Convert a hex string to Base64 instantly. Supports spaces and 0x prefixes, URL-safe output, padding control, and reverse Base64→hex. Runs locally in your browser.

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.

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.

Continue your workflow

Browse related tools by task. Use the improved core tools for a consistent workspace with file import, downloads and clear validation errors.