← 返回命令列表

Linux command

base32 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Encode

base32 [file]

Decode

base32 -d [file.b32]

Example

echo [text] | base32

Example

echo [ENCODED] | base32 -d

说明

base32 encodes and decodes data using base32 encoding. Base32 represents binary data using 32 ASCII characters (A-Z and 2-7), making it suitable for case-insensitive systems and human-readable tokens. The tool is part of GNU coreutils and useful for encoding data in URLs, filenames, or other contexts where base64's case sensitivity or special characters are problematic.

参数

-d, --decode
Decode base32 data
-i, --ignore-garbage
Ignore non-alphabet characters when decoding
-w, --wrap=_cols_
Wrap lines at specified width (default: 76, 0 = no wrap)

FAQ

What is the base32 command used for?

base32 encodes and decodes data using base32 encoding. Base32 represents binary data using 32 ASCII characters (A-Z and 2-7), making it suitable for case-insensitive systems and human-readable tokens. The tool is part of GNU coreutils and useful for encoding data in URLs, filenames, or other contexts where base64's case sensitivity or special characters are problematic.

How do I run a basic base32 example?

Run `base32 [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --decode do in base32?

Decode base32 data