downcase
Convert all uppercase letters in a string to lowercase for uniform string comparison and styling.
Syntax
{{ string | downcase }}Example
{% assign slug = "NEW-YORK-CITY" %}{{ slug | downcase }}Output
new-york-cityThe downcase filter transforms all uppercase alphabetical characters in a string into lowercase letters, leaving numbers and punctuation unaffected. It is vital for normalization and case-insensitive comparison.
On programmatic landing pages, downcase ensures conditional logic evaluates consistently regardless of spreadsheet data entry variations. For example: {% if row.status | downcase == 'active' %}Available Today{% endif %}. It also helps format clean, lowercase URL query parameters and anchor links across multi-location directories.
Filters
- abs
- append
- at_least
- at_most
- capitalize
- ceil
- compact
- concat
- date
- default
- divided_by
- downcase
- escape
- escape_once
- first
- floor
- join
- last
- lstrip
- map
- minus
- modulo
- newline_to_br
- plus
- prepend
- remove
- remove_first
- replace
- replace_first
- reverse
- round
- rstrip
- size
- slice
- sort
- sort_natural
- split
- strip
- strip_html
- strip_newlines
- times
- truncate
- truncatewords
- uniq
- upcase
- url_decode
- url_encode
- where
- raw
- slugify
- number_format
