Hexadecimal to Base32 Converter

Convert hexadecimal strings to RFC 4648 Base32 encoding — or reverse from Base32 back to hex — instantly in your browser.

Quick Samples

Include Padding (=)

RFC 4648 requires padding; disable only when your target system does not need it.

Copied!

Summary

Convert hexadecimal strings to RFC 4648 Base32 encoding — or reverse from Base32 back to hex — instantly in your browser.

How it works

  1. Paste or type a hexadecimal string into the Hex input field.
  2. The tool decodes the hex bytes into raw binary data.
  3. Each group of 5 bits is mapped to one of the 32 RFC 4648 characters (A–Z, 2–7).
  4. Padding characters (=) are appended so the output length is a multiple of 8.
  5. For the reverse direction, switch to Base32 input and the tool decodes Base32 to hex.

Use cases

  • Encode cryptographic key material from hex into Base32 for use in TOTP/HOTP secrets.
  • Convert hex-encoded identifiers to the Base32 format required by certain APIs.
  • Verify that a Base32-encoded value matches a known hex byte sequence.
  • Debug encoding pipelines by round-tripping hex through Base32 and back.
  • Generate Base32 tokens from random hex for URL-safe identifiers.
  • Inspect binary data stored in hex by viewing its Base32 representation.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu