6
0

Base32 Encode

Egor VolchenkoEgor Volchenko
CreatedNov 10, 2026
UpdatedNov 10, 2026

This Base32 encoder converts text or encoded input bytes to RFC 4648 Base32. It returns the standard uppercase alphabet with padding where needed, making byte values convenient to paste into a text field or test fixture.

1
1

How to use Base32 Encode

Use the following steps to process a small test input.

Encode data as Base32

  1. Paste the source into Input text. Use normal text, or supply bytes already represented as Hex or Base64.
  2. Set Input Encoding: to UTF-8 for ordinary text, Hex for hexadecimal bytes, or Base64 for Base64-encoded bytes.
  3. Leave Auto / Live on to update the result as you edit. To run manually, turn it off and click Run.
  4. Read Base32 Encode Result. Keep any trailing padding characters when passing the value to this site’s decoder.
  5. Click Copy to copy the result. Use Clear where shown, or the field clear controls, to remove the text.

foobar with Input Encoding: UTF-8 becomes MZXW6YTBOI======. Hex input 666f6f626172 produces the same result when Hex is selected.

A rejected request may leave an earlier result visible. Clear the fields and recheck the input before relying on a new calculation.

Use the standard Base32 alphabet

The result uses A–Z and 2–7, with equals signs to complete the final eight-character group when required. This is standard Base32, not Base32hex or Crockford Base32. There is no alphabet or padding switch.

Represent bytes without hiding them

Encoding preserves the bytes in a printable representation. It does not encrypt the data, compress it, or add an authentication check. Anyone with a decoder can recover the represented bytes.

Frequently asked questions

It uses the RFC 4648 standard alphabet A–Z and 2–7. Base32hex and Crockford variants are not exposed.

API — Text to Base32 Converter

Automate this tool directly from your scripts, CI/CD pipelines, or backend applications via HTTP POST.

No API Key Required 60 req/min
https://million.tools/api/v1/run/base32-encode

Request Parameters (JSON / Form Data)

  • start (or input)

    Input text

    Type: string Default: —
  • input_encoding

    Input Encoding

    hex hex_ignore_non_hex base64 utf-8 utf-16le utf-16be windows-1251 windows-1252
    Type: string Default: utf-8
bash — cURL
curl -X POST https://million.tools/api/v1/run/base32-encode \
  -H "Content-Type: application/json" \
  -d '{"start":"foobar"}'
const response = await fetch('https://million.tools/api/v1/run/base32-encode', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "start": "foobar"
  }),
});

const data = await response.json();
console.log(data.result);
import requests

response = requests.post(
    'https://million.tools/api/v1/run/base32-encode',
    json={
        "start": "foobar",
    },
    timeout=15,
)

data = response.json()
print(data['result'])
$ch = curl_init('https://million.tools/api/v1/run/base32-encode');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode([
        'start' => 'foobar',
    ]),
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);

echo $response['result'] ?? '';
{
    "status": "success",
    "tool": "base32-encode",
    "service": "base32_encode",
    "result": "MZXW6YTBOI======",
    "results": {
        "result": "MZXW6YTBOI======"
    }
}
Egor Volchenko
Egor Volchenko Developer & Author

Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience.

Published:
Updated:

Ratings & feedback 0

Share your experience with this tool.

Leave feedback

Your rating (optional)

Select a rating

Write a review, leave a rating, or do both.

Your email stays private.

No feedback yet

Be the first to leave a review or rating.