---
title: "Format.case ViewHelper <f:format.case>"
manual: "Fluid ViewHelper Reference"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3fluid-fluid-format-case@13.4"
source: "Global/Format/Case.rst"
modified: "2026-09-17T09:07:45+00:00"
---

# Format.case ViewHelper `<f:format.case>`

Modifies the case of an input string to upper- or lowercase or capitalization.
The default transformation will be uppercase as in [mb_convert_case](https://www.php.net/manual/function.mb-convert-case.php).

Possible modes are:

-   **`lower`**

    Transforms the input string to lowercase
    Example: "Hello World" -> "hello world"

-   **`upper`**

    Transforms the input string to uppercase
    Example: "Hello World" -> "HELLO WORLD"

-   **`capital`**

    Transforms the first character of the input string to uppercase
    Example: "hello world" -> "Hello world"

-   **`uncapital`**

    Transforms the input string to its first letter lower-cased
    Example: "Hello World" -> "hello World"

-   **`capitalWords`**

    Transforms the input string to capitalize each word
    Example: "hello world" -> "Hello World"

Note that the behavior will be the same as in the appropriate PHP function [mb_convert_case](https://www.php.net/manual/function.mb-convert-case.php);
especially regarding locale and multibyte behavior.

Go to the source code of this ViewHelper: [Format\\CaseViewHelper.php (GitHub)](https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/Format/CaseViewHelper.php).

## Arguments of the `<f:format.case>` ViewHelper

-   **mode**

    -   *Type:* string
    -   *Default:* 'upper'

    The case to apply, must be one of this' CASE\_\* constants. Defaults to uppercase application.

-   **value**

    -   *Type:* string

    The input value. If not given, the evaluated child nodes will be used.
