Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Hash Generator: MD5, SHA-1, SHA-256, SHA-512

MD5 and SHA hashes of text or files, side by side.

Use via API

MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text (UTF-8). Send JSON, get JSON back.

POST https://pithlab.com/api/v1/tools/hash-generator

curl https://pithlab.com/api/v1/tools/hash-generator \
  -H "Authorization: Bearer $PITHLAB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"hello"}'

Fields and responseOpenAPI documentGet an API key

About the Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or a local file, all at once. Hashing runs in your browser, so files are never uploaded.

How to use the Hash Generator

  1. Choose Text to hash typed or pasted text, or File to hash a file from your device.
  2. Type your text, or pick a file. Text is encoded as UTF-8 before hashing.
  3. All five hashes appear together and update as you type.
  4. Switch between lowercase and uppercase hex, then copy the hash you need.

Examples

SHA-256 of abc

Input

abc

Output

ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
MD5 of a greeting

Input

Hello, World!

Output

65a8e27d8879283831b664bd8b7f0ad4
SHA-1 of abc

Input

abc

Output

a9993e364706816aba3e25717850c26c9cd0d89d

Frequently asked questions

Are MD5 and SHA-1 safe to use?

Not for security. Practical collision attacks exist for both, so never use them for digital signatures, certificates or password storage. They are still fine for spotting accidental corruption, such as checking a download against a published checksum.

Should I hash passwords with SHA-256?

No. Plain SHA-256 is designed to be fast, which helps attackers guess passwords. Store passwords with a slow, salted algorithm built for the job, such as Argon2id, scrypt or bcrypt.

Is my file uploaded?

No. The file is read with your browser's File API and hashed on your device. Very large files are read into memory, so a multi-gigabyte file may be slow or fail on devices with little RAM.

Why does my hash differ from another tool?

Hashes depend on the exact bytes. Check for a trailing newline or space, a different text encoding, or Windows (CRLF) versus Unix (LF) line endings. This tool hashes text as UTF-8 exactly as typed.