Follow Us

SHA256 Hash Generator

Create the SHA-256 hash of any text or file instantly — right in your browser. Get hex or Base64, verify a checksum, hash line by line or create an HMAC-SHA256 with a secret key.

Runs in your browser Live hashing File checksums HMAC No sign-up
0 characters · 0 bytes
256-bit hash · 64 hex characters

Same input, other algorithms

MD5 –
SHA-1 –
SHA-256 –
SHA-384 –
SHA-512 –

How to Generate a SHA-256 Hash

Hash text or files in seconds, then copy the result or check it against a known checksum.

1

Add text or a file

Type or paste text, or switch to File and drop any file to hash it.

2

Get the SHA-256 hash

The 64-character SHA-256 hash appears instantly and updates as you type.

3

Pick a format or add a key

Choose hex or Base64, or turn on HMAC to sign with a secret key.

4

Copy, verify or download

Copy the hash, paste an expected checksum to compare, or download the result.

Output

256 bits · 64 hex chars

Files

Up to 2 GB

HMAC

HMAC-SHA256

Formats

hex · HEX · Base64

Batch

One hash per line

Verify

Checksum match

Privacy

Nothing uploaded

Price

100% free

SHA-256 Generator Features

Everything you need to work with SHA-256 hashes, in one free tool.

Live hashing

The SHA-256 hash updates as you type — no button to press, even for long text.

File checksums

Drop any file up to 2 GB to get its SHA-256 checksum. The file is read in your browser and never uploaded.

Verify a checksum

Paste the expected hash from a download page and see instantly whether it matches — in hex or Base64.

HMAC-SHA-256

Turn on “Use a secret key” to create an HMAC-SHA-256 signature. Keys can be text, hex or Base64.

Hex or Base64

Copy the hash as lowercase hex, UPPERCASE hex, Base64 or URL-safe Base64.

Hash each line

Hash a list of values one line at a time and download the results as a CSV file.

Text, hex or Base64 input

Hash plain UTF-8 text, or raw bytes written as hex or Base64.

Other algorithms

See MD5, SHA-1, SHA-256, SHA-384 and SHA-512 for the same input side by side.

Private by design

Hashing uses your browser’s built-in Web Crypto engine. Nothing you enter is sent anywhere.

SHA-256 Example Hashes

Use these known values to check that any SHA-256 tool or library gives the right result.

InputSHA-256 hash (hex)
(empty string)e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
abcba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
hello worldb94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
The quick brown fox jumps over the lazy dogd7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592

Where Is SHA-256 Used?

SHA-256 is the most widely used secure hash today. Here are the places you’re most likely to meet it.

WhereHow SHA-256 is used
Software downloadsPublishers list a SHA-256 checksum so you can confirm the file is genuine and complete
HTTPS / TLS certificatesCertificates are signed using SHA-256 with RSA or ECDSA
Bitcoin & blockchainsBlocks and transactions are identified with (double) SHA-256
APIs & webhooksHMAC-SHA256 signs requests — for example AWS Signature V4, Stripe and GitHub webhooks
JSON Web TokensHS256 and RS256 tokens are signed using SHA-256
Docker & GitContainer image digests and Git’s newer object format use SHA-256
Subresource Integrityintegrity="sha256-…" makes browsers check scripts haven’t changed

What Can You Use It For?

Common reasons developers and IT teams need SHA-256.

Verify downloads

Check installers and ISOs against their published SHA-256.

HMAC-SHA256 signatures

Test webhook and API signatures, like Stripe or GitHub.

Blockchain & crypto

Explore how Bitcoin-style hashes behave.

Integrity checks

Fingerprint backups and files to detect any change.

Subresource Integrity

Make Base64 SHA-256 values for script integrity attributes.

Linux & DevOps

Match sha256sum output and Docker image digests.

Debugging

Compare the hash your code produces with a known-good value.

Learning

See the avalanche effect: one letter changes the whole hash.

Tips for Accurate SHA-256 Hashes

  • Watch for hidden newlines. echo adds a line break — use echo -n, or turn on “Trim spaces & line breaks”.
  • Base64 for SRI. For a script integrity attribute, use Base64 and prefix it with sha256-.
  • Compare in the same format. Hex and Base64 look different but can be the same hash — the checker understands both.
  • Use the command line too. Run sha256sum file (Linux), shasum -a 256 file (macOS) or certutil -hashfile file SHA256 (Windows).
  • Don’t store passwords with plain SHA-256. It’s too fast to resist guessing — use bcrypt, which is slow on purpose.
  • Use a long random key for HMAC. At least 32 random bytes for HMAC-SHA256.

Private by Design

Everything happens in your browser. What you type and any files you open are never sent to Toolszu or anyone else, and nothing is stored.

Results are calculated with standard, tested algorithms, so they match the command line and every major programming language.

Frequently Asked Questions

Answers about SHA-256 hashes, checksums and HMAC-SHA256.

SHA-256 is part of the SHA-2 family designed by the NSA and published by NIST. It turns any input into a fixed 256-bit value, usually written as 64 hexadecimal characters. The same input always gives the same hash, and the smallest change gives a completely different one.

Yes. SHA-256 has no known practical attacks and is the standard secure hash for TLS certificates, code signing, blockchains and APIs.

No. Hashing is one-way, so there is nothing to decrypt. Sites that claim to “decrypt” SHA-256 only look the hash up in lists of common words that were hashed in advance.

256 bits: 64 characters in hex, or 44 characters in Base64.

Both are secure. SHA-256 gives shorter hashes and is the most widely supported; SHA-512 gives longer hashes and is often faster on 64-bit computers. Use whatever your system or specification asks for — usually SHA-256.

Switch to File, drop your file, then paste the checksum from the download page into “Compare with an expected hash”. You’ll see Match or No match instantly.

Usually because of an invisible difference in the input: a trailing newline, a space, Windows line endings or a different text encoding. Try “Trim spaces & line breaks”, and make sure both tools use UTF-8.

HMAC-SHA256 combines SHA-256 with a secret key to sign a message, proving it came from someone who knows the key and wasn’t changed. It’s used by AWS, Stripe and GitHub webhooks, and HS256 JSON Web Tokens.

Not on its own. Plain SHA-256 is fast, which makes guessing passwords fast too. Use bcrypt, scrypt or Argon2, which are slow on purpose and add a salt.

e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 — useful for spotting accidentally empty inputs.

No. Hashing happens in your browser using the built-in Web Crypto engine. Your text and files never leave your device.

Yes, it’s completely free with no sign-up and no limits.

Related Free Tools

Generate a SHA-256 Hash Now

Paste text or drop a file and get its SHA-256 instantly. Free, private and no sign-up.

Start Now

Ad Blocker Detected

Toolszu provides free access to over 1,000 tools. We rely on minimal ads to maintain our servers and keep improving the site for everyone.

Please pause or disable your ad blocker to continue using Toolszu.

or
Go ad-free — from $19/year

Already have a plan? Sign in