Hash text (MD5, SHA, SM3)
MD5, SHA-1, SHA-2, SHA-3, Keccak, RIPEMD-128/160/256/320, SM3, BLAKE2 and BLAKE3 digests of text, hex or Base64 input, optionally line by line.
Process locally
Files stay in this browser session. Closing or clearing releases them.
Add text
Type or paste the text to process
Adjust settings
Optional: Algorithm, Input is, Text character set and more
Run
Processes in this browser; cancel at any time
About this tool
Calculate the MD5, SHA-1, SHA-256, SM3 or another hash of a piece of text. Use it to debug an API signature by hashing the exact string you send, to compare a value with a hash someone gave you, or to produce the MD5 an older system expects.
It offers MD5 (also in the 16-character form), SHA-1, SHA-2, SHA-3, Keccak-256, RIPEMD, SM3, BLAKE2b and BLAKE3. The input can be text in one of 11 character sets, hex or Base64, and each line can be hashed separately. Up to 1 MB is processed in your browser without being uploaded.
How to use it
- Type or paste the text, or select Use example.
- Choose an “Algorithm”, or “Common set (MD5, SHA-1, SHA-256, SHA-512, SHA3-256, SM3)” to get six digests at once.
- Set “Input is” to “Text”, “Hex” or “Base64”. For text, also pick the “Text character set”.
- Choose the “Output” format and, if needed, turn on “Hash each line separately”.
- Select Run, preview the digest and download it as digest.txt.
Formats and limits
- Input
- Text
- Output
- Plain text
- Size limit
- 1 MB
- Settings
- Algorithm; Input is (Text, Hex, Base64); Text character set; Output (Hex, lowercase, Hex, uppercase, Base64); Hash each line separately
- Privacy
- Files stay in the current browser session. No file bytes are uploaded.
- Price
- Free, no sign-up
Common questions
Why does my hash not match the expected value?
Every byte counts. Check for a trailing space or line break, which is hashed too, and check the “Text character set”: Chinese text gives different bytes, and so a different hash, in UTF-8 and in GBK.
What is the 16-character MD5?
It is the middle part of the usual 32-character MD5, characters 9 to 24.
How do I get the MD5 of a file?
This tool hashes the text you enter. To check a downloaded file against its published MD5 or SHA-256, use the “File checksums” tool, which reads the file itself.
How does “Hash each line separately” work?
Each line is hashed on its own, without its line break, and the results appear in the same order as the lines. An empty line in the middle gets the hash of empty text, and a final line break does not add an extra result.
Can I hash bytes instead of text?
Yes. Set “Input is” to “Hex” or “Base64”. Hex may contain spaces, colons, dashes or 0x prefixes, and Base64 may be standard or URL-safe.
Related tools
File checksums
MD5, SHA-1, SHA-256, SHA-512, SHA3-256, SM3, BLAKE3, CRC-32 or xxHash64 of up to 50 files of any type, read as a stream so large files work.
HMAC
HMAC of text with a secret key using MD5, SHA-1, SHA-2, SHA-3 or SM3. The key is a separate input and is never saved with workflows.
RSA and SM2 encryption and signatures
Encrypt, decrypt, sign or verify text with an RSA key (PEM: PKCS #1, PKCS #8, public key or certificate) or an SM2 key (hex or PEM). Keys stay in the browser and are never saved with workflows.
Caesar cipher and Morse code
Encrypt or decrypt with the Caesar cipher (any shift), ROT13, ROT47 or Atbash, or encode and decode international Morse code.
Symmetric encryption (AES, SM4, DES)
Encrypt or decrypt text with AES (CBC, ECB, CTR, CFB, OFB or GCM), SM4, DES, Triple DES, Blowfish, RC2, RC5, RC6, RC4, Rabbit or XOR. The key is a separate input and is never saved with workflows.
Key pair generator
Generate RSA, ECDSA (P-256, P-384, P-521), Ed25519 or SM2 key pairs as PEM in PKCS #8 or traditional form, for JWT, TLS or encryption tests.