SHA256 hash for "123456"

SHA256 encoded string

8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92

Your last 10 encodings

AlgorithmStringHash
sha2561234568d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92

String "123456" encoded to other algorithms

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

MD2 d4541250b586296fcce5dea4463ae17f
MD4 585028aa0f794af812ee3be8804eb14a
MD5 e10adc3949ba59abbe56e057f20f883e
SHA1 7c4a8d09ca3762af61e59520943dc26494f8941b
SHA224 f8cdb04495ded47615258f9dc6a3f4707fd2405434fefc3cbf4ef4e6
SHA256 8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92
SHA384 0a989ebc4a77b56a6e2bb7b19d995d185ce44090c13e2984b7ecc6d446d4b61ea9991b76a4c2f04b1b4d244841449454
SHA512/224 007ca663c61310fbee4c1680a5bbe70071825079b23f092713383296
SHA512/256 184b5379d5b5a7ab42d3de1d0ca1fedc1f0ffb14a7673ebd026a6369745deb72
SHA512 ba3253876aed6bc22d4a6ff53d8406c6ad864195ed144ab5c87621b6c233b548baeae6956df346ec8c17f5ea10f35ee3cbc514797ed7ddd3145464e2a0bab413
SHA3-224 6be790258b73da9441099c4cb6aeec1f0c883152dd74e7581b70a648
SHA3-256 d7190eb194ff9494625514b6d178c87f99c5973e28c398969d2233f2960a573e
SHA3-384 1fb0da774034ba308fbe02f3e90dc004191df7aec3758b6be8451d09f1ff7ec18765f96e71faff637925c6be1d65f1cd
SHA3-512 64d09d9930c8ecf79e513167a588cb75439b762ce8f9b22ea59765f32aa74ca19d2f1e97dc922a3d4954594a05062917fb24d1f8e72f2ed02a58ed7534f94d27
RIPEMD128 d6d56cab46e0f3af2c756289f2b447e0
RIPEMD160 d8913df37b24c97f28f840114d05bd110dbb2e44
RIPEMD256 77093b1266befed58d512e67b3a8a15398c3ce5c1333d66a190becc9baa329e9
RIPEMD320 a2ee4b6b9e3144c7db61b1ffc748bf2c728b65819e3f69a021f515acb044995b90f03d60974b6b4a
WHIRLPOOL fd9d94340dbd72c11b37ebb0d2a19b4d05e00fd78e4e2ce8923b9ea3a54e900df181cfb112a8a73228d1f3551680e2ad9701a4fcfb248fa7fa77b95180628bb2
TIGER128,3 5b2715f7cb7488ce2deb8544f0aa91b6
TIGER160,3 5b2715f7cb7488ce2deb8544f0aa91b6f0eec76f
TIGER192,3 5b2715f7cb7488ce2deb8544f0aa91b6f0eec76fb3b74265
TIGER128,4 effe440b596c7d1766d435a2fd16641e
TIGER160,4 effe440b596c7d1766d435a2fd16641e27d32af5
TIGER192,4 effe440b596c7d1766d435a2fd16641e27d32af54ec875c2
SNEFRU 3321dcaf8911d3842e14a7a415be2fb1a337f4306a4fb8290fd7fe33be269df7
SNEFRU256 3321dcaf8911d3842e14a7a415be2fb1a337f4306a4fb8290fd7fe33be269df7
GOST 84cdecc9c273927ff6d9cca1ae75945990a2cb1f81e5daab52a987f6d788c372
GOST-CRYPTO 7db20e3a7d652bde0b1a1b7486076a2e11f795e99bf7f5fe700fb83f15b19ef2
ADLER32 042e0136
CRC32 70930f27
CRC32B 0972d361
CRC32C 41357186
FNV132 eb008bb8
FNV1A32 9995b6aa
FNV164 10f897e26c4b9478
FNV1A64 f6e3ed7e0e67290a
JOAAT eef833c1
MURMUR3A bf60eab8
MURMUR3C 7d06f9b969eb7ebf8832efed8832efed
MURMUR3F e417cf050bbbd0d651a48091002531fe
XXH32 b7014066
XXH64 2b2dc38aaa53c322
XXH3 507f6d6059ff79de
XXH128 4c2b6eecc66547d595102682557afd52
HAVAL128,3 1d8071d4a59f25a2a92a9a4844ba1e05
HAVAL160,3 83e612afb8ed267198b696759a49561375f70c81
HAVAL192,3 d2cfda5179fd9b6037ba35f261c576b2300717151a8db6a5
HAVAL224,3 d59e77b4c4d7aa6e02708683381c5631ee79b9e50ab9eaeb4dc38b9a
HAVAL256,3 0e3b78d8380844b0f697bb912da7f4d210382c6714194fd16039ef2acd924dcf
HAVAL128,4 2019090003211f11c03adb877bf3ae20
HAVAL160,4 3da690924ffb8d3f5bff8b608279f3c419bdb9c9
HAVAL192,4 7e1e573209c8d7f39919bea0d1466df325f3dbdd1fd3057a
HAVAL224,4 64d007c6e75ee71244bf33a876c8f380c17e64b18d3d9be67000b277
HAVAL256,4 84095060071ad0f4f41fa629653511074720aaa94c4f0d873e317d58002f8020
HAVAL128,5 60271b45e6d4b8eea7d9f474e69c848b
HAVAL160,5 ee85271e7bb4b7f2ec4c5418b47804eb1be9e91f
HAVAL192,5 9e8acd170a8fe1b929c0c652397b6b494abf1cd095371ad7
HAVAL224,5 dbcdd0348d0b23a89fe3e190abd8b279a5d8d4fa4e62d1e02ad0a6ff
HAVAL256,5 2f014311e0926fa8b3d6e6de2051bf69332123baadfe522b62f4645655859e7a

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