⚡
usefultools.dev
B32

Base32 Encoder / Decoder (RFC 4648, Crockford)

NOUVEAU

Base32 encoder and decoder for RFC 4648, Base32hex and Crockford Base32. Encode text or hex bytes and decode with exact error positions, free in your browser.

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

Input formatInput is

Text is converted to UTF-8 bytes before encoding.

Base32 (RFC 4648)
JBSWY3DPFQQFO33SNRSCC===

13 bytes → 24 characters

⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

RFC 4648
foobar
MZXW6YTBOI======
Base32hex
foobar
CPNMUOJ1E8======
Crockford
Hello
91JPRV3F
Decode
JBSWY3DP
Hello
Bytes
hex 48656c6c6f
JBSWY3DP
📖

Présentation

Base32 turns binary data into a string of 32 safe characters: the letters A to Z and the digits 2 to 7 in the standard RFC 4648 alphabet. Each 5 bytes become 8 characters, so the output is about 60% longer than the input, but it survives case-insensitive systems, file names and manual typing better than Base64.

You meet Base32 in TOTP secrets for authenticator apps, DNSSEC records, onion addresses and short IDs. This Base32 encoder and decoder supports the standard alphabet, Base32hex (which keeps sort order) and Crockford Base32 (which avoids the confusing letters I, L, O and U). Encode UTF-8 text or raw hex bytes, with or without "=" padding.

Decoding reports the exact position of an invalid character and explains a wrong length or misplaced padding. Everything runs locally in your browser; nothing you paste is uploaded.

Pourquoi utiliser cet outil ?

  • Three alphabets: RFC 4648, Base32hex and Crockford
  • Encode text or raw hex bytes
  • Clear errors with the invalid character position
  • Checked against the RFC 4648 test vectors
  • Runs offline in your browser
⭐

Fonctionnalités

🔤

Three alphabets

Standard Base32, Base32hex (RFC 4648 section 7) and Crockford Base32 with its forgiving decoding rules.

🧱

Padding on or off

Add "=" padding to a multiple of 8 characters or leave it out; decoding accepts both.

🔢

Text or hex input

Encode UTF-8 text or exact byte values typed as hex, such as a random TOTP key.

🚨

Precise errors

Invalid characters are reported with their position, plus a hint when the input looks like another alphabet.

🧾

Hex view of decoded bytes

Decoded output is shown as text and as hex; binary data that is not UTF-8 falls back to hex.

⇅

Round trip

Send the output back to the input to check that encoding and decoding match.

🛠️

Mode d'emploi

1

Choose Encode or Decode

Pick the direction and the alphabet: Base32 (RFC 4648), Base32hex or Crockford.

2

Set the input format

When encoding, choose Text (UTF-8) or Hex bytes and toggle "=" padding.

3

Paste your data

The result updates as you type; errors show the position of the bad character.

4

Copy the result

Use Copy, or "Use output as input" to check the round trip.

🤔

Questions fréquentes