# Byte

*noun*

say it: **“BYTE”** **/baɪt/**

The unit a computer counts a file's size in; one plain letter of text usually takes one byte.

## What is a **byte**?

A **byte** is the unit a file's size is counted in: one plain letter of text usually takes one byte. Sizes grow by 1,024 at each step, so 1 KB is 1,024 bytes and 1 MB is 1,024 KB. PowerShell writes them as `1KB` and `1MB`, so you never count zeros.

```powershell
1MB                              # 1048576
(Get-Item sunset.jpg).Length     # the file's size in bytes
```

## In a sentence

- “A file's Length in PowerShell is a number of **bytes**, so 1MB stands for 1,048,576 of them.”
- “The note was 54 **bytes** long, about one byte for each letter and space in it.”

Level: Novice · [More Operating System terms at this level](https://www.ask-codey.com/glossary?category=operating-system&level=1)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/byte
