Base32 encoder and decoder
Encode text to Base32 (RFC 4648) or decode it back, with or without padding.
Input
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
| Name | Type | Required | What 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.
Related tools
- Base64 encoder and decoderEncode text to Base64 or decode it back, in the standard or URL-safe alphabet.
base64 - Base58 encoder and decoderEncode text or bytes to Base58 with the Bitcoin alphabet, or decode Base58 back.
base58 - Hex encoder and decoderConvert text to hexadecimal bytes and back, with optional upper case and separators.
hex - All hashes at onceCompute every supported hash of one input at once: MD5, SHA-1, SHA-2, SHA3-256 and BLAKE2b.
hash-all - CRC-32 and Adler-32 checksumCompute the CRC-32 and Adler-32 checksums of text or bytes, as decimal and hex.
crc32 - Deflate compress and decompressCompress text to a zlib or raw deflate stream as base64, or decompress one. The format is detected.
deflate