number_format

Format numbers with localized thousand separators based on the site language configuration.

Syntax

{{ number | number_format }}

Example

{% assign price = 1250000 %}${{ price | number_format }}

Output

$1,250,000

The number_format filter formats numerical values with localized thousand separators based on the site language setting (site.lang). Under an English locale, inputs like 1250000 format as '1,250,000' with standard comma grouping.

On programmatic landing pages, number_format displays pricing tiers or population statistics professionally. For example: ${{ row.median_price | number_format }} in {{ row.city }}. This improves visual readability and commercial credibility across generated pages.

Try this syntax in the editor.