---
title: format filesize
categories: |
strings
version: 0.104.0
strings: |
Converts a column of filesizes to some specified format.
usage: |
Converts a column of filesizes to some specified format.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `format filesize` for [strings](/commands/categories/strings.md)
<div class='command-title'>Converts a column of filesizes to some specified format.</div>
## Signature
```> format filesize {flags} (format value) ...rest```
## Parameters
- `format value`: The format into which convert the file sizes.
- `...rest`: For a data structure input, format filesizes at the given cell paths.
## Input/output types:
| input | output |
| -------- | ------ |
| filesize | string |
| record | record |
| table | table |
## Examples
Convert the size column to KB
```nu
> ls | format filesize KB size
```
Convert the apparent column to B
```nu
> du | format filesize B apparent
```
Convert the size data to MB
```nu
> 4GB | format filesize MB
4000 MB
```