Skip to content
PrivBay

Hash Generator for Text and Files

Hash UTF-8 text or up to 10 local files. Choose a digest algorithm and copy the result as hexadecimal or Base64.

Text is hashed as UTF-8, including spaces and newlines. Use SHA-1 and MD5 only for compatibility.

Ready. Your files stay on this device.

How to calculate a digest with the Hash Generator

  1. Choose Text or Files under Input type.
  2. Enter your text or use Choose files to open one to ten files.
  3. Select the Hash algorithm and Output encoding.
  4. Choose Calculate hash, then Copy result next to the digest you need.

Hash the bytes you intend to compare

Use this SHA-256 hash generator to calculate the digest of a downloaded archive, a text fixture or an empty input. Select Text for a UTF-8 string. A leading space, a trailing newline or a different Unicode representation changes the byte sequence and therefore the digest. To reproduce a checksum calculated from a saved document, select Files and open the document itself. The tool reads each file in chunks and calculates a separate digest for every file in the selection. You can cancel a long calculation and start over with fewer files.

For example, if a release page lists a SHA-256 checksum in hexadecimal, select SHA-256 and Lowercase hexadecimal. Copy the result for the corresponding file and compare it with the publisher’s value. Verify that the reference checksum comes from a source you trust, since an altered download and an altered checksum can still agree.

Match the algorithm, encodings and file limits

Algorithm or setting Options & constraints in Hash Generator
Supported digests SHA-256, SHA-384, SHA-512, SHA-1 and MD5 (legacy)
Output encodings Hexadecimal (lowercase) or Base64 of the raw digest bytes
Text input mode Encodes pasted input as exact UTF-8 bytes before hashing
File input mode 1 to 10 files read in chunks; 250 MiB per file, 500 MiB combined

SHA-384 and SHA-512 suit workflows that require longer SHA-2 digests, while the SHA-1 and MD5 hash generator options match legacy file manifests. Switching output encoding to Base64 formats the exact same digest bytes in a shorter string—always compare hex against hex or Base64 against Base64. If you need to encode or decode raw payload strings instead of hashing them, use the Base64 decoder, or create random secrets in the password generator.

Frequently asked questions

Which algorithm should I pick?

SHA-256 is a common default. Match the named algorithm if a publisher or another tool gives you a digest to compare.

Can I use this as an MD5 hash generator?

Yes, select MD5 (legacy). Use it for compatibility with existing checksums and workflows.

Why does pasted text produce a different hash than a file?

The file may contain a byte order mark, different line endings, or a trailing newline. Text is encoded as UTF-8 and files are hashed byte for byte.

Does Base64 change the digest?

It changes only how the digest bytes are written. Compare hex with hex or Base64 with Base64.

What file sizes can I hash?

Choose up to ten files, each up to 250 MiB, with a combined size of up to 500 MiB.

Last updated November 12, 2026