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: —
—
How to use the Human to Bytes
- Type the size exactly as you would read it, such as 1.5 MB or 512 kB.
- Press Parse to split the number from the unit and scale it.
- Check the exact byte count and which convention your unit belonged to.
Features
- Parses kB, MB, GB and the binary KiB, MiB, GiB units
- Reports the exact byte count with no rounding
- Names the convention the typed unit belongs to
- Suggests the value the other convention would give
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