MD5

All functions > STRING > MD5

Returns the MD5 hash of a string as a 32-character hexadecimal string.

Signatures

Returns: 32-character lowercase hexadecimal MD5 hash

MD5(string: VARCHAR) → VARCHAR
sql
ParameterTypeRequiredDescription
stringVARCHARYesString to hash

Notes

  • Returns a 128-bit hash as a 32-character lowercase hex string
  • Deterministic: same input always produces the same hash
  • Not suitable for security-sensitive applications; use SHA256 instead
  • Returns NULL if the input is NULL

Examples

FeatureQL
SELECT
    f1 := MD5('ABC'),  -- Hash of uppercase string
    f2 := MD5('hello'),  -- Hash of lowercase string
    f3 := MD5('')  -- Hash of empty string
;
Result
f1 VARCHARf2 VARCHARf3 VARCHAR
902fbdd2b1df0c4f70b4a5d23525e9325d41402abc4b2a76b9719d911017c592d41d8cd98f00b204e9800998ecf8427e

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19