Filesize Formatter Demos

Download Back To CSSScript.Com

Format byte values as readable kB, MB, KiB, and MiB labels with filesize.js. Supports SI, IEC, JEDEC, locale formatting, and npm setup.

Input

Accepts numbers, numeric strings, scientific notation, negative values, and BigInt-sized integers.

Options

Standards, Bits, and Formats

Case Options Result

Reusable formatters

Preconfigured functions created with partial().

Error handling

Invalid values and unsupported rounding methods return typed errors.