size - Liquid Filter Reference
On this page
Description
Returns the number of characters in a string or the number of items in an list.
| Property | Value |
|---|---|
| Return Type | number |
| Category | lists |
Examples
```liquid
{{ “Mary had a little lamb.” | size }} ```
Output: 23
```liquid
{{ an_list | size }} ```
Output: 4
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.