Hash Base64 String vs Decoded Text – aGVsbG8= vs hello

Local only

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

8 chars · 1 line

Waiting for input

Loading hash algorithms…

Encoded representation and hashes

Why does hashing Base64 text differ from hashing decoded content?

aGVsbG8= decodes to hello, but those are different input representations. Text mode hashes the Base64 characters directly, while Base64 bytes mode validates and decodes the representation before hashing the payload 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. Confirm whether the input should be treated as Base64 text or its decoded payload.
  2. Choose Text for the visible representation or Base64 bytes when the protocol hashes decoded bytes.
  3. Use the same pre-hash representation on both sides.

Base64 is reversible encoding, not transparent hash input

The Base64 characters aGVsbG8= form their own byte sequence. Hashing them as text differs from decoding them to hello and hashing that payload.

VetaTool keeps both workflows available in the Hash Generator: Text preserves the representation, while Base64 bytes decodes standard or URL-safe Base64 before hashing.

Base64 text vs decoded hello

The encoded and decoded forms represent related data but are not the same bytes.

Input comparison

aGVsbG8=
hello

SHA-256 digests

Base64 text: 333d6b3a3c1f5db6c9bdda5939b136986d170f4649172a68368d54ecb44c2ff2
decoded hello: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Common questions

Frequently asked questions

Does VetaTool decode Base64 automatically before hashing?

Only when Base64 bytes mode is selected. Text mode hashes the entered characters directly.

Does Base64 bytes mode accept Base64URL?

Yes. It accepts standard Base64 and URL-safe Base64, validates the encoding, and hashes the decoded bytes.

Debugging a specific Hash issue? Browse Hash troubleshooting.