In this track: Cryptography with intuition
advanced · 4 MIN READ

Bytes versus hexadecimal display

Hex text is a way to write bytes, not automatically the bytes themselves.

LET’S PICTURE IT

A written label saying twenty differs from twenty physical objects.

SEE IT FOR YOURSELF
From exact bytes to a Keccak-256 fingerprintStep 1 / 4
From exact bytes to a Keccak-256 fingerprintUTF-8 texthelloExact spelling mattersA hash commits to bytes, not a visual interpretationFive input bytes68656c6c6fLiteral text 0x68656c6c6f would be a different text inputInput bytes68 65 6c 6c 6f5 bytesKeccak-256Deterministic calculation32-byte resultUse Keccak-256, not an interchangeable SHA3-256 assumption0x1c8aff95…36deac8Fixed output: 32 bytesSame input bytes → same outputA fingerprint does not prove that the input is truthful or safe

The text hello is a particular sequence of characters. Case or text normalization can change the encoded bytes.

Animated local teaching model. No wallet, RPC or live blockchain data. Some labels and hashes are abbreviated for readability.

Count pairs of digits

Each byte uses two hexadecimal digits. The display 0x6869 represents two bytes, while the prefix marks the notation and is not part of the payload.

Distinguish text input

The literal text 0x6869 has six UTF-8 bytes. Hashing those text characters differs from hashing the two bytes represented by the hexadecimal notation.

Keep leading zeros when required

A fixed-width byte value can include meaningful leading zero bytes. Turning it into an integer and back without restoring width may change the byte sequence.

Choose the tool mode deliberately

The hash tool separates text and hex modes. State the selected mode when comparing fingerprints so another learner can reproduce the same input bytes.

Inspect the distinction

hex bytes 0x6869 → UTF-8 text hi
literal text "0x6869" → bytes 30 78 36 38 36 39

These are local teaching values, not a signature request or a live-chain lookup.

TURN UNDERSTANDING INTO PRACTICEOpen the Keccak-256 →
QUICK CHECK · NO PRESSURE

How many payload bytes does hex 0x6869 represent?

Your progress stays in this browser.
Keep exploring the original referenceMDN Web Docs ↗

Original explanations by EtherTools. Examples are educational and source-linked; this site is independent of the Ethereum Foundation. Our approach.