# Byte to human readable

## Description

This operation converts a size in bytes into a more human-friendly format, such as kilobytes (KB), megabytes (MB), gigabytes (GB), and so on. This operation is especially useful for interpreting file sizes or data storage values.

***

## Data types

These are the input/output expected data types for this operation:

### Input data

![](https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FExtApHuiMxiHgaNWDLb2%2Fimage.png?alt=media\&token=5f4e1372-a2db-4d7e-b81b-976507cac896) - Sizes in bytes to be transformed. They must be strings that represent integer numbers.

### Output data

![](https://965373739-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkxZeV4nlXcIAjMGZxzLI%2Fuploads%2FyeZGvHDhYqskHKW5bdnp%2Fimage.png?alt=media\&token=d72665aa-3d46-4572-a463-a62344ee7f88) - Resulting human-readable strings.

***

## Example

Suppose you want to convert a series of events that represent **sizes in bytes** into **human-readable strings**:

1. In your Pipeline, open the required [Action](https://docs.onum.com/the-workspace/pipelines/actions) configuration and select the input **Field**.
2. In the **Operation** field, choose **Byte to Human Readable**.
3. Give your **Output field** a name and click **Save**. The byte sizes in your input field will be transformed into human-readable strings. For example:

```
Input data - "134367"

Output data - "131.22 KiB"
```

{% hint style="info" %}
You can try out operations with specific values using the **Input** field above the operation. You can enter the value in the example above and check the result in the **Output** field.
{% endhint %}
