upperΒΆ

The upper filter converts a value to uppercase:

{{ 'welcome'|upper }}

{# outputs 'WELCOME' #}

Note

Internally, Twig uses the PHP mb_strtoupper function.