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

# Length ViewHelper `<f:length>`

The LengthViewHelper returns the length of a given string.
Setting the character encoding is optional.

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

## Arguments of the `<f:length>` ViewHelper

-   **encoding**

    -   *Type:* string

    Character encoding

-   **value**

    -   *Type:* mixed

    An string
