---
title: "Format.urlencode ViewHelper <f:format.urlencode>"
manual: "Fluid ViewHelper Reference"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3fluid-fluid-format-urlencode@main"
source: "Global/Format/Urlencode.rst"
rendered: "2026-09-26T06:08:28+00:00"
---

# Format.urlencode ViewHelper `<f:format.urlencode>` {#typo3fluid-fluid-format-urlencode}

Encodes the given string according to [http://www.faqs.org/rfcs/rfc3986.html](http://www.faqs.org/rfcs/rfc3986.html)
Applying PHPs `rawurlencode()` function.
See [https://www.php.net/manual/function.rawurlencode.php](https://www.php.net/manual/function.rawurlencode.php).

> [!NOTE]
> The output is not escaped. You may have to ensure proper escaping on your own.

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

## Arguments of the `<f:format.urlencode>` ViewHelper {#typo3fluid-fluid-format-urlencode-arguments}

-   **value**

    -   *Type:* string

    string to format
