Generates MD5, SHA-1, and SHA-256 hashes from any piece of text.
Enter text above to compute a hashEnter text above to compute a hashEnter text above to compute a hashInput
hello world
Output
MD5: 5eb63bbbe01eeed093cb22bb8f5acdc3, SHA-256: b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde
A hash function takes any amount of text and reduces it to a fixed-length string of letters and numbers. Feed it a single word or an entire novel and the output is always the same length. Change one character anywhere in the input and the whole digest comes out looking completely different. That property is what makes hashes useful for checking whether two files or two pieces of text are identical without comparing them byte by byte.
This tool computes three widely used algorithms side by side so you can grab whichever one a task calls for. MD5 is the oldest and fastest here and it's still fine for checksums and cache keys even though it's been broken for security purposes for years now. Collisions can be engineered deliberately so don't use it to protect anything sensitive. SHA-1 sits in a similar spot. Legacy systems still expect it but newer security work has mostly moved past it too. SHA-256, part of the SHA-2 family, is the right choice when integrity matters, and it is what most modern tooling defaults to.
MD5 is implemented here as plain TypeScript following the original RFC 1321 specification, because browsers dropped native support for it a long time ago. SHA-1 and SHA-256 instead run through the Web Crypto API built into your browser, which is implemented natively and widely tested. Because the actual digest math differs by algorithm, don't expect MD5, SHA-1, and SHA-256 output for the same text to share any resemblance, they're unrelated functions that happen to be run over the same bytes.
People use hashing for more than passwords. Developers check downloaded file integrity against a published hash, git computes hashes for every commit and blob it stores, and databases sometimes hash a column so they can index or compare large text fields quickly. If you're verifying a download, the hash you compute here needs to match exactly what the publisher listed, even one differing character means the file was altered or corrupted somewhere along the way.
Nothing you type here leaves your browser. Every hash is computed locally using either a small hand-written function or the browser's built-in crypto library, so this works fine for sensitive text you'd rather not paste into a random server-side tool.
More Developer Tools