Skip to content
ToolFarmToolFarm
Developer

Hash Generator: SHA-1, SHA-256, SHA-384, SHA-512

Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes from text or a file, right in your browser. Zero dependencies, output in hex or base64, and nothing is ever uploaded.

3 min read
Output format

Everything runs in your browser with the Web Crypto API. Your text and files never leave your device.

Hashes

Your SHA-1, SHA-256, SHA-384 and SHA-512 hashes will appear here.

What this tool does

Type some text or pick a file and get its SHA-1, SHA-256, SHA-384 and SHA-512 digests at once, computed entirely in your browser with the built-in Web Crypto API. There is no library to load and no server round trip: the bytes are hashed on your device, so even large or sensitive files never leave it. Switch the output between hexadecimal and base64, and copy any digest with one click. SHA-1 is included for comparing legacy checksums, but it is no longer collision resistant, so reach for SHA-256 or stronger when you need real security.

What you can use it for

  • Verify a download by comparing its checksum against the one the publisher lists.
  • Generate a SHA-256 digest to store or index a value without keeping the original.
  • Produce a fingerprint of a file so you can tell two versions apart.
  • Create test vectors while implementing hashing in your own code.
  • Check that a copied file matches the original byte for byte.

How to use it

  1. Choose whether to hash text or a file with the tabs at the top.
  2. Type or paste your text, or drop a file onto the drop area.
  3. Pick hexadecimal or base64 for the output format.
  4. Read the SHA-1, SHA-256, SHA-384 and SHA-512 digests as they appear.
  5. Copy any digest with its copy button.

Everything runs inside your browser. No file is uploaded to any server. See more tools in this field.

Developer

Frequently asked questions

Is my text or file uploaded anywhere?

No. Every digest is computed locally with the Web Crypto API built into your browser. Your text and files never leave your device, which is what makes it safe to hash private documents here.

Which algorithm should I use?

For new work use SHA-256 as a solid default, or SHA-384 and SHA-512 when you want a longer digest. SHA-1 is offered only to compare against old checksums: it is broken for security because attackers can craft collisions, so do not use it to protect anything.

What is the difference between hex and base64 output?

They are two ways of writing the exact same hash bytes. Hexadecimal uses two characters per byte and is the format most checksum tools print. Base64 is shorter and is common in HTTP headers and tokens. The underlying digest is identical.

Why is the SHA-256 of empty input always the same value?

A hash is deterministic: the same input always produces the same digest. Empty input is still a valid input, so its SHA-256 is the well known e3b0c442...b855 every time. Change a single byte and the whole digest changes.

Can I hash large files?

Yes. The file is read and hashed in your browser, so the practical limit is your device memory rather than any upload size. Very large files simply take a moment to read before the digests appear.