Developer Tools

Hash & Encoding Converter

Generate SHA-256, MD5 hashes, and convert URL, HTML entities, and Hex.

MD5not for security
SHA-1not for security
SHA-256
SHA-384
SHA-512

About this tool

A cryptographic hash turns any input into a short fixed-length fingerprint. The same input always gives the same hash, and changing a single bit changes it completely. That makes hashes the standard way to verify downloads, detect duplicate files, build cache keys and check data integrity. An HMAC adds a secret key to the hash, so it also proves who created a message; payment providers and Git hosts use HMACs to sign webhooks.

This tool computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 for text or files of up to 200 MB, checks them against an expected checksum, calculates HMACs, and converts text to and from URL encoding, HTML entities and hexadecimal. Hashing uses your browser's Web Crypto engine, so files are never uploaded.

How to use Hash & Encoding Converter

  1. On the Hash tab, type text or switch to File and drop a file. All five hashes are calculated at once.
  2. Choose the output format: lowercase hex (most common), uppercase hex, or Base64 (used in Subresource Integrity and some APIs).
  3. To verify a download, paste the checksum published by the download site into the compare box. The matching algorithm is highlighted, so you do not need to know which one was used.
  4. On the HMAC tab, choose the algorithm, enter the secret key (as text, hex or Base64) and the message to get the signature.
  5. On the Encode / decode tab, pick an operation such as URL encode or HTML unescape. Use "Use result as input" to chain operations.

Examples

SHA-256 of a short text

Input
hello
Result
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Verify a webhook signature (HMAC-SHA256)

Input
Key: whsec_test
Message: {"event":"paid","id":42}
Result
Compare the hex result with the signature header sent by the provider; if they match, the request is authentic.

URL-encode a query value

Input
café & crème
Result
caf%C3%A9%20%26%20cr%C3%A8me

Which hash should I use?

  • SHA-256: the default for file checksums, integrity checks, content addressing and signatures. Use it unless a system requires something else.
  • SHA-384 / SHA-512: longer outputs; SHA-384 is common in Subresource Integrity (integrity="sha384-...") and TLS.
  • MD5 and SHA-1: broken for security. Collisions can be crafted, so never use them for signatures or passwords. They are still fine for detecting accidental corruption and are shown here because many legacy systems publish them.
  • Passwords: never store a plain hash of a password. Use a slow, salted password hash such as Argon2, bcrypt or scrypt on your server.

Encoding is not hashing or encryption

URL encoding, HTML entities, hex and Base64 are reversible representations of the same data; anyone can decode them. Hashes are one-way fingerprints that cannot be reversed. Encryption is reversible only with a key. Choosing the wrong one is a common source of security bugs, for example "encrypting" a password with Base64.

Frequently asked questions

Everything you need to know about this tool and data security.

Why does my hash differ from another tool?

Usually because the input differs invisibly: a trailing newline, Windows line endings (CRLF) or a different text encoding. This tool hashes text as UTF-8 exactly as typed. For files, the bytes are hashed directly, so results match sha256sum, shasum and certutil.

Can a hash be reversed?

No. A hash is not encryption. Short or common inputs can be guessed by trying candidates, which is why passwords need slow, salted hashing, but the hash itself cannot be decoded.

Is it safe to hash confidential files here?

Yes. Files are read and hashed inside your browser and are never uploaded.

What is the difference between URL encode (component) and (full URL)?

Component encoding escapes every reserved character, including / ? & =, and is what you need for a single query parameter value. Full-URL encoding leaves those characters intact so a complete address stays usable.

Is my data safe when using this tool?

Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.