Base32 encoder and decoder

Encode text to Base32 (RFC 4648) or decode it back, with or without padding.

Input

The text to encode, or the Base32 to decode.
Encode text to Base32, or decode Base32 to text.
Keep the trailing "=" padding when encoding.

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/base32 \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"Hello"}}'
import json, urllib.request

body = {'input': {'text': 'Hello'}}
request = urllib.request.Request("https://setget.net/v1/tools/base32", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/base32", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"text":"Hello"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "base32",
  "input": {
    "text": "Hello"
  }
}
{
  "input": {
    "text": "Hello"
  }
}

Endpoint: POST /v1/tools/base32. Over MCP: run_tool with slug: "base32". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
text string yes The text to encode, or the Base32 to decode.
action string no Encode text to Base32, or decode Base32 to text. One of: encode, decode. Default: "encode".
padding boolean no Keep the trailing "=" padding when encoding. Default: true.

Examples

Input
{
  "text": "Hello"
}
Result
{
  "text": "JBSWY3DP",
  "bytes": 5
}

Padding fills the last group

Input
{
  "text": "foobar"
}
Result
{
  "text": "MZXW6YTBOI======",
  "bytes": 6
}

Lower case, spaces and no padding

Input
{
  "text": "mzxw 6ytb oi",
  "action": "decode"
}
Result
{
  "text": "foobar",
  "encoding": "utf-8",
  "binary": false,
  "bytes": 6
}

Questions

Which alphabet is used?
The standard RFC 4648 alphabet: A-Z and 2-7. Decoding ignores case, spaces and missing padding.
What if the decoded data is not text?
Bytes that are not valid UTF-8 are returned as hex, with "binary" set to true.