Home Explore Blog CI



nushell

commands/docs/decode_base32hex.md
b392415983cf28a5bdf79d1c80e2f1c0b0df66d802a75b0b00000003000004fa
---
title: decode base32hex
categories: |
  formats
version: 0.104.0
formats: |
  Encode a base32hex value.
usage: |
  Encode a base32hex value.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

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

<div class='command-title'>Encode a base32hex value.</div>

## Signature

```> decode base32hex {flags} ```

## Flags

 -  `--nopad`: Reject input with padding.


## Input/output types:

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

Decode arbitrary binary data
```nu
> "ATNAQ===" | decode base32hex
Length: 3 (0x3) bytes | printable whitespace ascii_other non_ascii
00000000:   57 6e ad                                             Wn×

```

Decode an encoded string
```nu
> "D1KG====" | decode base32hex | decode

```

Parse a string without padding
```nu
> "ATNAQ" | decode base32hex --nopad
Length: 3 (0x3) bytes | printable whitespace ascii_other non_ascii
00000000:   57 6e ad                                             Wn×

```

## Notes
This command uses an alternative Base32 alphabet, defined in RFC 4648, section 7.

Note this command will collect stream input.

Chunks
0cd72baf (1st chunk of `commands/docs/decode_base32hex.md`)
Title: decode base32hex: Decoding Base32hex Encoded Strings
Summary
The `decode base32hex` command decodes a base32hex encoded string into its original binary representation. It supports an optional flag `--nopad` to reject inputs with padding. The command uses the base32hex alphabet defined in RFC 4648, section 7. The command can handle streaming input.