EditSafely

Base32 Encode a String

Encode a string to Base32.

Runs on your device, nothing uploaded

Try:

0 chars · 0 lines

Output

Encode a string to Base32.

Type or paste above to see the result here.

Example: Encode Hello
Alphabet

What you paste never leaves this tab

Base32 Encode a String is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Base32 Encode a String

  1. 1. Paste the text to encode. Type or paste the plain text you want converted into the input pane, from a short label to a full paragraph.
  2. 2. Read the Base32 output. The tool converts the text to UTF-8 bytes and re-encodes them with the Base32 alphabet (A-Z, 2-7) immediately. Under More options you can turn off the = padding, pick Base32hex or Crockford, or make the result lowercase.
  3. 3. Copy the encoded string. Copy the Base32 result and use it anywhere a case-insensitive, typeable encoding is expected, such as a TOTP secret or a DNS-safe token.

When to use Base32 Encode a String

Base32 Encode a String converts plain text into the Base32 alphabet, a format designed to be typed by hand and case-insensitive. Use Base32 Encode a String whenever a downstream system expects that specific encoding instead of Base64 or hex.

  • Generating a TOTP-style secret. You are building a two-factor authentication flow and need a sample secret encoded in Base32 to test against an authenticator app before wiring up real key generation.
  • Building a case-insensitive token. A URL slug or file path needs to be safe regardless of case; encoding the source string in Base32 avoids the mixed-case ambiguity that Base64 introduces.
  • Preparing a DNS TXT record payload. Certain DNS verification schemes require values encoded in Base32 because DNS labels are traditionally treated as case-insensitive; this produces that exact format from a plain string.
  • Cross-checking a library implementation. You just wrote a Base32 encoder in another language and want a trusted reference output for a known input string to compare against your own result.

Examples

Encode Hello

Input

Hello

Output

JBSWY3DP

Without padding

Input

Hello!

Output

JBSWY3DPEE

About the Base32 Encode a String tool

Base32 Encode a String runs as plain JavaScript in your browser tab, with no server behind it. Encode a string to Base32. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's String Tools section, 159 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 3 settings, including Padding (=), Alphabet and Lowercase, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Does Base32 Encode a String cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.