Searchlight
Tools
BlogAbout
Free SEO Audit
Back to home
๐Ÿ“ˆSEO & Analytics
๐Ÿ—‚๏ธText & Data
๐Ÿ”Encoders & Decoders
Base64 TextBase64 FileURL EncoderHTML EntitiesNumber Base ConverterJWT DecoderMorse CodeROT13 / Caesar CipherHash GeneratorHMAC GeneratorHex โ†” Base64
โšกGenerators
๐Ÿ”„Converters
๐Ÿ–ผ๏ธImage Tools
๐Ÿ“„PDF Tools
๐Ÿ’ปCode Tools
๐Ÿ”Regex & Parsing
๐ŸงฎCalculators
๐Ÿ—บ๏ธDiagrams
๐ŸŒNetwork & Web
โœ๏ธText Utilities
๐ŸŽจColor Tools
๐Ÿ”€Diff & Compare
156+ tools. OAuth is read-only.
Searchlight

156+ free SEO, developer, image, PDF, and productivity tools - no account needed.

Free ยท all tools included
Company
  • Blog
  • About
  • Free SEO Audit
Legal
  • Privacy Policy
  • Terms of Service
  • Cookie Policy

ยฉ 2026 Searchlight. All rights reserved.

Read-only OAuth ยท No data reselling ยท Completely free

Hex โ†” Base64

Convert between hexadecimal and Base64 encoding. Works entirely in your browser.

0 bytes
Hex โ†’ B64

About this tool

Convert between hexadecimal and Base64 encoding instantly. Enter a hex string to get the Base64 equivalent, or decode Base64 to hex. Also converts to and from raw text. Used for cryptography workflows - converting hash outputs, certificate data, binary keys, and encoded tokens between the formats used by different tools and APIs.

How to Convert Hex to Base64

  1. 1Paste your hexadecimal string into the input field.
  2. 2Select 'Hex to Base64' as the conversion direction.
  3. 3The Base64 result appears instantly.
  4. 4Toggle 'Base64url' for URL-safe encoding (JWT-compatible).
  5. 5Click 'Copy' to copy the result to your clipboard.

Frequently Asked Questions

Why would I need to convert hex to Base64?+
Cryptographic operations often output hex (e.g. SHA-256 hashes, HMAC signatures) but APIs require Base64. JWT tokens use Base64url. TLS certificates use Base64 PEM format. Converting between them is a constant need in security workflows.
What is the difference between Base64 and Base64url?+
Base64url replaces + with - and / with _, and removes trailing = padding. It's safe for URLs and filenames without percent-encoding. JWT tokens use Base64url encoding for header and payload.
How do I convert a SHA-256 hash from hex to Base64?+
Copy the 64-character hex string from your hash tool, paste it here, and click 'Hex to Base64'. The result is the 44-character Base64 representation of the same 256-bit value.
Is hex or Base64 more compact?+
Base64 is more compact. Hex uses 2 characters per byte. Base64 uses approximately 1.33 characters per byte. A 32-byte SHA-256 hash is 64 hex characters but only 44 Base64 characters.
Looking for a deeper guide on this topic? Browse the Searchlight blog.
Visit the blog โ†’

Related tools

View all Encoders & Decoders โ†’
Base64 TextEncode & decode Base64 textBase64 FileEncode images, PDFs & files to Base64URL EncoderURL encode / decode / percent-escapeHTML EntitiesHTML entity encode & decode