FormatterHQ

RIPEMD-160 Hash Generator

Compute RIPEMD-160 digests (40 hex characters) of text or files — the hash behind Bitcoin’s HASH160 and several PGP and OpenSSL workflows.

Loading tool…
Ready.

How to use the RIPEMD-160 Hash Generator

  1. Type or paste text into the input box, or switch the source to File and choose a file — it is hashed locally, never uploaded.
  2. Read the main hash at the top — the table below shows the same input under every other common algorithm. Tick Uppercase hex if you need capitals.
  3. To verify a value, paste it into Compare with an expected hash — the tool reports a match, or which algorithm it matches instead. Copy any row with its Copy button.

RIPEMD-160 hash generator

RIPEMD-160 is a 160-bit hash function designed in 1996 by Hans Dobbertin, Antoon Bosselaers and Bart Preneel as part of the European RIPE project. It was created as an openly designed alternative to the NSA-designed SHA-1 and to replace the earlier, weaker RIPEMD. This RIPEMD-160 generator computes the digest of text or files in your browser.

Example

Input:

The quick brown fox jumps over the lazy dog

RIPEMD-160 hash:

37f332f68db77bd9d7edd4969571ad671cf9dd3b

The digest of an empty input is 9c1185a5c5e9fc54612808977ee8f548b2258d31.

At a glance

PropertyValue
Digest size160 bits (20 bytes, 40 hex characters)
Block size512 bits
DesignTwo parallel lines of 5 rounds × 16 steps, combined at the end
DesignedDobbertin, Bosselaers and Preneel, 1996 (ISO/IEC 10118-3)
StatusNo practical collision attacks on the full function

Test vectors for checking an implementation

If you are porting or debugging RIPEMD-160 code, compare its output for these standard inputs with the values below (and with this tool):

InputRIPEMD-160
(empty)9c1185a5c5e9fc54612808977ee8f548b2258d31
a0bdc9d2d256b3ee9daae347be6f4dc835a467ffe
abc8eb208f7e05d987a9b044a8e98c6b087f15a0bfc

A frequent porting bug is byte order: like MD5, RIPEMD-160 reads message words and the length field little-endian, unlike SHA-1 and SHA-256, and getting that wrong changes every result. In a Bitcoin address, the 20-byte HASH160 is prefixed with a version byte and followed by a 4-byte checksum, and those 25 bytes are written in Base58, which you can inspect with Base58 decode.

Why two parallel lines?

RIPEMD-160 processes every block twice, in two independent “lines” with different constants and message orderings, then combines the results. An attacker has to control both lines at once, which is much harder than attacking a single line. This design has held up well: unlike SHA-1, no collision for the full RIPEMD-160 has been found.

The family also includes RIPEMD-128, RIPEMD-256 and RIPEMD-320. The two larger variants only lengthen the output; they are designed to offer the same security level as RIPEMD-128 and RIPEMD-160, so they are rarely the right choice when you need more strength.

Security considerations

Although unbroken, RIPEMD-160’s 160-bit output provides only about 80 bits of collision resistance — the same size class as SHA-1 — which is considered too small for new designs that need long-term collision resistance. It is fine for compatibility and for uses where preimage resistance is what matters. For new systems, choose SHA-256, SHA-3 or BLAKE2.

RIPEMD-160 in Bitcoin

Bitcoin uses “HASH160” = RIPEMD-160(SHA-256(x)) to shorten public keys and scripts into 20-byte values for addresses. Note that this means RIPEMD-160 is applied to the binary SHA-256 digest, not to its hex text; hashing the hex string here will not reproduce a Bitcoin HASH160. You would need a tool that hashes raw bytes, or code such as hashlib.new('ripemd160', hashlib.sha256(data).digest()) (RIPEMD-160 may require OpenSSL’s legacy provider in recent Python builds).

Other hashes worth comparing: SHA-1 (same length, broken) and SHA-256. Everything runs locally in your browser.

Frequently asked questions

Is RIPEMD-160 secure?
No practical attacks break the full function, but its 160-bit output gives only about 80-bit collision resistance, which is below modern recommendations for new designs.
How is RIPEMD-160 used in Bitcoin?
Bitcoin computes RIPEMD-160 of the SHA-256 digest of a public key or script (HASH160) and encodes the 20-byte result in the address.
Why can’t Python compute RIPEMD-160 on my system?
Newer OpenSSL 3 builds move RIPEMD-160 into the legacy provider, so hashlib may not offer it by default. Pure-Python or other libraries can be used instead.
How long is a RIPEMD-160 hash?
20 bytes, displayed as 40 hexadecimal characters.

Last updated September 26, 2026

Related tools

RSA Key Pair Generator Generate RSA 2048, 3072 or 4096-bit public/private key pairs in PEM (PKCS#8, PKCS#1) or JWK format with WebCrypto, entirely offline. Scrypt Hash Generator Derive scrypt password hashes and keys with custom N, r, p and salt; output as hex, Base64 and common encoded formats. Self-Signed Certificate Generator Create a self-signed SSL/TLS certificate and RSA key for localhost, dev servers or internal tools. Generated locally with WebCrypto. SHA-1 Hash Generator Generate the SHA-1 hash of any text or file online. Instant 160-bit digest in hex, computed in your browser. SHA-2 Hash Generator Generate SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224 or SHA-512/256 hashes from text or files. SHA-224 Hash Generator Generate the SHA-224 hash of any text or file online. Instant 224-bit digest in hex, computed in your browser. SHA-256 Hash Generator Generate the SHA-256 hash of any text or file online. Instant 256-bit digest in hex, computed in your browser. SHA3-224 Hash Generator Generate the SHA3-224 hash of any text or file online. Instant 224-bit digest in hex, computed in your browser. SHA3-256 Hash Generator Generate the SHA3-256 hash of any text or file online. Instant 256-bit digest in hex, computed in your browser. SHA3-384 Hash Generator Generate the SHA3-384 hash of any text or file online. Instant 384-bit digest in hex, computed in your browser. SHA3-512 Hash Generator Generate the SHA3-512 hash of any text or file online. Instant 512-bit digest in hex, computed in your browser. SHA-384 Hash Generator Generate the SHA-384 hash of any text or file online. Instant 384-bit digest in hex, computed in your browser.