Skip to content

Function.decodeHex

github-actions[bot] edited this page Nov 18, 2026 · 13 revisions

umt / decodeHex

Function: decodeHex()

decodeHex(input): Uint8Array

Defined in: Crypto/decodeHex.ts:24

Decodes a hexadecimal string to Uint8Array

Parameters

input

string

Hexadecimal string (lowercase or uppercase, two characters per byte)

Returns

Uint8Array

Decoded bytes

Example

decodeHex("48656c6c6f"); // Uint8Array for "Hello"

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally