Base32 Encode – Encode Text to Base32 Online Free
Convert text or binary data to Base32 encoding online. Fast, secure, and privacy‑friendly Base32 encoder.
Encode text or files to Base32 online free. Fast RFC 4648 compliant Base32 encoder. Perfect for TOTP secrets.
Base32 Encode – Online Encoder
Convert any text or binary data to Base32 format with our free online tool. Base32 encoding uses the 32-character set A-Z and 2-7, making it safe for case‑insensitive systems, DNS, and secret keys.
How Base32 Works
Base32 takes binary data in groups of 5 bits (32 possible values) and maps each to a character. The input is first converted to bytes (UTF‑8 for text), then split into 5‑bit chunks. If the last group has fewer than 5 bits, padding (=) is added to make the output length a multiple of 8 characters.
Example Encoding
Input text: "Hello"
UTF-8 bytes (hex): 48 65 6c 6c 6f
Base32 encoded: JBSWY3DP
Padding: JBSWY3DP (no padding needed as length multiple of 8)
Input text: "Hi"
UTF-8 bytes: 48 69
Base32 encoded: J5A=====
Code Example
// Python example
import base64
text = "Hello World"
encoded = base64.b32encode(text.encode())
print(encoded) # b'NBSWY3DPEB3W64TMMQ======'
// JavaScript (Node.js)
const encoded = Buffer.from("Hello World").toString("base32");
console.log(encoded); // "NBSWY3DPEB3W64TMMQ======"
Advanced Options
- Padding: include or omit trailing '='
- Line wrapping: insert line breaks every 76 characters
- Output case: uppercase (standard) or lowercase
- Input format: text, binary file, or hex string
Use Cases
Base32 is widely used for:
- Google Authenticator / TOTP secret keys
- DNS zone file representations (for binary data)
- Steam IDs and other platform identifiers
- Encoding binary data in QR codes (smaller alphabet reduces density)
- Case‑insensitive environments (e.g., file names on Windows)
Our encoder is fully RFC 4648 compliant. No registration, no watermarks, and all uploads are automatically deleted after 1 hour.
Frequently Asked Questions
Everything you need to know about this tool