Runtime verified Differs from official docs Test scripts included

Syntax

Uppercase(sourceString)  →  string
1 argument — exactly

Parameters

Name Type Required Description
sourceString string | number | date | boolean Yes Value to convert

Example

%%=Uppercase("abc123!")=%%

Renders ABC123!.

Mixed case is raised throughout:

%%=Uppercase("HeLLo123!@#")=%%

Renders HELLO123!@#.

Return value

string — the value converted to upper case.

The result is arbitrary text, so there is no fixed set of special values to test for.

Behaviour

Only letters change. Digits and symbols pass through, as in Uppercase("abc123!") giving ABC123!.

An empty string gives an empty string.

Accented letters get their accented capital. Uppercase("café") gives CAFÉ and Uppercase("àéîõü") gives ÀÉÎÕÜ.

The German sharp s expands to two letters. Uppercase("Straße") gives STRASSE, and Length of the result is 7 where the input measured 6. Allow for the longer result when the output has a size limit.

The dotless i becomes a plain capital I. Uppercase("ı") and Uppercase("i") both give I.

Numbers are unchanged. Uppercase(12345) gives 12345.

Dates are turned into text. Uppercase(Now()) gave a value like 2026-11-23T00:21:32.

Booleans become their word in capitals. Uppercase(false) gives FALSE.

No argument or two arguments cannot be saved. Uppercase() and Uppercase("a", "b") are rejected at save with HTTP 400 “The AMPscript syntax isn’t valid”.

Show Next test script
<!-- Marketing Cloud Next test script for Uppercase. 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=[ABC123!] got=[%%=Uppercase("abc123!")=%%]</p>
<p>c2 expect=[HELLO123!@#] got=[%%=Uppercase("HeLLo123!@#")=%%]</p>
<p>c3 expect=[12345] got=[%%=Uppercase(12345)=%%]</p>
<p>c4 expect=[] got=[%%=Uppercase("")=%%]</p>
<p>c5 expect=[CAFÉ] got=[%%=Uppercase("café")=%%]</p>
<p>c6 expect=[ÀÉÎÕÜ] got=[%%=Uppercase("àéîõü")=%%]</p>
<p>c7 expect=[STRASSE] got=[%%=Uppercase("Straße")=%%]</p>
<p>c8 expect=[7] got=[%%=Length(Uppercase("Straße"))=%%]</p>
<p>c9 expect=[I] got=[%%=Uppercase("ı")=%%]</p>
<p>c10 expect=[I] got=[%%=Uppercase("i")=%%]</p>
<p>c11 expect=[2026-11-23T00:21:32] got=[%%=Uppercase(Now())=%%]</p>
<p>c12 expect=[FALSE] got=[%%=Uppercase(false)=%%]</p>

Show calls that fail in Next (one email each)
<!-- Run each call below in its own Next email: one of them in a combined email
     would stop the whole preview or block the save. -->

<!-- email 1: expect that the save is rejected (HTTP 400) -->
%%=Uppercase()=%%

<!-- email 2: expect that the save is rejected (HTTP 400) -->
%%=Uppercase("a", "b")=%%

Differs from official docs

  • ß expands to SS. The reference does not mention it; in Next Uppercase("Straße") gives STRASSE, one character longer. Card

Availability & differences

PlatformAvailable
Marketing Cloud EngagementYes
Marketing Cloud NextYes, from API 67.0

See also