Human to Bytes

Parse a readable size such as 1.5 MB or 2 GiB back into an exact number of bytes.

Parse a readable size into bytes

Exact bytes: —
Convention used: —
Number and unit: —
Alternate reading: —
—
Units with i are binary, so KiB, MiB and GiB use 1024. Plain kB, MB and GB use 1000, and B means bytes.

How to use the Human to Bytes

  1. Type the size exactly as you would read it, such as 1.5 MB or 512 kB.
  2. Press Parse to split the number from the unit and scale it.
  3. Check the exact byte count and which convention your unit belonged to.

Features

Advertisement

Frequently Asked Questions

Common questions about the free online human to bytes.

Type it into the box. The parser splits the number from the unit, then multiplies by 1,000,000 for MB and reports the exact byte count.
MB means a million bytes and MiB means 1,048,576 bytes. The tool tells you which convention the unit you typed belongs to.
B, kB, MB, GB, TB, PB, EB and the binary KiB, MiB, GiB, TiB, PiB and EiB, in upper or lower case.
Yes. The unit is read without regard to case, so 2 gib, 2 GiB and 2 GIB all mean the same binary number of bytes.
Yes. Values such as 0.5 GB, 1.5 MB or 2.25 GiB are accepted, and the result is rounded to a whole number of bytes.
Bytes are indivisible in practice, so the product is rounded to the nearest whole byte and that value is what you see.
It shows what the same number would mean if you had used the other convention, which explains the difference you see in file managers.
Yes. Thousands separators are stripped before parsing, so both 1500000 and 1,500,000 are read as the same value.
No. Parsing happens entirely in your browser and the size string never leaves your device.

Last updated: October 10, 2026