SHA1 hash for "baseball"

SHA1 encoded string

a2c901c8c6dea98958c219f6f2d038c44dc5d362

Your last 10 encodings

AlgorithmStringHash
sha1baseballa2c901c8c6dea98958c219f6f2d038c44dc5d362

String "baseball" encoded to other algorithms

Here you can view hashes for "baseball" string encoded with other popular algorithms

MD2 f37d139512f653a541b16274ccef40a3
MD4 21553449e9e6cba94823405db78dd449
MD5 276f8db0b86edaa7fc805516c852c889
SHA1 a2c901c8c6dea98958c219f6f2d038c44dc5d362
SHA224 1c4cb3f6418df66a5aea8ced3505838977c1841f978130990a97ee2f
SHA256 a01edad91c00abe7be5b72b5e36bf4ce3c6f26e8bce3340eba365642813ab8b6
SHA384 a8350eadc304e02aa4bf6dda8748efbceb67d2c1d621fb24c5ee7ba43e1b3ff013673ddda9e5d3d3110459a581242050
SHA512/224 4eb51b94b6b88e4063b62cebf74609313121757e22e5677d931ef208
SHA512/256 b65b4da974f58f3994ad1c8f5f9a006feb3bf101021cfac1260ef140f7466d38
SHA512 61c72f7d44c3b8d3ecb9bf84b0013f34f10874bfb01633b72f0b48bb4c0feb11d982bd6aaffe6bfa75043baa2e8036f8ff119065f231328f3cb29f7fb9730d9e
SHA3-224 5271d377c63b672186a12421575731bcee561bbfb87e48af0e22c46d
SHA3-256 32f1339415b406329604745f9cf9f516a139cf1f88ba29356b41379fd9bdeeae
SHA3-384 6cc24e0f5a763948b7924199160471ac7a131f177de172e3827aba0b119db985d7775f7eb5196818a1a33df985a8f016
SHA3-512 f9cd18083c0a6b2c199fa4e00a29fba704d37c20011dcd6ff9b24ddde81c66f1d22c847295cfbebb8c2ad9efdf4c26e1eb184da43b52961ed7b6d8e073ff2139
RIPEMD128 2a646373dcca7d5e06f40a32c32f26d4
RIPEMD160 e67ad9cfb59a8a43ef38bc7888603b16907e17d0
RIPEMD256 9da1d089576cd52742aded01afd162fa1f7068e6c381ca14fad91c3d75ff9e07
RIPEMD320 c5a70b4154cf185efca2d4ed5ccc58c8cc0c9b26cb0684e904700d3aad551c823069a02df9d1039b
WHIRLPOOL f772a991c955b9e88829c8015629487da7f0fc591e04514bb8d62dbb3527791509c6e373abd63b483570446b13a773feedbe66d3b58bcb909a617b4f21267357
TIGER128,3 2d1587a8eebc9121ac83187fb6bc0542
TIGER160,3 2d1587a8eebc9121ac83187fb6bc0542f33ad3db
TIGER192,3 2d1587a8eebc9121ac83187fb6bc0542f33ad3db461346c8
TIGER128,4 3a1af7c4743f25901aafce7aed577995
TIGER160,4 3a1af7c4743f25901aafce7aed577995b6ffd743
TIGER192,4 3a1af7c4743f25901aafce7aed577995b6ffd74372ddc652
SNEFRU abd471e91fcd6b1834445a5bd09109610b36e3089a7a7f157a3b0dedb8fab8ad
SNEFRU256 abd471e91fcd6b1834445a5bd09109610b36e3089a7a7f157a3b0dedb8fab8ad
GOST 6f036ae9805590d7b8ca940152744868fb5c665bfe7481aa9c101577d4278e60
GOST-CRYPTO e3906965c1ad1e7993b7989e37814e5e8af2e863db5ab7f497ee9e36a97d2f0d
ADLER32 0e590337
CRC32 154f5d60
CRC32B 533f2feb
CRC32C 9251ac89
FNV132 16c8a4a1
FNV1A32 593c2c7d
FNV164 73906d6126611921
FNV1A64 4d6d5ed34610e6bd
JOAAT 4ee52d63
MURMUR3A abb9946d
MURMUR3C c773956e7d51decf3cb378293cb37829
MURMUR3F 2039a1bd2a9a6271b9b4c9b45b1021f2
XXH32 1bd31524
XXH64 891f6942fa87b0a2
XXH3 50ae27111761f1e8
XXH128 373fcf90eae1b9b902f45d4263bee7ac
HAVAL128,3 e21e15b460f26696ffbf4a41c0ddde4f
HAVAL160,3 12de6cf23911a77b9a7722ea6aa3cbe49a45f4ae
HAVAL192,3 2c649c4a3bf8374f5b0524ad622a326534d4903f61d45f24
HAVAL224,3 2006d3a766c09114ca29dd1089c14d1d1d3eb6c02c96d6d50b3c739d
HAVAL256,3 6c842dc53ff3db173805e14957ebfc7d276b7d35e3f4c28e4a181be1271c711b
HAVAL128,4 4a2f0856fed7e4b032d478a6e6a14442
HAVAL160,4 ff7228930e511f06cc4a22a083aeb3b5cd5b56ab
HAVAL192,4 3bb1c83d1716da751d3ddb23455dc6e0dbdafc3ebf838473
HAVAL224,4 33eaffb7130e0f5c25237a89c8ce04c8fe89cd53682bdc73f6497e91
HAVAL256,4 52e4fb1fd6418c5b25ecce8f38ad7c3b48a1451c1a9ec48dd81d6ff127212a1a
HAVAL128,5 5fb12d12627f9992415a8cadb41be91c
HAVAL160,5 ffe784d4f006446cc927f9c9bd6121530ca8db01
HAVAL192,5 9fdadd1a1b544fcdcee800b162d88cee5d9b592f5d90fc62
HAVAL224,5 feba429ac64923ec48dd0bb9d97e03367630bf80cf85629234c5685a
HAVAL256,5 60633d4479ec89a924ae651c06cd17a65fcd5750312ff6469ee6aafba2d54035

Usage FAQ

Usage from Address Bar

You can use direct access to this page from your browser address bar. Type string that you need to encode with algorithm according to next schema: https://md5calc.com/hash/<ALGORITHM>/<PHRASE> For example to visit page that contains hash of "hello world" you can just visit url: https://md5calc.com/hash/md5/hello+world The another cool thing is that you can specify "json" or "plain" mode into URL and you will get only HASH in response. Schema of this future: https://md5calc.com/hash/<ALGORITHM>.<OUTPUT:plain|json>/<PHRASE> Example: https://md5calc.com/hash/md5.json/hello+world Will output only: "5eb63bbbe01eeed093cb22bb8f5acdc3"

If you have string that contains complicated urlencoded characters you can send it directly via params to avoid processing of our url parser. Use:
str - for string to encode
algo - for algorithm
output - for output type (empty, "json" or "plain")
https://md5calc.com/hash?algo=<ALGORITHM>&str=<PHRASE>&output=<OUTPUT:plain|json> https://md5calc.com/hash?algo=md5&str=hello%0Aworld https://md5calc.com/hash/md5?str=hello%0Aworld

Usage from Javascript

We have removed CORS restriction so you can use direct access to hash calculator in your javascript applications via AJAX.

Example:

var toEncode = 'hello world';
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
console.log('JSON of "'+toEncode+'" is "'+JSON.parse(xhr.response)+'"');
};
};
xhr.open('GET', 'https://md5calc.com/hash/md5.json/'+encodeURIComponent(toEncode), true);
xhr.send();
Will output: JSON of "hello world" is "5eb63bbbe01eeed093cb22bb8f5acdc3"

Usage from PHP

You can use direct access to hash in your applications.

PHP Example: <?php
$str = 'hello world';
$url ='https://md5calc.com/hash/md5.plain/'.urlencode($str);
$md5hash = file_get_contents($url);
echo 'Hash of "'.$str.'" is "'.$md5hash.'"';
Will output: Hash of "hello world" is "5eb63bbbe01eeed093cb22bb8f5acdc3"

Chains of algorithms

In some cases you can need encode string with two or more algorithms. For these cases we have introduced chains of algorithms. For example if you need to encode string according to this schema md5(sha512(sha1('hello world'))) you can do this by connecting algorithms with a double dash: https://md5calc.com/hash/md5--sha512--sha1/hello+world If you will do this in your address bar you can also use semicolon instead of double dash. https://md5calc.com/hash/md5;sha512;sha1/hello+world Pay attention that semicolon should be encoded in url, so if you use it not in your browser, you should use '%3B' instead https://md5calc.com/hash/md5%3Bsha512%3Bsha1/hello+world Such approach can be also used with "plain" and "json" mode https://md5calc.com/hash/md5--sha512--sha1.plain/hello+world https://md5calc.com/hash/md5;sha512;sha1.json/hello+world

You can also use special chain item "b64d" or "base64decode" to make base64 decode. It can help to hash any of not printable characters. Example: https://md5calc.com/hash/md5.plain/hello+world https://md5calc.com/hash/b64d--md5.plain/aGVsbG8gd29ybGQ= will be the same: 5eb63bbbe01eeed093cb22bb8f5acdc3

Carriage Return and Line Feed characters

At present time our text editor doesn't have functionality that can take into account which of those characters you want to keep in string. This problem come from browsers which normalize all of the line endings to "CRLF" ("\r\n") format according to "HTML specification". It means that if you paste from buffer string
"hello\nword" and press "Encode", your browser will convert it to "hello\r\nword" and only after this your browser send FORM to us. As a result we will show you hash of "hello\r\nword" but not "hello\nword"

You can avoid this with encode string to "base64" on your side and use "Chains of algorithms" that described above.

Example 1: Hash from string with only Line Feed (LF) character Text: hello\nworld
Text encoded to BASE64: aGVsbG8Kd29ybGQ=
URL: https://md5calc.com/hash/b64d--md5.plain/aGVsbG8Kd29ybGQ=
RESULT: 9195d0beb2a889e1be05ed6bb1954837

Example 2: Hash from string with Carriage Return (CR) and Line Feed (LF) character. This result you will have if you use editor with CR, LF or CRLF symbols.
Text: hello\r\nworld
Text encoded to BASE64: aGVsbG8NCndvcmxk
URL: https://md5calc.com/hash/b64d--md5.plain/aGVsbG8NCndvcmxk
RESULT: 6a4316b18e6162cf9fcfa435c8eb74c1

How to calculate sha1 hash in PHP with hash function

Since version 5.1.2 PHP contains function hash() that you can use to get sha1 hash from strings.

<?php
    $str = '¡Hola!';
    $hash = hash('sha1', $str, false);
    echo '<pre>';
    echo $str.PHP_EOL
         .' &rarr; '.$hash.PHP_EOL
    ;
    echo '</pre>';
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy