# FormatBytes(long)

> Formats a number into a file size in bytes string.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public static string FormatBytes(long byteCount)
```

### Parameters

**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): Byte count.

### Returns

| Type                                                           | Description       |
| -------------------------------------------------------------- | ----------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Formatted string. |

### Remarks

This function is used by the search asset provider to format the item description.
