---
title: Hash Generator — MD5, SHA-1, SHA-256, SHA-512 Online
url: https://varstatt.com/toolkit/hash
description: Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes for text and files. Verify integrity with hash comparison. All client-side.
section: Developer Toolkit (https://varstatt.com/toolkit)
tags: encoding
related: UUID (https://varstatt.com/toolkit/uuid), Hash (https://varstatt.com/toolkit/hash), Password (https://varstatt.com/toolkit/password), Encrypt (https://varstatt.com/toolkit/encrypt)
---
# Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes for text and files. Verify integrity with hash comparison. All client-side.

## How It Works

1. **Enter text or drop a file** — Type text for live hashing, or drag-and-drop a file to hash its contents.
2. **View all hashes** — MD5, SHA-1, SHA-256, SHA-384, and SHA-512 are computed simultaneously.
3. **Compare if needed** — Paste an expected hash to verify integrity — the tool highlights matches in green.

## FAQ

### Which algorithm should I use?

SHA-256 for most purposes. MD5 and SHA-1 are cryptographically broken but still useful for checksums. SHA-512 for maximum security.

### Are files uploaded to a server?

No. Files are read entirely in your browser using the FileReader API. Nothing is uploaded.

### Why is MD5 considered insecure?

Collision attacks can generate two different inputs with the same MD5 hash. Don't use it for security — only for non-critical checksums. Need a strong random passphrase to hash? Try the [password generator](https://varstatt.com/toolkit/password).

## Usage

This tool runs entirely in the browser — visit the URL above to use it.

Prefill inputs via URL parameters:

- `https://varstatt.com/toolkit/hash?input=...`

## Related Tools

- [UUID](https://varstatt.com/toolkit/uuid)
- [Hash](https://varstatt.com/toolkit/hash)
- [Password](https://varstatt.com/toolkit/password)
- [Encrypt](https://varstatt.com/toolkit/encrypt)
