MD5 hash for "1234" is "81dc9bdb52d04dc20036dbd8313ed055"

MD5 encoded string

81dc9bdb52d04dc20036dbd8313ed055

Your last 10 encodings

AlgorithmStringHash
md5123481dc9bdb52d04dc20036dbd8313ed055

String "1234" encoded to other algorithms

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

MD2 45337ab528ab456381fd0fe311633a6b
MD4 f375f401ddc698af533f16f8ac1e91c1
MD5 81dc9bdb52d04dc20036dbd8313ed055
SHA1 7110eda4d09e062aa5e4a390b0a572ac0d2c0220
SHA224 99fb2f48c6af4761f904fc85f95eb56190e5d40b1f44ec3a9c1fa319
SHA256 03ac674216f3e15c761ee1a5e255f067953623c8b388b4459e13f978d7c846f4
SHA384 504f008c8fcf8b2ed5dfcde752fc5464ab8ba064215d9c5b5fc486af3d9ab8c81b14785180d2ad7cee1ab792ad44798c
SHA512/224 90ce2868ea834f4a9e0008d504bfdcd144cf7de5913b97ecbae7c58c
SHA512/256 3bb20e367b1a988158e3dbbed06bf6415beea23f56bbb15dbf346505edc7e7df
SHA512 d404559f602eab6fd602ac7680dacbfaadd13630335e951f097af3900e9de176b6db28512f2e000b9d04fba5133e8b1c6e8df59db3a8ab9d60be4b97cc9e81db
SHA3-224 b0f3dc043a9c5c05f67651a8c9108b4c2b98e7246b2eea14cb204295
SHA3-256 1d6442ddcfd9db1ff81df77cbefcd5afcc8c7ca952ab3101ede17a84b866d3f3
SHA3-384 0bf2c5eed2dc859ca9707ae59a18b5097d580ce705808b80830c5cf5832405073e3fa3491ed7071a2362048edff48295
SHA3-512 d760688da522b4dc3350e6fb68961b0934f911c7d0ff337438cabf4608789ba94ce70b6601d7e08a279ef088716c4b1913b984513fea4c557d404d0598d4f2f1
RIPEMD128 5ba7e50b29036a55cbf15e2281480c21
RIPEMD160 cd9d379715cccc83fd8c8c2dc0730c6dd081bd35
RIPEMD256 89eef3eebdd971950d684bd63a6e9e1749d456ac1f3a6ec07195eb145c739bb2
RIPEMD320 66e546cf51187026124b6f25d64bcba03654a3a55e90c81bc10c4c771d5c704c53b6b6eda6362ce3
WHIRLPOOL 2f9959b230a44678dd2dc29f037ba1159f233aa9ab183ce3a0678eaae002e5aa6f27f47144a1a4365116d3db1b58ec47896623b92d85cb2f191705daf11858b8
TIGER128,3 d5c61794d4564a62b76553dd0e09f59c
TIGER160,3 d5c61794d4564a62b76553dd0e09f59cf1f9c8b5
TIGER192,3 d5c61794d4564a62b76553dd0e09f59cf1f9c8b5291e9b10
TIGER128,4 e5d2ce82fc07198272d9d5f5a3d50d11
TIGER160,4 e5d2ce82fc07198272d9d5f5a3d50d11173b542d
TIGER192,4 e5d2ce82fc07198272d9d5f5a3d50d11173b542d9c294a14
SNEFRU 1dfb64bff8a4503d2ae9e8e9b010dcceca214b1369bac203d1fd87d78c64a613
SNEFRU256 1dfb64bff8a4503d2ae9e8e9b010dcceca214b1369bac203d1fd87d78c64a613
GOST 8a19de2e756035a3ece48cd01260b89ec36a510d9e18066e64ffc4d379c6e457
GOST-CRYPTO e1ac644c80c39ff1faea692de561e1675aaced613e4723e22bb46e47418e089f
ADLER32 01f800cb
CRC32 553b6a59
CRC32B 9be3e0a3
CRC32C f63af4ee
FNV132 81ee2b55
FNV1A32 fdc422fd
FNV164 ced6b27fe7325df5
FNV1A64 1fabbdf10314a21d
JOAAT ad414afe
MURMUR3A 721c5dc3
MURMUR3C 4adf644d2eaa32ce2eaa32ce2eaa32ce
MURMUR3F 0897364d218fe7b4341e8bd92437fda5
XXH32 01543429
XXH64 d8316e61d84f6ba4
XXH3 87b1e526910fd7e1
XXH128 9a4dea864648af82823c8c03e6dd2202
HAVAL128,3 871d86005b30755f3637030792d4ffaa
HAVAL160,3 18bc3968c6c1c1a4f7e00af51d4c0e3836a1ab2e
HAVAL192,3 e00c73614f1346a0abd2844e1f56709ae80d6519916d65f3
HAVAL224,3 d3f18b8ecca63abe8961f5827f40fc4955b90918cc803501b19e6ee5
HAVAL256,3 25906bb8e064d6d400a699ee1537d764b4793eddb067a50a46e91abacbf57663
HAVAL128,4 9fdaa01c6c2daee084012cbe1f73fc00
HAVAL160,4 ecd1a3599b7c70c0befdc366397b6fe8a61271ba
HAVAL192,4 b579b76e1eab33fbe31e3bf65446ccacbafd464125f886b8
HAVAL224,4 1684f3dfacbe09bd75c4c5224d306c0fa331bb62435126a9c682d85c
HAVAL256,4 2862283cbff58bb0675fb2b4dbe792dcdff17139766509787e80ff3c95d46cb7
HAVAL128,5 515b09132f1843850f84311fb5016848
HAVAL160,5 aed3d72baf15c3773bcd609462bb3a97da2b68ee
HAVAL192,5 a5018676fc4c02490b6d1981223e5402a2d0eba3f592c9d5
HAVAL224,5 6ffc550acc5535a08bc37d3c6db41aa74d96a50c1d66b7a896d1f2bf
HAVAL256,5 19b8f0293c39e1810e48275ab5f6e9cb9963f4a9c31a86065193993959630584

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

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

<?php
    $str = '¡Hola!';
    $hash = hash('md5', $str, false);
    echo '<pre>';
    echo $str.PHP_EOL
         .' &rarr; '.$hash.PHP_EOL
    ;
    echo '</pre>';

How to calculate MD5 hash in PHP with md5 function

md5() function - the mot popular way to get md5 hash in PHP

<?php
    $str = '¡Hola!';
    $hash = md5($str);
    echo '<pre>';
    echo $str.PHP_EOL
         .' &rarr; '.$hash.PHP_EOL
    ;
    echo '</pre>';

How to calculate MD5 hash in JavaScript

The Javascript has not built-in function to calculate MD5 hash, so you need one of the external libraries. For example: emn178/js-md5

<script src="https://cdn.jsdelivr.net/npm/js-md5@0.7.3/src/md5.js"></script>
<script>
    var str = '¡Hola!';
    var hash = md5(str);
    console.log(str);
    console.log('-> ' + hash);
</script>

How to calculate MD5 hash in Java

To calculate MD5 hash in Java use "MessageDigest" class from "java.security" namespace

String str = "¡Hola!";
 java.security.MessageDigest md = java.security.MessageDigest.getInstance("MD5");
md.update(str.getBytes());
 byte byteData[] = md.digest();
 //convert the byte to hex format
StringBuffer sb = new StringBuffer();
for (int i = 0; i < byteData.length; i++) {
    sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));
}
 System.out.println(str + "\n-> " + sb.toString());

How to calculate MD5 hash in C#

The easiest way to get MD5 hash in C# is use "MD5" class from "System.Security.Cryptography" namespace

string str = @"¡Hola!";
using (System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create())
{
    byte[] inputBytes = new System.Text.UTF8Encoding().GetBytes(str);
    byte[] hashBytes = md5.ComputeHash(inputBytes);
     // Convert the byte array to hexadecimal string
    System.Text.StringBuilder sb = new System.Text.StringBuilder();
    for (int i = 0; i < hashBytes.Length; i++)
    {
        sb.Append(hashBytes[i].ToString("X2"));
    }
     Console.WriteLine(sb.ToString());
}

How to calculate MD5 hash in Go

To calculate MD5 hash in Go use "md5" package from "crypto" namespace

package main
 import (
    "crypto/md5"
    "fmt"
)
 func main() {
    data := []byte("¡Hola!")
    fmt.Printf("%x", md5.Sum(data))
}
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