JavaScript MD5
MD5 turns any string into a fixed 32-character hexadecimal fingerprint. The same input always yields the same hash, but you cannot reverse a hash back to the input. Note: MD5 is a checksum, not a secure password hash.
Syntax
md5(str) Examples
| Input | Arguments | Output |
|---|---|---|
| "hello" | — | "5d41402abc4b2a76b9719d911017c592" |
| "" | — | "d41d8cd98f00b204e9800998ecf8427e" |
| ↳ Even an empty string has a hash. | ||
When to use it
- Generate a stable cache key or ETag from content.
- Detect whether a file or string changed (checksum).
Gotchas
- MD5 is cryptographically broken — never use it to store passwords. Use bcrypt/argon2 server-side for that.
Try it live
Type your input and see MD5 transform it instantly.
Want to go further? Chain MD5 with other functions in the visual Playground — pipe one output into the next and watch your data transform.