Saved

Press the star next to a tool's name to save it.

All my tools

SHA-256 Hash Generator

Type some text or choose a file, and this SHA-256 hash generator creates its 256-bit fingerprint, ready to copy or compare. Everything runs privately in your browser.

Every character counts, including spaces and line breaks. Files can be up to 1 GB.

Your text and files stay on this device. Nothing is uploaded.

SHA-256 hash

Working…

Enter some text or choose a file.

A SHA-256 hash generator turns any text or file into a short, fixed-length fingerprint. Type your text or choose a file, press Generate hash, and this SHA-256 hash generator gives you a value of 64 hexadecimal characters that you can copy or compare with another hash. The same input always produces the same result, while even a tiny change produces a completely different one. That makes it useful for checking that a download hasn't been altered. The work is done inside your browser, so your text and your files never leave your device.

What is SHA-256?

SHA-256 is a member of SHA-2, a set of cryptographic hash functions designed by the United States National Security Agency and first published in 2001. The family was published by the National Institute of Standards and Technology as a federal standard. It includes functions with digests of 224, 256, 384 or 512 bits. As its name suggests, SHA-256 produces a digest of 256 bits, made up of eight 32-bit words. Written in hexadecimal, that comes to exactly 64 characters, however short or long the input is.

How to use the SHA-256 hash generator

  1. Choose Text or File.
  2. Type your text, or pick the file that you'd like to check.
  3. Paste an expected hash if you want to compare the two.
  4. Press Generate hash.
  5. Copy the result in hexadecimal, or use the Base64 version shown below it.

What is a hash function?

A hash function takes data of any size and produces an output of a fixed size. A good cryptographic hash has three important qualities. It is one-way, so you can't work out the original data from the hash. It is sensitive, so changing a single character changes the result completely. And it is collision resistant, meaning that it's extremely hard to find two different inputs with the same output.

SHA-256 examples

The hash of the text abc begins with ba7816bf and ends with f20015ad. Change one letter, and the result looks entirely unrelated. An empty input also has its own hash, which begins with e3b0c442, but this tool asks for some text so that you don't get that value by accident. Because capitalization and spacing count, Hello and hello have different hashes, and a space at the end of a line changes the result too.

How to verify a download

Software publishers often list a SHA-256 checksum next to a download. To check your copy, choose File, select what you've downloaded, and paste the published checksum into the Compare box. If the tool says that the hashes match, your file is identical to the one that the checksum was made from. If they are different, the file may be incomplete or may have been changed, so delete it and download it again from the official site. For the check to mean anything, the checksum should come from a source that you trust, ideally the publisher's own website.

What is SHA-256 used for?

  • File integrity: confirming that a file hasn't changed.
  • Digital signatures and certificates: signing a short hash rather than a whole document.
  • Software development: identifying builds and detecting changed content.
  • Finding duplicates: two files with the same hash are, in practice, the same file.

Is SHA-256 secure?

As of 2026, SHA-2 remains secure against known attacks. Published attacks work only against reduced versions of the algorithm, with fewer rounds than the 64 that SHA-256 uses. Bear in mind that hashing isn't encryption, because a hash can't be turned back into the original data. On its own, a fast hash is also the wrong choice for storing passwords, because attackers can try a very large number of guesses quickly. Password systems should use a slow function designed for that job, along with a unique salt for each user.

Hexadecimal and Base64

A hash is really a series of bytes, and it can be written down in more than one way. Hexadecimal uses the digits 0 to 9 and the letters a to f, and it is the most common format for checksums. Capital and small letters mean the same thing in hexadecimal, so the comparison here ignores case. Base64 is a shorter way of writing the same bytes, which some systems prefer. Both describe exactly the same hash.

Is my data private?

Yes. The hash is calculated with your browser's built-in cryptography features. Your text and your files aren't uploaded, which makes this suitable for confidential documents. A very large file does need to be loaded into your device's memory, so a big file may take a little while on an older phone.

Common mistakes

  • Including an extra space or line break. It produces a different hash.
  • Comparing against a different algorithm. MD5 and SHA-1 values have different lengths.
  • Trusting a checksum from an unknown source. Get it from the publisher.

Encode data with the Base64 encoder and decoder, tidy up data with the JSON formatter, and create strong logins with the password generator.

What next

Use this often? Add SHA-256 Hash to your Home screen.

Frequently asked questions

How does the SHA-256 hash generator work?

It runs your text or file through the SHA-256 function in your browser and shows the 256-bit result in hexadecimal.

Can a SHA-256 hash be reversed?

No. A hash is one-way, so the original data can't be worked out from it.

How long is a SHA-256 hash?

It is 256 bits, written as 64 hexadecimal characters.

Is my file uploaded?

No. The hash is calculated on your device, and nothing is sent anywhere.

Why did my hash change?

Every character counts. A different capital letter, space or line break gives a different hash.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Developer Tools