Skip to Content
gnux

-d, --decode

Decode data.

An option of base32x.

Usage

base32x -d [FILE]
base32x --decode [FILE]

Details

ShortLongValueDefaultMeaning
-d--decodenonedecode data

Examples

Decode a value you found in a config file or an API response

echox NBSWY3DP | base32x -d
Output
hello

Turn that secret back into the key file in a CI job

printfx '%s' "$DEPLOY_KEY" | base32x -d > deploy-key.bin

Decode text pasted from an email, where line breaks and stray characters crept in

base32x -d -i pasted.txt > attachment.pdf

Make sure a round trip gives back the same bytes

base32x file.bin | base32x -d > copy.bin && cksumx file.bin copy.bin

Reject a payload that is not valid base32 before using it

base32x -d payload.txt > /dev/null && echox valid

Help in the terminal

gnux help base32x --decode

On this page