Runtime verified Test scripts included

Returns the MD5 digest (128 bit) of a string as hex. One-way and not safe for protecting secrets.

Syntax

{{md5 text [...options]}}

Returns string.

Parameters

Name Type Required Description
text string Yes The text to hash.
options any No, repeatable Named argument charset: UTF-8 (default) or UTF-16.

Example

Tested in a Marketing Cloud Next email on 2026-11-22:

  • {{md5 "abc"}} renders 900150983cd24fb0d6963f7d28e17f72, as documented.
  • {{md5 "abc" charset="UTF-16"}} renders ce1473cf80c6b3fda8e3dfc006adc315.
Show Next test script
<!-- Marketing Cloud Next test script for the md5 helper. Paste it into the HTML component of a
     Next email and open the preview. Each line prints the result Next gave when the call
     was rendered on its own (expect) next to the result of this run (got).
     Assembled from single-call test emails (dates on the page); it has not been
     run as one email. Calls that make Next fail are listed separately. -->
<p>c1 expect=[900150983cd24fb0d6963f7d28e17f72] got=[{{md5 "abc"}}]</p>
<p>c2 expect=[ce1473cf80c6b3fda8e3dfc006adc315] got=[{{md5 "abc" charset="UTF-16"}}]</p>

Marketing Cloud Next

Works as documented

Every tested call rendered the documented result. Tested 2026-11-22 by rendering in a Marketing Cloud Next email.

See also