capitalize - Liquid Filter Reference
On this page
Description
Makes the first character of a string capitalized and converts the remaining characters to lowercase.
| Property | Value |
|---|---|
| Return Type | string |
| Category | text |
Examples
```liquid
{{ “title” | capitalize }} ```
Output: Title
Only the first character of a string is capitalized, so later words are not capitalized
```liquid
{{ “MY GREAT TITLE” | capitalize }} ```
Output: My great title
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.