Web Tools
Hash Generator
Generate SHA-256, SHA-384, or SHA-512 hashes. Free online tool — no sign-up required.
See how to use this toolHash Generator
Generate SHA-256, SHA-384, or SHA-512 digests locally.
Privacy: this tool processes input locally in your browser without server upload.
About Hash Generator
ToolConv's hash generator computes cryptographic digests of text or file input using the browser's Web Crypto API (SubtleCrypto). It supports the algorithms that matter for modern development: SHA-1 (legacy, 160-bit, included for compatibility checks only), SHA-256 (the default, used by Git, JWTs, and most APIs), SHA-384 and SHA-512 (for higher-security contexts), and the MD5 family is deliberately omitted from crypto because MD5 is broken for security — but a non-crypto MD5 is provided for checksum use cases like detecting file-tampering at a glance or matching legacy ETag values.
Everything runs locally — your input never leaves the browser. This matters because hashing is often used for password-like material, API signing secrets, or PII. The generator handles large files in a streaming chunk read so memory stays bounded, and it can compute multiple algorithms in a single pass so you can compare SHA-256 against SHA-512 without re-reading the file. It also distinguishes hex output (default) from base64 output, which some APIs require.
How to use it
- 1Paste text or drop a file into the input area.
- 2Select one or more algorithms: SHA-1, SHA-256, SHA-384, SHA-512, MD5 (checksum only).
- 3Pick output encoding: hex (default) or base64.
- 4The tool computes digests locally via SubtleCrypto, streaming large files in chunks.
- 5Copy a digest, or compare it against a known value to verify integrity.
When to use it
- ✓Computing the SHA-256 of a release artifact for a download-checksum page.
- ✓Verifying a file's integrity after a transfer by comparing its hash to the source.
- ✓Generating a sha256 hex of a webhook request body for HMAC signing.
- ✓Matching a legacy MD5 ETag against a freshly computed value during a CDN audit.
Features
- •SHA-1, SHA-256, SHA-384, SHA-512 via Web Crypto SubtleCrypto (CSPRNG-grade).
- •Non-crypto MD5 for checksum/ETag matching only — clearly labeled as broken for security.
- •Hex and base64 output encoding, switchable per algorithm.
- •Streaming chunked read for large files so memory stays bounded.
- •100% local — no input text or file content leaves your browser.
Related tools
UUID Generator
Generate secure UUID v4 identifiers. Free online tool — no sign-up required.
JWT Decoder
Decode JWT headers and payloads locally. Free online tool — no sign-up required.
IP/Subnet Calculator
Calculate IPv4 network, broadcast, and host range. Free online tool — no sign-up required.
Meta Tag Generator
Generate title, description, and social metadata. Free online tool — no sign-up required.
UTM Builder
Create campaign URLs with UTM parameters. Free online tool — no sign-up required.
Hreflang Generator
Generate hreflang tags for multilingual pages. Free online tool — no sign-up required.
Barcode Generator
Generate barcodes in Code 128, EAN, UPC formats. Free online tool — no sign-up, runs entirely in your browser.
Bulk QR Code Generator
Generate multiple QR codes at once from a list. Free online tool — no sign-up, runs entirely in your browser.
FAQ
What is the difference between SHA-256 and MD5?
SHA-256 produces a 256-bit digest and is considered cryptographically secure — no practical collision attack exists. MD5 produces a 128-bit digest and is broken: collisions can be generated in seconds. MD5 must never be used for password hashing, signatures, or certificates. It is provided here only for non-security checksum use cases like matching legacy ETag values.
Which hash should I use by default?
SHA-256 is the right default for almost every modern use case — file integrity, API request signing, JWT signatures (HS256/RS256), Git object hashing. Use SHA-384 or SHA-512 only when a specific protocol or compliance regime requires it. Use SHA-1 only for compatibility with legacy systems like older Git SHAs.
Are my inputs sent to a server?
No. Hashing is performed entirely in your browser via the Web Crypto SubtleCrypto API. No text, file bytes, or generated digest is transmitted. This is critical because inputs are often secrets, PII, or pre-signature request bodies.
Can hashing be reversed to recover the original input?
No. SHA-256 and the other SHA-2 variants are one-way functions — there is no mathematical inverse. The only way to 'crack' a hash is a brute-force or dictionary attack, which is why salted slow hashes (bcrypt, scrypt, Argon2) are required for password storage rather than plain SHA-256.
Why is SHA-1 still offered if it is broken?
SHA-1 has known collision attacks (the SHAttered research, 2017) and must not be used for new security-sensitive code. However, it remains in legitimate use for legacy compatibility — Git still uses SHA-1 for object IDs, many older TLS/ETag systems emit SHA-1, and integrity checks against historical artifacts still require it. The tool offers it clearly labeled as legacy.
What is the difference between hex and base64 output?
Hex encodes each byte as two ASCII characters (0-9a-f), producing a 64-char string for SHA-256 — longer but easy to read and compare. Base64 encodes 3 bytes per 4 characters, producing a 44-char string (with padding) — more compact, preferred by APIs that transmit hashes in JSON or HTTP headers. The generator supports both per algorithm.