---
title: decode hex
categories: |
formats
version: 0.104.0
formats: |
Hex decode a value.
usage: |
Hex decode a value.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `decode hex` for [formats](/commands/categories/formats.md)
<div class='command-title'>Hex decode a value.</div>
## Signature
```> decode hex {flags} ```
## Input/output types:
| input | output |
| ------ | ------ |
| string | binary |
## Examples
Decode arbitrary binary data
```nu
> "09FD" | decode hex
Length: 2 (0x2) bytes | printable whitespace ascii_other non_ascii
00000000: 09 fd _×
```
Lowercase Hex is also accepted
```nu
> "09fd" | decode hex
Length: 2 (0x2) bytes | printable whitespace ascii_other non_ascii
00000000: 09 fd _×
```