Hashing the text as UTF-8.

Help Us Improve

—

(—)

SHA-256 hash online

Create a SHA-256 online hash of text or a file in the browser and copy the hex digest. Local-first. No signup.

What is SHA-256 online?

SHA-256 online means computing the SHA-256 digest of text or a file in the browser and copying the 64-character hex string. Use this free local-first hasher to checksum an input you already have—no signup. SHA-256 is one-way, so this page does not decrypt a hash back into the original text.

SHA-256 online features

A local SHA-256 digest tool.
  • Text or file

    Hash UTF-8 text, or switch to the raw bytes of a file.

  • Hex digest

    64 lowercase hex characters, with an uppercase option.

  • Compare

    Paste an expected digest to see whether it matches.

  • Copy

    Copy the digest in one click.

How to hash with SHA-256

From input to a hex digest.
  1. Enter text or a file

    Type in the box, or choose a file to hash its bytes instead.

  2. Read the digest

    The SHA-256 hex string updates as the input changes.

  3. Copy or compare

    Copy the digest, or paste one you already have to check a match.

Tips for SHA-256

Avoid common digest mix-ups.
  • 01

    UTF-8 matters

    Text is encoded as UTF-8 before hashing. A different encoding changes the digest.

  • 02

    Hex case does not change the value

    Uppercase is only a display option. Compare ignores case and spaces.

  • 03

    A match is not decryption

    Comparing a digest to text you typed checks that pair. It does not invert the hash.

  • 04

    Do not use SHA-256 alone for passwords

    Password storage needs a slow password hash (such as Argon2 or bcrypt), not a raw SHA-256 digest.

Great for

When a SHA-256 online hash helps.
  • Checksums

    Confirm a file or string matches a published digest.

  • API examples

    See the hex form your code should produce for a known input.

  • Quick checks

    Spot a truncated or mistyped 64-character digest.

Why hash here

Fast local SHA-256.
  • Local-first

    Text and files stay in the browser for this tool.

  • Free

    Unlimited hashes with no signup.

  • Web Crypto

    Uses the browser SHA-256 implementation, not a lookalike.

  • Honest scope

    A digest calculator. It does not reverse hashes.

Technical notes

How this SHA-256 tool hashes.
Algorithm
crypto.subtle.digest("SHA-256").
Text
UTF-8 via TextEncoder, including the empty string.
Files
The file bytes only—filename and metadata are not included.
Privacy
Client-side only—no network upload.

Sources & References

SHA-256 and Web Crypto references.
  • “The digest() method of the SubtleCrypto interface generates a digest of the given data, using the specified hash function. A digest is a short fixed-length value derived from some variable-length input.”
    — MDN Web Docs — SubtleCrypto.digest()

    MDN — SubtleCrypto.digest(): Browser API this page uses to compute SHA-256. developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest

  • “SHA-2 (Secure Hash Algorithm 2) is a set of cryptographic hash functions designed by the United States National Security Agency (NSA) and first published in 2001.”
    — Wikipedia — SHA-2

    Wikipedia — SHA-2: SHA-256 is the 256-bit member of the SHA-2 family. en.wikipedia.org/wiki/SHA-2

  • “This standard specifies hash algorithms that can be used to generate digests of messages. The digests are used to detect whether messages have been changed since the digests were generated.”
    — NIST FIPS 180-4 — Secure Hash Standard

    FIPS 180-4: The federal standard that specifies SHA-256. csrc.nist.gov/pubs/fips/180-4/upd1/final

Frequently Asked Questions

Quick answers about this tool—open a question to read more.