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.
- UUID Checker Minecraft — Validate & Convert Mojang UUID
- UUID Checker — Validate UUID v1–v5, Variant, and Normalize
- XML Tools: Format, Minify, Validate, Escape & XML to JSON
- Notepad++ YAML Formatter - Clean and Organize Your YAML
- YAML Checker Online — Validate, Format, Convert to JSON
- YAML Checker Online - Validate Your YAML Easily
- XML Checker kostenlos – XML validieren, formatieren, minifizieren
- Regex Checker (Bash) — Test [[ =~ ]], grep -E, and Replace
How to use
This tool converts raw bytes represented as hex into Base64 (or reverses Base64 back to hex).
- Select Hex → Base64 (default) or Base64 → Hex.
- Paste your value. For hex, separators like spaces,
:,-, and a leading0xare fine. - Optional: enable URL-safe output and/or remove padding.
- 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.