# Raw URL Encode

URL-encode a variable according to [RFC 3986][rfc-3986].
```yaml
example: please and thank you/Mommy
```

::tabs

::tab antlers
```antlers
http://example.com/{{ example | rawurlencode }}
```
::tab blade
```blade
https://example.com/{{ Statamic::modify($example)->rawurlencode() }}
```
::

```html
http://example.com/please%20and%20thank%20you%2FMommy
```

If you don't want forward slashes (`/`) to be encoded, use the [rawurlencode_except_slashes](/modifiers/rawurlencode_except_slashes.md) modifier instead.

[rfc-3986]: http://php.net/manual/en/function.rawurlencode.php
