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

media_exif_value

Formats EXIF values for display in templates.

Filters

floor

Round down a floating point value.

Filters

sum

Sum a list of numbers.

Filters

format_dispatch_path_element

Format dispatch path element so variables will be more visible.

Filters

format_dispatch_controller_option

Format dispatch controller options.

Filters

upper

Translates the value to upper case.

GitHub © 2026 Zotonic