capitalize
Capitalize the first character of a string while converting all subsequent characters to lowercase.
Syntax
{{ string | capitalize }}Example
{% assign brand = "austin SEO" %}{{ brand | capitalize }}Output
Austin seoThe capitalize filter standardizes string formatting by capitalizing the first character and forcing all remaining characters into lowercase. It is particularly useful for sanitizing irregular keyword data.
In programmatic SEO landing page generation, capitalize cleans user-provided category keywords or job titles that may have inconsistent casing in source spreadsheets. For example: {{ row.category | capitalize }} Services in {{ row.city }}. This produces polished, publication-ready headline copy that builds trust with visiting searchers.
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
