# `nupp.codec.hex`
Hexadecimal byte encoding. Encoders emit lowercase; decoders accept either case.
## Functions
### `decode` _function_
```nupp
function decode(text: string): string?, string?
```
Decodes hexadecimal without whitespace or a prefix.
#### Arguments
| Name | Type | Description |
| --- | --- | --- |
| `text` | `string` | |
#### Returns
| Type | Description |
| --- | --- |
| `string?` | raw bytes, or nil and a reason |
| `string?` | |
### `encode` _function_
```nupp
function encode(bytes: string): string
```
Encodes raw bytes as lowercase hexadecimal.
#### Arguments
| Name | Type | Description |
| --- | --- | --- |
| `bytes` | `string` | |
#### Returns
| Type | Description |
| --- | --- |
| `string` | |