Hash Hex String vs Bytes – Why 68656c6c6f Differs from hello

Local only

Compare literal hex text with decoded byte hashing using the Hash input mode.

10 chars · 1 line

Waiting for input

Loading hash algorithms…

Encoded representation and hashes

Why does hashing a hex string differ from hashing the decoded bytes?

The text 68656c6c6f is the hexadecimal representation of hello bytes. In Text mode VetaTool hashes the characters 6, 8, 6, 5 and so on; in Hex bytes mode it decodes those pairs first and hashes the represented bytes. This tool is free to use. No account or payment is required.

Last updated

What you can do here

  • MD5 text digests
  • SHA-1 text digests
  • SHA-256 text digests
  • SHA-512 text digests
  • Exact text byte sensitivity
  • Browser-local hashing

Steps

  1. Identify whether the value is literal text or a hexadecimal representation.
  2. Choose Text to hash the visible characters or Hex bytes to decode pairs before hashing.
  3. Make the representation step identical on both systems before comparing digests.

Representation changes the bytes supplied to the hash

The literal characters 68656c6c6f are ten ASCII characters. The decoded payload hello is five bytes in UTF-8. Hashing those two sequences cannot produce the same SHA-256 digest.

VetaTool keeps that choice explicit: Text mode hashes the representation, while Hex bytes mode validates and decodes it before running the same digest algorithms.

Hex text vs decoded hello

68656c6c6f represents hello in hex, but it is still different input until decoded.

Input comparison

68656c6c6f
hello

SHA-256 digests

hex text: 4ef79bf561cdeacd465e135a3b9c8b51a42ded0605f15ab8e501162d2693bd00
decoded hello: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Common questions

Frequently asked questions

Does the Hash Generator interpret hex text as bytes?

Only in Hex bytes mode. Text mode hashes the entered characters directly.

How can two systems agree?

They must both hash the literal hex representation or both decode it to the same bytes before hashing.

Debugging a specific Hash issue? Browse Hash troubleshooting.