Convert kilobytes to bytes

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

KB
B
Unit standard

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

to
ADVERTISEMENT

Why convert kilobytes to bytes?

A kilobyte is 1,024 bytes, and a byte is the basic unit of data size. A size in kilobytes is easy to read, but in code, configuration or a spec you often need the exact number of bytes — and that is when you convert KB to B.

The relationship is fixed: 1 KB is 1,024 B in the binary system, which operating systems and this converter use. To turn kilobytes into bytes, multiply 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 kilobytes to bytes conversion work? Formula and example

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

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

Example: you have a 50 KB limit and want it in bytes. Calculation: 50 × 1,024 = 51,200 B. 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 KB. The other way, bytes to kilobytes, use =A1/1024.

Kilobytes to bytes conversion table

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

KilobytesBytes
0.5 KB512 B
1 KB1,024 B
2 KB2,048 B
5 KB5,120 B
10 KB10,240 B
20 KB20,480 B
50 KB51,200 B
100 KB102,400 B
250 KB256,000 B
500 KB512,000 B
1,024 KB1,048,576 B

Example: 1 KB × 1,024 = 1,024 B. Want to convert bytes to kilobytes? 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 kilobytes to bytes?

An exact number of bytes is needed mostly in technical contexts.

  1. Limits in code and config

    Many libraries and config files take a size limit in bytes. If you want to set a 50 KB threshold, you enter 51,200 B — the converter gives the exact number without manual math.
  2. Buffers and data structures

    Buffer, packet and record sizes are given in bytes. Knowing the size in kilobytes, you convert it to exact bytes, for example 10 KB is 10,240 B.
  3. File size validation

    An upload validator usually compares the size in bytes. From a limit given in kilobytes you work out the threshold in bytes, so the rule behaves exactly as you intend.
  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 Kilobytes to other units

Explore other unit converters

Frequently asked questions about converting kilobytes to bytes

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 1 KB in bytes?

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

How do you convert kilobytes to bytes?

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

How do you convert bytes to kilobytes?

Divide the number of bytes by 1,024. For example, 51,200 B ÷ 1,024 = 50 KB. 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 kilobytes can give a slightly different result in bytes.

How many bytes are in 5, 10 and 100 KB?

5 KB is 5,120 B, 10 KB is 10,240 B, and 100 KB is 102,400 B. You get each of these by multiplying the number of kilobytes by 1,024.

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 do you convert KB to B in Excel?

Type the formula =A1*1024 in a cell, where A1 holds the value in kilobytes. The other way, bytes to kilobytes, 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.