SHA256 hash

SHA256 encoded string

5c32730f98ba5708ed49694c0e0c49147035c457164c08ebbcf19f8637282dce

Your last 10 encodings

AlgorithmStringHash
sha256Simple-way-to-get-sha256-hash5c32730f98ba5708ed49694c0e0c49147035c457164c08ebbcf19f8637282dce

String "Simple-way-to-get-sha256-hash" encoded to other algorithms

Here you can view hashes for "Simple-way-to-get-sha256-hash" string encoded with other popular algorithms

MD2 decaab199366d24af6ec8464c3ab88f6
MD4 1e655e7bf867183ca2153f9de480ff9d
MD5 2846db7694036d000b91e49d763c134c
SHA1 e697264727c6cb9856133f2f4f273da39addc0a2
SHA224 d78210eef1510e10b357989504169c4130f7a39470242ffa46922714
SHA256 5c32730f98ba5708ed49694c0e0c49147035c457164c08ebbcf19f8637282dce
SHA384 cd9f1633d3f8f5a09cbd8c5a190bcb206b8404ad5349f83302646f9cafccf49d8b42700b5425a022d1a391ce5580970c
SHA512/224 87f23c38bdacaae0a451909fd3e3b4d884b02fbcac4d1eb008475834
SHA512/256 82909d8f1b78b0ce917fe56f5b669dc93db87057facb54e66b44b0318a71f18d
SHA512 ea7978c0dbc56dc1c88a145b8faf7b0cbded21b2476424c8c11b37d2692a55ddc1b96d192fc6dee63767d391a61dac3ec2f26b7ba9101c74228e7e643010a82a
SHA3-224 cf5164cc41b4078e8824b26ff69c582cb1d45bde91cffb212961d397
SHA3-256 f10261e950093c9379037d9c3d0e18f4e812b6cc372d793e9ee7619bb953e253
SHA3-384 b1044d0d24131b2104785724be262899a28c8de5fd88e936dd242980bdbaea333aefcecb2577248f2e9d0e001e1821b6
SHA3-512 4c230426be911f4c5e4fa312b95da9020e57b9d19322f676126b5a593534c4763bcf2e0b429a53d36bf831dcebb41bfbf11cbc2c9026ccd9f8734424cecc5c89
RIPEMD128 0e487b3bf047c38e92251072e0dadd79
RIPEMD160 39c20a5246aed782aa65d5a4b745642ae1b5d94a
RIPEMD256 7a02f35dfab16f8cb1ad8aca30b1dc2b42292c366f05ff556730e40117225f81
RIPEMD320 6c318bffd16e37e9ee1dd31840515217aec59c228ecefec8705a7919142fa3c70459ee312923ebb8
WHIRLPOOL 95cf56d22109ea3f006f9a4f613ff6839f61895403fa65608e7fc826fbd763b221e1998a03ba9ca500ae9aa87a379b1b2b24fd216db9ffa984846584dcb26192
TIGER128,3 1a8c4c1ec474cc693649de54bb7feff8
TIGER160,3 1a8c4c1ec474cc693649de54bb7feff837e3e721
TIGER192,3 1a8c4c1ec474cc693649de54bb7feff837e3e721e6655d28
TIGER128,4 0e0abcc7fdabf77130deb65e3da16822
TIGER160,4 0e0abcc7fdabf77130deb65e3da168227280bbcb
TIGER192,4 0e0abcc7fdabf77130deb65e3da168227280bbcb7291017c
SNEFRU d0487542d6fd71eb978e172697718e99086662846f31e82baee19b3fcdbe5a3c
SNEFRU256 d0487542d6fd71eb978e172697718e99086662846f31e82baee19b3fcdbe5a3c
GOST 9f7a545bdcf98ab12a0cd422381088221778abdbd1b8d224d18ed8de315afa87
GOST-CRYPTO 94efd10946afcfbc2faa0fdb9e755015d34c03635c1e9106d2d7dc5ccd813c23
ADLER32 9e710a3d
CRC32 cd91b099
CRC32B 960042e9
CRC32C a8a7a441
FNV132 ad54d0cf
FNV1A32 d9717037
FNV164 45651181a89d408f
FNV1A64 f151c854993e8bf7
JOAAT 4f1c77b2
MURMUR3A 3ce061aa
MURMUR3C 509adc818d2400c10f91a01aee6f23e2
MURMUR3F d2779d2ff39f3f50a14e3f1ba1a8d450
XXH32 1ed4df0e
XXH64 254dc9b77f952978
XXH3 0b0587900a3c360b
XXH128 ce75508a11691f4814fbc17a64560109
HAVAL128,3 b0fd54e2de38a74c885cdb4f8daec661
HAVAL160,3 3915093437b60c04b8b38c82687468eee4ce9658
HAVAL192,3 fd2e557e94e6a6f4fce25d492ea0f462139822305d440daf
HAVAL224,3 16bacc030af234185f0387399cb2e5b12ea68cc89e9101a53ceeb17a
HAVAL256,3 0a225d3ad64f2b2824c0ad6aee139be764252d7f7948fb0194ce5d222e121fce
HAVAL128,4 18d4ab28e1e81cf058da6e23db4c6a5e
HAVAL160,4 478a7a524b4052225aa885014178cdc58d8e9ec7
HAVAL192,4 199c570ca5b283623621847e8497347e8606b3709795ab3d
HAVAL224,4 007732cb1f44582353b4fdec69296e394cbf072ff13658e4e0c4316d
HAVAL256,4 d4a4ad216a09a9b451a0fd2f3c6e0aaa9df7a70c8b3b5076b7002603f8984b95
HAVAL128,5 efbdf76e463e84c1ef13cb486990516d
HAVAL160,5 9d3d6d885873f00f532d7c5f26c8fbba383651e9
HAVAL192,5 ea2d5ad75de4b6df57f8ce55e7bde46dcdf935f14517e383
HAVAL224,5 0d4554a923c53678feac5635e4079d761ca6937f636e314ceadd30c8
HAVAL256,5 968f8d0a7206b9108b4019bc0c4a9c3a285b56e66113bed00d2f3aedda2c29d8

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 sha256 hash in PHP with hash function

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

<?php
    $str = '¡Hola!';
    $hash = hash('sha256', $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