Hash Generator (MD5 / SHA)

Compute MD5, SHA-1, SHA-256, and SHA-512 hashes from text or files. All processing happens in your browser.

Drop a file here or click to browse

MD5
-
SHA-1
-
SHA-256
-
SHA-512
-

Features

MD5, SHA-1, SHA-256, SHA-512
File hash (Web Crypto API)
Uppercase / lowercase

How to Use

1. Type or paste text into the input box.

2. Or click the file zone to drop a file.

3. All hashes are computed live and shown on the right.

4. Click any hash to copy it.

About this tool

A cryptographic hash turns any input into a fixed-length fingerprint: change a single byte and the result changes completely. This generator computes MD5, SHA-1, SHA-256 and SHA-512 at the same time for typed text or a dropped file, using the browser's Web Crypto API for the SHA family. Text is hashed as UTF-8, which is what most programming languages and command-line tools use, so results match sha256sum or hashlib for the same bytes. Common uses are verifying that a download matches the checksum published by its author, spotting whether two files are identical, and generating cache keys. Hashes are one-way, but they are not encryption and a plain hash is not a safe way to store passwords.

Frequently Asked Questions

Which hash algorithm should I use?
Use SHA-256 for checksums and integrity checks; it is the current default in most tools and package managers. SHA-512 offers a longer output. MD5 and SHA-1 are still fine for detecting accidental corruption but should not be relied on where someone might forge a collision.
Why doesn't my hash match the one from another tool?
The inputs are almost always different bytes: a trailing newline, Windows line endings (CRLF), a different text encoding, or extra spaces. Hashing a file instead of pasting its content avoids most of these differences.
Can a hash be reversed to get the original text?
Not mathematically. However, short or common inputs such as simple passwords can be found by looking them up in precomputed tables, which is why a hash alone does not protect sensitive data.
Is it safe to store passwords as SHA-256 hashes?
No. Fast hashes can be tested billions of times per second. Passwords should be stored with a slow, salted algorithm designed for that purpose, such as Argon2, bcrypt or scrypt.
Are my files uploaded to compute the hash?
No. Files are read and hashed locally in your browser. Very large files may take a few seconds because the whole file has to be loaded into memory first.

Related Tools