Hash Generator

Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text. All hashing runs in your browser — no upload.

View guide
Algorithm
Choose the hash algorithm.
Related tools
Encode, decode, or format your text.

Guide

What does this tool do

The Hash Generator computes cryptographic hashes from text. Enter any string and get SHA-1, SHA-256, SHA-384, and SHA-512 hashes instantly. All hashing runs in your browser—no upload, no server. Useful for checksums, data integrity, and learning how hash functions work.

How to use it

  1. Enter text — Type or paste the text you want to hash. Supports Unicode (UTF-8).
  2. View hashes — SHA-1, SHA-256, SHA-384, and SHA-512 appear simultaneously.
  3. Copy — Click the copy icon next to any hash to copy it to the clipboard.
  4. Change input — Edit the text; all hashes update in real time.

How it works

The tool uses the Web Crypto API (or a polyfill) to compute hashes. The input is encoded as UTF-8, then passed to the chosen hash algorithm. Each algorithm produces a fixed-length digest (SHA-1: 40 hex chars, SHA-256: 64 hex chars, etc.). The same input always produces the same output; a tiny change changes the hash completely.

All computation runs entirely in your browser. No data is sent to any server.

Use cases & examples

  • Checksums — Verify file content or message integrity.
  • Passwords — Generate password hashes for storage (use proper key derivation in production).
  • APIs — Create request signatures for authentication.
  • Learning — Explore how cryptographic hashes behave.
  • Git — Understand how Git uses SHA-1 for object IDs.

Example

Input: hello

  • SHA-1: aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
  • SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Limitations & known constraints

  • Input size — Very large inputs may slow the browser; no strict documented limit.
  • SHA-1 — Considered weak for new security use; prefer SHA-256 or SHA-512 for security.
  • Browser support — Requires Web Crypto API; works in all modern browsers.

All calculations and conversions run entirely in your browser. No data is sent to any server, so your input never leaves your device.