# Hash Generator

> Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text at once, live as you type. Uses the Web Crypto API locally. No data leaves your browser.

- Open the tool: https://overtooled.com/hash-generator
- Category: Security
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: hash, md5, sha, sha256, sha512, checksum, crypto

## In short

Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from any text.

## Overview

Computes SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text with the browser's Web Crypto API (crypto.subtle.digest). All four hashes appear together and update as you type. Use it to get a checksum of a string, compare against a published hash, or produce test vectors.

## Features

- Computes all four algorithms at once: SHA-1, SHA-256, SHA-384 and SHA-512
- Text is encoded as UTF-8 (TextEncoder) before hashing
- Output as lowercase hexadecimal, with an Uppercase checkbox for uppercase hex
- Updates live as you type
- Tap a hash to copy it; one Pipeline button sends the hash tapped last (SHA-256 until then) to another tool
- Clear button empties the input

## How to use it

1. Type or paste text into the Input Text box.
2. Read the four hashes below it; tick Uppercase if you need uppercase hex.
3. Tap the hash you need to copy it.

## Inputs

- Any text (hashed as UTF-8 bytes exactly as entered, including spaces and line breaks)

## Outputs

- Hex digests: SHA-1 (40 hex characters), SHA-256 (64), SHA-384 (96), SHA-512 (128)

## Limits and notes

- Text only; there is no file input, so it cannot hash a downloaded file.
- MD5 is not offered; SHA-1 is included but is no longer considered collision-resistant.
- Plain, unsalted hashes; no HMAC and no password hashing (bcrypt, scrypt, Argon2), so it is not suitable for storing passwords.
- Needs a browser where crypto.subtle is available (secure HTTPS context).
- Input is not saved; hashing runs locally and nothing is uploaded.

## Questions and answers

### How does the Hash Generator work?

Your text is encoded to UTF-8 bytes with TextEncoder and passed to the Web Crypto API's crypto.subtle.digest() four times, once each for SHA-1, SHA-256, SHA-384 and SHA-512. Each resulting digest is converted byte by byte to a two-character hexadecimal string. All four hashes update together as you type, and an Uppercase checkbox switches the hex to capital letters. Everything runs in your browser.

### What is a hash and what is it used for?

A hash is a fixed-length fingerprint of data. It is used to verify file integrity (checking downloads), store passwords securely, and detect data tampering. The same input always produces the same hash, but you cannot reverse a hash back to the original data.

### Which hash algorithm should I use?

SHA-256 is the most widely recommended choice for general use. SHA-384 and SHA-512 give a larger output and extra security margin. SHA-1 is included for compatibility with older checksums but is no longer considered collision-resistant, so avoid it for security purposes. This tool does not offer MD5.

### Is my input sent to a server for hashing?

No. Hashing is performed entirely in your browser using the Web Crypto API, which is built into all modern browsers. Your text never leaves your device.

## Related tools

- [Password Generator](https://overtooled.com/password-generator.md): Generate strong, random passwords with custom options
- [Password Strength Checker](https://overtooled.com/password-strength.md): Test how strong your password is and estimate crack time
- [Secure Note](https://overtooled.com/secure-note.md): Encrypt and decrypt private notes with AES-256 in your browser
- [IBAN Validator](https://overtooled.com/iban-validator.md): Validate International Bank Account Numbers with country and checksum verification

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
