---
title: Format Byte
description: Used to format bytes to a human-readable format
links:
storybook: components-format-byte--basic
ark: https://ark-ui.com/react/docs/utilities/format-byte
---
## Usage
```jsx
import { FormatByte } from "@chakra-ui/react"
```
```jsx
```
## Examples
### Sizes
The format functions works for any size of bytes.
### Format Bits
Use the `unit` prop to change the byte format to bits.
### Locale
Wrap the `FormatByte` component within the `LocaleProvider` to change the
locale.
### Unit Display
Use the `unitDisplay` prop to change the byte format to compact notation.
## Props