Hash Generator

Hash text with MD5, SHA-1, SHA-256, and SHA-512. Supports HEX and Base64 output.

Category: Dev Tools

When to use?

Use it for development tasks needing a hash — password integrity checks, file checksums, comparing server response signatures.

How to use

  • Paste the text to hash.
  • Choose the algorithm (MD5 / SHA-1 / SHA-256 / SHA-512).
  • Choose the output format (HEX or Base64).
  • Copy or download the result.

Input Explanation

Enter any text to hash. The result updates in real time as the input changes.

Calculation Basis

SHA family uses the browser Web Crypto API (crypto.subtle.digest); MD5 uses a pure-JS RFC 1321 implementation. No data is sent to a server.

Usage Examples

  • Verify file checksums - Compare a SHA-256 checksum to verify a downloaded file's integrity.
  • Check API signatures - Compute the same hash as a server-issued signature to verify consistency.

Examples

  • "Hello" → SHA-256 (HEX): 185f8db32921bd46d34db8...
  • "BlingCubby" → MD5 (HEX): 4a8e3f...

Cautions

  • MD5 and SHA-1 have known collision weaknesses; use SHA-256 or higher for security.
  • For password storage, use a key derivation function (KDF) like bcrypt or argon2, not this tool.

FAQ

What is the difference between SHA-256 and MD5?

MD5 is a fast 128-bit hash with collision weaknesses, not for security. SHA-256 is a 256-bit hash and the current recommended standard.

Does the same input always return the same hash?

Yes, hash functions are deterministic; the same input always gives the same hash.

Related Tools

  • JSON Formatter - Beautify or minify JSON strings instantly and check for validity errors.
  • UUID Generator - Generate up to 20 cryptographically secure UUID v4 values at once.
  • Password Generator - Generate secure random passwords in the browser by choosing length, character set, and count.
  • JWT Decoder - Decode a JWT header and payload to view the JSON and key claims.
  • Regex Tester - Enter a regex pattern to see matches in text in real time.
  • QR Code Generator - Convert text or a URL into a QR code and download it as an image.