---
title: "FileSizePipe"
generated: true
---
<GenerationInfo sourceFile="packages/admin-ui/src/lib/core/src/shared/pipes/file-size.pipe.ts" sourceLine="14" packageName="@vendure/admin-ui" />

Formats a number into a human-readable file size string.

*Example*

```ts
{{ fileSizeInBytes | filesize }}
```

```ts title="Signature"
class FileSizePipe implements PipeTransform {
    transform(value: number, useSiUnits:  = true) => any;
}
```
* Implements: PipeTransform



<div className="members-wrapper">

### transform

<MemberInfo kind="method" type={`(value: number, useSiUnits:  = true) => any`}   />




</div>
