Convert between hexadecimal and Base64 encoding formats. Useful for working with cryptographic hashes, binary data, and encoding transformations — all processed in your browser.
Hexadecimal (base-16) and Base64 (base-64) are both ways to represent binary data as text. Hex uses digits 0-9 and letters A-F, producing two characters per byte. Base64 uses a 64-character alphabet, producing roughly 4 characters per 3 bytes — making it more compact.
Developers frequently need to convert between these formats when working with cryptographic hashes (often displayed as hex) and APIs or protocols that expect Base64-encoded data.
Base64 is more compact. Hex produces 2 characters per byte while Base64 produces approximately 1.33 characters per byte. For large data, Base64 saves about 33% space compared to hex.
Yes. The tool automatically strips spaces, colons, dots, dashes, and the 0x prefix before converting. Paste hex in any common format.
Yes. Both hex and Base64 are exact representations of binary data. Converting in either direction produces the same underlying bytes with zero data loss.
Yes. All conversions happen locally in your browser. No data is transmitted to any server.
Encode or decode Base64 strings directly in your browser
Convert text to Base64 or decode Base64 to plain text
Convert images to Base64 encoded strings
Decode Base64 strings back to viewable images
Encode any file to a Base64 string
Decode any Base64 string back to its original file
Decode Base64 strings to PDF documents
Decode and inspect JWT tokens
Encode or decode URLs with percent-encoding
Convert special characters to HTML entities and back