Text Hash Calculator
Online text hash calculator that computes MD5, SHA-1, SHA-256 and SHA-512 digests for your input at once, with output in hexadecimal, Base64, Base64url or binary.
FreeOnline Tool
Loading…
How to Use
- Paste or type the text you want to hash into the input box
- Pick an output encoding (hexadecimal, Base64, Base64url or binary)
- The digests for every supported hash algorithm appear below and update as you type
Features
- Computes the digest under several hash algorithms in one pass, so you never have to select them one at a time
- Displays each digest as hexadecimal (Hex), Base64, Base64url or binary
- Recalculates instantly on input, with no extra button to press
Use Cases
Verifying content integrity
Hash a piece of text and compare it against an expected digest to confirm the content has not been altered.
Generating a data fingerprint
Produce a unique digest for a block of text to use for deduplication or as a cache key.
Comparing hash algorithms while learning
Feed in the same text and see side by side how MD5, SHA-1 and SHA-256 differ in output and length.
Producing a digest in a specific encoding
Get the digest in whichever encoding a downstream system expects, such as Hex or Base64.
FAQ
Are MD5 and SHA-1 still safe to use?
Both have known collision weaknesses and should not be used for password storage or security signatures. They remain fine for non-security purposes such as checksums or cache keys. Use SHA-256 or stronger where security matters.
Why does the same text produce digests of different lengths in different encodings?
The encoding only changes how the digest is written out. Hex uses two characters per byte while Base64 uses about four characters per three bytes. The algorithm's byte length is fixed, so these are just different renderings of identical binary data.
Is the text I hash sent to a server?
No. Every digest is computed locally in your browser and nothing is uploaded, so you can safely hash text containing sensitive information.
Does it handle Chinese and other non-ASCII characters?
Yes. Input is encoded as UTF-8 before hashing, so multi-byte characters such as Chinese are processed correctly.