Skip to content
Test versionSearch

Developer tools

Strict canonical UTF-8 Base32 codec

Encode UTF-8 text as standard Base32 with uppercase letters and padding, or decode a canonical Base32 value strictly back to text.

How it worksFAQRelated tools

Content reviewed:

The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. Nothing is saved or sent automatically.

Uses the standard RFC 4648 alphabet (A–Z and 2–7) with = padding. Decoding is strict: lowercase letters, spaces and missing padding are rejected. Base32 is an encoding, not encryption, and some services use other variants (for example without padding), so check what yours expects. Text to encode may have up to 400 characters, text to decode up to 500; a result longer than 500 characters is refused. Control characters are not accepted. You can also load a one-line UTF-8 file of up to 32 KiB. Downloads: TXT, CSV (lines that look like formulas are protected for spreadsheets), JSON and printable HTML. Nothing is saved or sent automatically.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Text is converted with the browser’s standard functions (UTF-8 encoder, JSON, String.normalize) or the RFC 4648 Base32 alphabet. Each direction is checked strictly, so invalid input is refused instead of guessed. Uses the standard RFC 4648 alphabet (A–Z and 2–7) with = padding. Decoding is strict: lowercase letters, spaces and missing padding are rejected. Base32 is an encoding, not encryption, and some services use other variants (for example without padding), so check what yours expects. Text to encode may have up to 400 characters, text to decode up to 500; a result longer than 500 characters is refused. Control characters are not accepted. You can also load a one-line UTF-8 file of up to 32 KiB. Downloads: TXT, CSV (lines that look like formulas are protected for spreadsheets), JSON and printable HTML. Nothing is saved or sent automatically.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Direction
Encode
Text or canonical uppercase Base32
Own Γ€πŸš€

Result

Encoded result
J53W4IGDUTYJ7GUA
Byte count
10
Result code points
6

Frequently asked questions

How do I encode text to Base32?

Enter text in the UTF-8 Base32 codec and choose encode. The text is converted to UTF-8 bytes and written with the standard uppercase RFC 4648 alphabet A to Z and 2 to 7, with padding.

How do I decode a Base32 string to text?

Choose decode and enter a canonical Base32 value. The Base32 codec decodes it as valid UTF-8 and refuses input that is not valid UTF-8.

Why is my Base32 string rejected when decoding?

Strict decoding rejects lowercase letters, spaces, discarded junk, missing padding and nonzero unused bits, so only canonical Base32 is accepted.

What does Own Γ€πŸš€ look like in Base32?

The example text Own Γ€πŸš€ has 6 code points and 10 UTF-8 bytes and encodes to J53W4IGDUTYJ7GUA.

How long can the text be in the Base32 codec?

Text to encode is limited to 400 UTF-16 units and Base32 to decode to 500 units. Each output is at most 500 characters, and longer results are refused.

Can the Base32 codec be used for TOTP secrets or encryption?

No. It offers no encryption or TOTP validation, and compatibility with a service that requires another Base32 variant should not be assumed.