Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters ยท mod_base
  • Reference
  • Frontend developer
  • Template filter
  • Format
  • Number

filesizeformat

Module

mod_base

This filter formats a numeric value as KB, MB etc. This filter can be used to display a number of bytes in a human readable format of kilo- or megabytes.

For example:

{{ 532671|filesizeformat }}

Will output 520.2 KB.

Edit on GitHub

Related documentation

Filters

format_number

Show an integer or float.

Filters

format_integer

Show an integer value.

Filters

format_price

Show a price with decimals.

Filters

filter_payment_is_valid

Test if an amount and currency can be used for a payment request.

Filters

filter_payment_currency_symbol

Show a payment currency using its preferred symbol or short form.

Filters

filter_exchange_rates

Look up a rate or convert a numeric amount with mod_exchange_rates .

Filters

humanize_identifier

Convert an underscore-separated identifier to a readable label.

Filters

filter_geomap_distance

Calculate the great-circle distance between two locations in kilometers.

Filters

media_exif_value

Formats EXIF values for display in templates.

GitHub © 2026 Zotonic