ripemd160 hash generator online

Create the ripemd160 hash of any text: 40 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.

Runs in your browser
A hash is one-way. It can't be turned back into the text.
Check & convert

Compare, hash a file, copy any format

Type text in the tool above or choose a file. Case, spaces and prefixes like ripemd160: don't matter.

Formats for hello world
Hex
98c615784ccb5fe5936fbc0cbe9dfdb408d92f0f
HEX (upper case)
98C615784CCB5FE5936FBC0CBE9DFDB408D92F0F
Base64
mMYVeEzLX+WTb7wMvp39tAjZLw8=

Files are read in your browser and never uploaded.

In short

What is RIPEMD-160?

RIPEMD-160 produces a 160-bit hash (40 hex characters). It was designed in Europe in 1996 as an open alternative to SHA-1. Today it is best known from Bitcoin: an address is based on RIPEMD-160(SHA-256(public key)), called HASH160.

LegacyNo practical break of the full algorithm is public, but it is rarely used and not recommended for new designs.
Where you meet it
  • Bitcoin addresses (HASH160)
  • OpenPGP (legacy)
Try it

Change one letter, see what happens

A cryptographic hash changes about half of all bits when one input character changes. Nothing about the old hash tells you what the new one will be.

Hash A…
Hash B…

Calculating…

Bitcoin

HASH160: SHA-256, then RIPEMD-160

Bitcoin shortens a public key with two hashes: RIPEMD-160 of the SHA-256 of the key bytes. Paste a public key in hex (33 or 65 bytes) or any hex data.

SHA-256
…
HASH160 = RIPEMD-160(SHA-256)
…

The example is the public key of private key 1.

Use it in code

The same result in your code

Every snippet prints 98c615784ccb5fe5936fbc0cbe9dfdb408d92f0f for hello world, the same as the tool. They are run against PHP's hash() before each release.

PHP
echo hash('ripemd160', 'hello world');
Python
import hashlib

print(hashlib.new("ripemd160", "hello world".encode()).hexdigest())

Needs an OpenSSL build that still offers RIPEMD-160.

Node.js
import { createHash } from "node:crypto";

console.log(createHash("ripemd160").update("hello world").digest("hex"));
Command line
printf '%s' 'hello world' | openssl dgst -ripemd160
Test values

RIPEMD-160 test values

Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.

Inputripemd160
empty string9c1185a5c5e9fc54612808977ee8f548b2258d31
abc8eb208f7e05d987a9b044a8e98c6b087f15a0bfc
hello world98c615784ccb5fe5936fbc0cbe9dfdb408d92f0f
The quick brown fox jumps over the lazy dog37f332f68db77bd9d7edd4969571ad671cf9dd3b
Common mistakes

Why your RIPEMD-160 doesn't match

HASH160 is two hashes

A Bitcoin public key hash is RIPEMD-160 of the SHA-256 of the key bytes. Hashing the key with RIPEMD-160 alone gives a different value.

A line break sneaks in

echo "hello world" | sha256sum hashes 12 bytes: the text plus a line break. Use printf '%s' 'hello world' or echo -n to hash exactly 11 bytes.

Same text, different bytes

The tool hashes UTF-8 bytes, like most languages. Windows APIs and .NET's Encoding.Unicode use UTF-16, older systems Latin-1. "ü" is 2 bytes in UTF-8, 1 in Latin-1, 2 in UTF-16, and each gives a different hash.

Upper or lower case

Hex is not case-sensitive: 5EB63BBB… and 5eb63bbb… are the same hash. Compare in one case, and watch for spaces or a prefix like "sha256:".

This tool trims and uses CRLF

Like the form on the original site, the tool removes spaces and line breaks at the start and end and sends line breaks as CRLF (\r\n). For exact bytes use "Hash a file" or "Exactly as typed" in the check panel.

Compare

The RIPEMD family side by side

The same text, every RIPEMD algorithm. Shown for hello world; type in the tool above to use your text.

AlgorithmHashBits
ripemd128c52ac4d06245286b33953957be6c6f81128
ripemd16098c615784ccb5fe5936fbc0cbe9dfdb408d92f0f160
ripemd2560d375cf9d9ee95a3bb15f757c81e93bb0ad963edf69dc4d12264031814608e37256
ripemd3200e12fe7d075f8e319e07c106917eddb0135e9a10aefb50a8a07ccb0582ff1fa27b95ed5af57fd5c6320
Measured on your device

How fast is RIPEMD-160?

Hashes up to 4 MB of random data in your browser and compares with sha256, xxh3. Browser numbers are lower than native code, but the ranking holds.

FAQ

Questions about RIPEMD-160

Can RIPEMD-160 be decrypted?

No. RIPEMD-160 is a one-way function: there is no key and no way to compute the input from the hash. Sites that "decrypt" RIPEMD-160 look the hash up in large tables of known inputs, which only works for short or common strings.

How long is a RIPEMD-160 hash?

A RIPEMD-160 hash is always 160 bits, written as 40 hexadecimal characters (20 bytes), no matter how long the input is.

Is RIPEMD-160 secure?

It is not known to be broken in practice, but RIPEMD-160 is rarely used, little studied today and not recommended for new designs. Use SHA-256 or SHA3-256 instead.

Should I hash passwords with RIPEMD-160?

No. RIPEMD-160 is fast, so attackers can test huge numbers of guesses. Use Argon2id, bcrypt or scrypt with a unique salt per password.

How is RIPEMD-160 used in Bitcoin?

A public key is hashed with SHA-256, then with RIPEMD-160 (HASH160). The 20-byte result is the core of a classic Bitcoin address.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.