Hash generator

Examples

Input

hello

SHA-256

2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Hash Guides & articles

Related tools

SHA-256, MD5 and hash generator online is often used together with Base64 decoder and Base64 encoder online, UUID generator and GUID generator online, JSON formatter, validator and beautifier online when payloads, tokens, URLs, logs, or markup move through the same workflow.

Hash generator

Generate MD5, CRC32, SHA-1, SHA-256, SHA-384 and SHA-512 hashes. DevToolGrid Online offers a free SHA-256, MD5 and hash generator online.

What is a hash function?

A hash function maps any input to a fixed-size string called a digest. It is one-way: the same input always produces the same hash, but you cannot recover the input from the hash, and changing a single byte produces a completely different result. Hashes are used for file integrity, checksums, deduplication and verifying data.

How to generate a hash

  1. 1 Type or paste text, or drop a file to hash its bytes.
  2. 2 Read MD5, CRC32, the SHA-2 family, Keccak and RIPEMD160 at once.
  3. 3 Choose hex or Base64 output and toggle uppercase.
  4. 4 Paste an expected hash to compare, or switch on HMAC mode and add a secret key.

Common hashing mistakes

  • Using MD5 or SHA-1 for securityBoth are broken against collisions. Use SHA-256 or stronger for anything security-related.
  • Confusing hashing with encryptionHashing is one-way and cannot be reversed. To protect data you can read back later, use encryption instead.
  • Hashing passwords without a saltPlain hashes are vulnerable to rainbow tables. Use a salted, slow algorithm such as bcrypt or Argon2.

MD5 and SHA256 hash generator code

MD5 hash bash

printf '%s' "$v" | md5sum

SHA256 hash command

printf '%s' "$v" | sha256sum

Generate MD5 checksum Linux

md5sum file.iso

MD5 generator Windows

certutil -hashfile file.txt MD5

SHA256 hash C#

Convert.ToHexString(SHA256.HashData(bytes))

Hash generator Python

hashlib.sha256(text.encode("utf-8")).hexdigest()

MD5 hash Java

MessageDigest.getInstance("MD5").digest(bytes)

Hash generator bcrypt

Use bcrypt or Argon2 for passwords, never plain MD5 or SHA-256

Hash vs HMAC vs encryption

A plain hash verifies integrity but anyone can recompute it. HMAC adds a secret key so only someone with the key can produce or verify the digest — it proves authenticity. Encryption is different again: it is reversible with a key and keeps data confidential. This tool covers hashing and HMAC.

FAQ

Is this tool free?

Yes. The hash generator is completely free with no limits.

Do I need a hash generator download?

No. This hash generator tool runs in your browser, so there is no hash generator app, no md5 generator exe and no sha256 calculator download to install.

Which algorithms does it cover?

It works as a hash generator md5, a hash generator sha256 and a hash generator sha512 in one place, so an md5 hash calculator and a sha256 hash calculator online are the same panel.

Can it hash a file?

Yes. Drop a file to use it as an md5 generator for file input or a sha256 generator from file, which is how you check a published checksum.

Is my data sent to a server?

No. Text and files are hashed locally in your browser; nothing is uploaded.

Can a hash be reversed?

No. Hashing is one-way. So-called reversal only works by guessing inputs, which is why strong, salted algorithms matter.

Which algorithm should I use for passwords?

Not a raw hash. Use a dedicated password algorithm such as bcrypt, scrypt or Argon2 with a unique salt.