---
title: bytes
categories: |
bytes
version: 0.104.0
bytes: |
Various commands for working with byte data.
usage: |
Various commands for working with byte data.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `bytes` for [bytes](/commands/categories/bytes.md)
<div class='command-title'>Various commands for working with byte data.</div>
## Signature
```> bytes {flags} ```
## Input/output types:
| input | output |
| ------- | ------ |
| nothing | string |
## Notes
You must use one of the following subcommands. Using this command as-is will only produce this help message.
## Subcommands:
| name | description | type |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------ | -------- |
| [`bytes add`](/commands/docs/bytes_add.md) | Add specified bytes to the input. | built-in |
| [`bytes at`](/commands/docs/bytes_at.md) | Get bytes defined by a range. | built-in |
| [`bytes build`](/commands/docs/bytes_build.md) | Create bytes from the arguments. | built-in |
| [`bytes collect`](/commands/docs/bytes_collect.md) | Concatenate multiple binary into a single binary, with an optional separator between each. | built-in |
| [`bytes ends-with`](/commands/docs/bytes_ends-with.md) | Check if bytes ends with a pattern. | built-in |
| [`bytes index-of`](/commands/docs/bytes_index-of.md) | Returns start index of first occurrence of pattern in bytes, or -1 if no match. | built-in |
| [`bytes length`](/commands/docs/bytes_length.md) | Output the length of any bytes in the pipeline. | built-in |
| [`bytes remove`](/commands/docs/bytes_remove.md) | Remove bytes. | built-in |
| [`bytes replace`](/commands/docs/bytes_replace.md) | Find and replace binary. | built-in |
| [`bytes reverse`](/commands/docs/bytes_reverse.md) | Reverse the bytes in the pipeline. | built-in |
| [`bytes split`](/commands/docs/bytes_split.md) | Split input into multiple items using a separator. | built-in |
| [`bytes starts-with`](/commands/docs/bytes_starts-with.md) | Check if bytes starts with a pattern. | built-in |