Base64 to Hex
Convert Base64 encoded strings to hexadecimal and hex back to Base64. Configurable output format. Runs 100% in your browser.
// Result will appear here…
About Base64 to Hex Converter Tool
This free online Base64 to Hex converter transforms Base64 encoded data into its hexadecimal byte representation and converts hex strings back to Base64 encoding. Essential for developers working with binary data, cryptographic hashes, certificates, and encoded payloads where you need to switch between these two common encoding formats. Everything runs locally in your browser — no data is sent to any server.
Why Convert Between Base64 and Hex?
Base64 and hexadecimal are the two most common ways to represent binary data as text. Base64 is compact (4 characters per 3 bytes) and used in data URIs, JWTs, email attachments, and API payloads. Hexadecimal is verbose (2 characters per byte) but easier to read byte-by-byte, making it standard for cryptographic hashes, MAC addresses, color codes, and binary protocol debugging. Developers frequently need to convert between these formats when comparing hash values, inspecting certificate data, debugging encoded API payloads, or translating between different tool outputs.
How to Use This Converter
Select "Base64 → Hex" to decode Base64 to hexadecimal, or "Hex → Base64" for the reverse. For Base64-to-hex output, choose your preferred separator (space, colon, 0x prefix, or none) and case (lowercase or uppercase). Paste your input and click "Convert." The hex-to-Base64 direction accepts any hex format with mixed separators. Copy the result instantly with one click.
Key Benefits
- Bidirectional conversion: Base64 to hex and hex to Base64 in one tool
- Multiple hex formats: Space, colon, 0x prefix, or continuous hex output
- Case options: Choose lowercase or uppercase hex digits
- Smart hex parsing: Tolerates mixed separators, spaces, and 0x prefixes on input
- Standard Base64: RFC 4648 compliant encoding and decoding
- Instant conversion: No server round-trips — everything runs in your browser
- Completely private: Your data never leaves your device
- No installation: Works in any modern browser without sign-ups
Common Use Cases
Security engineers convert Base64-encoded certificate data to hex for byte-level inspection. Backend developers translate hash values between formats when comparing outputs from different tools (openssl, shasum, Node.js crypto). Frontend developers decode data URIs to inspect embedded file contents. Cryptography practitioners convert keys and nonces between representations. DevOps engineers translate encoded secrets in Kubernetes and Docker configs. Forensics analysts examine encoded payloads in log files.
Privacy and Security
All conversion happens locally in your browser using JavaScript's built-in atob/btoa functions. Your Base64 data, hex strings, certificates, cryptographic keys, and any other sensitive content never leave your computer. No cookies, no tracking, no server communication. Safe for production secrets, TLS certificates, and confidential data.
Format conversion
Switch between Base64 and hexadecimal — the two most common binary-to-text encodings.
Fully private
Your encoded data never leaves the browser. Safe for certificates, keys, and secrets.
Flexible output
Four separator formats and two case options for hex. Smart parsing accepts any hex input format.