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 seo

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

Try this syntax in the editor.