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-city

The 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.

Try this syntax in the editor.