YourTools.
简体中文
Back to the catalog
Tools

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

Hash text (MD5, SHA, SM3)

Run

Processes in this browser; cancel at any time

Add text first

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

  1. Type or paste the text, or select Use example.
  2. Choose an “Algorithm”, or “Common set (MD5, SHA-1, SHA-256, SHA-512, SHA3-256, SM3)” to get six digests at once.
  3. Set “Input is” to “Text”, “Hex” or “Base64”. For text, also pick the “Text character set”.
  4. Choose the “Output” format and, if needed, turn on “Hash each line separately”.
  5. 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.