Home Explore Blog CI



nushell

1st chunk of `commands/docs/decode_base32.md`
238cd6e60034ef9ef82e9a32025720a57d5a2a4f017de15100000001000004c9
---
title: decode base32
categories: |
  formats
version: 0.104.0
formats: |
  Decode a Base32 value.
usage: |
  Decode a Base32 value.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `decode base32` for [formats](/commands/categories/formats.md)

<div class='command-title'>Decode a Base32 value.</div>

## Signature

```> decode base32 {flags} ```

## Flags

 -  `--nopad`: Do not pad the output.


## Input/output types:

| input  | output |
| ------ | ------ |
| string | binary |
## Examples

Decode arbitrary binary data
```nu
> "AEBAGBAF" | decode base32
Length: 5 (0x5) bytes | printable whitespace ascii_other non_ascii
00000000:   01 02 03 04  05                                      •••••

```

Decode an encoded string
```nu
> "NBUQ====" | decode base32 | decode

```

Parse a string without padding
```nu
> "NBUQ" | decode base32 --nopad
Length: 2 (0x2) bytes | printable whitespace ascii_other non_ascii
00000000:   68 69                                                hi

```

## Notes
The default alphabet is taken from RFC 4648, section 6.

Note this command will collect stream input.

Title: decode base32
Summary
This command decodes a Base32 encoded string into binary data. It supports an optional flag `--nopad` to handle strings without padding. The default alphabet used is defined in RFC 4648, section 6. The command can accept stream input.