Convert bytes to kilobytes

Type a number of bytes and read the result in kilobytes straight away. A kilobyte is 1,024 bytes in the binary system, so the converter divides your value by 1,024. Use Swap order to convert kilobytes to bytes instead.

B
KB
Unit standard

Binary (1024): what Windows and RAM use. Decimal (1000): what drive makers, macOS and search engines use.

to
ADVERTISEMENT

Why convert bytes to kilobytes?

A byte is the basic unit of data size, and a kilobyte is 1,024 bytes. Raw sizes in bytes show up in file properties, in the output of system commands and in API responses — converting them to kilobytes makes them easier to read and compare.

The relationship is fixed: 1 KB is 1,024 B in the binary system, which operating systems and this converter use. To turn bytes into kilobytes, divide their number by 1,024. The converter does this the moment you type a value.

Watch out for two systems. In the decimal system (SI), 1 KB is 1,000 B — that is how storage makers count, for example. This converter uses the binary system (1,024 B), matching what Windows and macOS show. Do not mix bytes up with bits either: 1 byte is 8 bits.

This tool computes both standards: binary (1,024) by default, and the Unit standard button switches it to decimal (1,000). Windows and RAM count in binary, while drive makers, macOS and search engines count in decimal — which is why the same capacity is quoted two different ways.

How does the bytes to kilobytes conversion work? Formula and example

The conversion rests on a fixed relationship: one kilobyte is 1,024 bytes. To turn bytes into kilobytes, divide their number by 1,024.

Full formula: kilobytes = bytes ÷ 1,024. The other way: bytes = kilobytes × 1,024.

Example: a file is 51,200 bytes. Calculation: 51,200 ÷ 1,024 = 50 KB. The multiplier 1,024 comes from the fact that computers count in binary, and two to the power of ten is exactly 1,024.

Why 1,024 and not 1,000? In the decimal system (SI), 1 KB is 1,000 B, and that is how storage makers state capacity. Operating systems and this converter use the binary system, where 1 KB is 1,024 B — formally called a kibibyte (KiB).

In Excel, type the formula =A1/1024 in a cell, where A1 holds the value in bytes. The other way, kilobytes to bytes, use =A1*1024.

Bytes to kilobytes conversion table

The table below converts common byte values into kilobytes in the binary system (÷1,024). To convert another value, use the converter above.

BytesKilobytes
512 B0.5 KB
1,024 B1 KB
2,048 B2 KB
5,120 B5 KB
10,240 B10 KB
20,480 B20 KB
51,200 B50 KB
102,400 B100 KB
256,000 B250 KB
512,000 B500 KB
1,048,576 B1,024 KB

Example: 1,024 B ÷ 1,024 = 1 KB. Want to convert kilobytes to bytes? Click Swap order in the converter above.

ADVERTISEMENT

The full data unit ladder: from smallest to largest

Every data size unit grows by the same multiplier: each one is 1,024 times larger than the previous. The table below shows the order from byte to petabyte, with a typical example of what each unit describes.

UnitRelationshipTypical example
Byte (B)base unitone character of text
Kilobyte (KB)1,024 Ba short email or icon
Megabyte (MB)1,024 KBa photo or an MP3 song
Gigabyte (GB)1,024 MBa movie or a RAM stick
Terabyte (TB)1,024 GBa hard drive
Petabyte (PB)1,024 TBa large data centre

Order from smallest to largest: byte, kilobyte, megabyte, gigabyte, terabyte, petabyte. Each step is a multiplication by 1,024.

When do people most often convert bytes to kilobytes?

Sizes in bytes come up mostly in technical contexts.

  1. Reading a file size

    File properties, system commands (such as ls -l) and file managers often report a size in raw bytes. A 51,200 B file is 50 KB — once converted, you know at a glance how big it really is.
  2. Programming and APIs

    API responses, the Content-Length header and upload limits are given in bytes. Converting to kilobytes makes it easier to judge whether a 20,480 B (20 KB) response fits your data budget.
  3. Small files on a website

    Favicons, SVG icons, JSON and CSS files are measured in kilobytes, but tools report them in bytes. Converting helps you keep an eye on asset weight, which affects how fast the site loads.
  4. Learning computing

    The byte–kilobyte relationship is the basis of many computing exercises. The converter shows plainly that 1 KB is 1,024 B and lets you check your own calculations quickly.

Convert other units to Kilobytes

Explore other unit converters

Frequently asked questions about converting bytes to kilobytes

How many bytes are in 1 kilobyte?

1 kilobyte is 1,024 bytes in the binary system, which this converter and operating systems use. In the decimal system (SI), used by storage makers among others, 1 KB is 1,000 bytes.

How much is 1024 bytes in KB?

1,024 bytes is exactly 1 KB. Calculation: 1,024 ÷ 1,024 = 1 KB. This is the base relationship between the byte and the kilobyte, which is why it is looked up most often.

How do you convert bytes to kilobytes?

Divide the number of bytes by 1,024. For example, 51,200 B ÷ 1,024 = 50 KB. The converter does this the moment you type a value, with no button to click.

How do you convert kilobytes to bytes?

Multiply the number of kilobytes by 1,024. For example, 10 KB × 1,024 = 10,240 B. Click Swap order to have the converter work in this direction.

Is 1 KB 1,000 or 1,024 bytes?

It depends on the system. Operating systems and this converter use the binary system, where 1 KB is 1,024 B. Storage makers use the decimal system, where 1 KB is 1,000 B. That is why the same number of bytes can give a slightly different result in KB.

What is the difference between KB and KiB?

KiB (kibibyte, the IEC standard) is always exactly 1,024 B. KB in the SI system is 1,000 B. In everyday use most people write KB while meaning 1,024 B, which is technically KiB. This converter uses 1,024 B.

How many bits are in a byte?

1 byte is 8 bits. Mind the notation: KB means kilobytes (file size), while Kb means kilobits (often transfer speed). This tool works with bytes and kilobytes, not bits.

How do you convert B to KB in Excel?

Type the formula =A1/1024 in a cell, where A1 holds the value in bytes. The other way, kilobytes to bytes, use =A1*1024. The same formula works in Google Sheets.

What is the order of the units from smallest to largest?

From smallest: byte (B), kilobyte (KB), megabyte (MB), gigabyte (GB), terabyte (TB), petabyte (PB). Each unit is 1,024 times larger than the previous one. A byte describes a single character, while a terabyte describes a drive capacity.

Contact Arteon Agency

Have a question or suggestion?

If you have spotted an error in the table or have an idea to improve the converter, write to us. We reply to every message.