> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_convert_bytes.md).

# nats\_convert\_bytes

*Article Topics:* [*Smarty*](/getting-started/common-topics/smarty.md)*,* [*Customization*](/getting-started/common-topics/customization.md)

## Parameters

(*Required parameters in **bold**)*

| Parameter | Description     | Possible Values                                                 | Example            |
| --------- | --------------- | --------------------------------------------------------------- | ------------------ |
| bytes     | The byte count. | Any positive number or the number zero. (Default is bytes="0".) | bytes="1234567890" |

## Output

The number of bytes in one of the following formats: bytes, kb, MB, GB, or TB.

## Notes

*nats\_convert\_bytes* automatically chooses the most convenient size.

## See Also

* Wikipedia's list of [binary prefixes](http://en.wikipedia.org/wiki/Binary_prefix#Traditional_binary_prefixes).
