SHA-256 hash generator
Generate SHA-256, SHA-384, or SHA-512 digests of UTF-8 text using your browser. Spaces and line breaks are preserved in the input.
How to Generate a SHA-256 Hash of Text
Find & replace in input
Undo: Ctrl/Cmd+Z · Redo: Ctrl/Cmd+Shift+Z or Ctrl+Y. Up to 20 steps and 4 million retained characters in this tab. Clear discards history.
Hashes use the exact UTF-8 input, including spaces and line breaks. A hash is one-way; it is not encryption or a password-storage format.
SHA-256 hash generator: how to use it
- Paste text, load a local text file, or leave the input empty.
- Select SHA-256, SHA-384, or SHA-512 and generate the hash.
- Copy or download the lowercase hexadecimal digest.
Limits and notes
Up to 1 million text characters. Requires HTTPS or localhost and Web Crypto support. Input is hashed as UTF-8 without trimming or Unicode normalization. This is a text hash, not a binary-file checksum, password-storage algorithm, or encryption tool.
How your privacy works →SHA-256 hash generator: common questions
Can a hash be decrypted?
No. Hashing is one-way. You can hash an original message again to compare digests, but this tool cannot recover text from a digest.
Why did the hash change?
Even a trailing space, newline, or different Unicode normalization changes the bytes and can produce a different digest. The tool hashes the exact text in the editor.
How do I generate a SHA-256 hash?
Paste well-formed text or leave it empty, select SHA-256 under Algorithm, and press Generate hash. ToolMellow encodes the supplied string as UTF-8 and displays the complete lowercase hexadecimal digest locally.
Can I calculate a file checksum here?
The import reads a file as UTF-8 text, removing a leading BOM and replacing malformed UTF-8 before re-encoding for hashing. It is not a byte-exact checksum of arbitrary file contents. Use an appropriate raw-byte hashing method for that task.