v149 · JavaScript

Hex Inspector

Type text and see each byte as a hex pair via toHex(). Multi-byte UTF-8 sequences are colour-coded. Click a hex byte to highlight it. Shows the difference between ASCII and emoji/accent characters.

Feature detection: checking…

Input text

Bytes: 0 Chars: 0 Hex string length: 0 ASCII bytes: 0 Multi-byte: 0
Hex dump — arr.toHex() 0 bytes
const encoder = new TextEncoder();

// Encode text to bytes, then to hex  (NEW in Chrome 149)
const bytes = encoder.encode("Hello! 🎉");
const hex = bytes.toHex();
// → "48656c6c6f2120f09f8e89"

// Decode hex back to bytes  (NEW in Chrome 149)
const restored = Uint8Array.fromHex(hex);

// toHex() and fromHex() accept any case for input
Uint8Array.fromHex("DEADBEEF");  // works
Uint8Array.fromHex("deadbeef");  // also works

see also

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗