Zero Signup ToolsFree browser tools

Converter Tools

Human Readable Bytes Converter

Format a raw byte count into a human readable size like 1.5 MB, and parse sizes like 2.5 GiB back to exact bytes. SI and IEC, batch mode, no signup.

Runs in your browser. Nothing is uploaded.

Unit base

Decimal places

Mode

Human readable

1.54 MB

Exact: 1,536,000 bytes (1000 per step)

All units

The same byte count expressed in every decimal (SI) unit.

UnitNameValue
Bbytes1,536,000
kBkilobytes1536
MBmegabytes1.54
GBgigabytes0
TBterabytes0
PBpetabytes0
EBexabytes0

SI vs IEC: why the same file shows two sizes

A kilobyte is 1000 bytes in the SI system and a kibibyte is 1024 bytes in the IEC system. Disk makers and most command line tools use 1000, while RAM, many file systems, and du use 1024. That gap is why a drive sold as 1 TB shows up as roughly 931 GiB.

Decimal (SI, 1000)

  • 1 kB = 1000 bytes
  • 1 MB = 1,000,000 bytes
  • 1 GB = 1,000,000,000 bytes
  • 1 TB = 1,000,000,000,000 bytes

Binary (IEC, 1024)

  • 1 KiB = 1024 bytes
  • 1 MiB = 1,048,576 bytes
  • 1 GiB = 1,073,741,824 bytes
  • 1 TiB = 1,099,511,627,776 bytes

How to use

  1. Choose a direction: Bytes to human to format a byte count, or Human to bytes to parse a size string.
  2. Pick the unit base: SI (1000) for kB, MB, GB as disk makers and most CLIs use, or IEC (1024) for KiB, MiB, GiB as RAM and du use.
  3. Set the decimal places for the formatted output, then type a value or click a sample.
  4. Read the result: the human readable size with the exact byte count, or the exact byte integer with the base that was applied.
  5. Switch Mode to Batch to convert many lines at once, one value per line, then copy the whole output column.
  6. Use the copy buttons to grab the formatted size or the plain byte count, and Clear to start over.

About this tool

Human Readable Bytes Converter does the two byte-size jobs that a plain unit converter skips. The first is formatting: you read a raw byte count out of a log line, an API response, a Content-Length header, ls -l, df, or an S3 object listing, and you want the single clearest way to say it. Paste 1536000 and the tool returns 1.5 MB in the decimal (SI) system or 1.46 MiB in the binary (IEC) system, choosing the largest unit where the value is at least 1 and rounding only the displayed number while keeping the exact byte count beside it. The second job is the reverse: you have a human size like 2.5 GiB or 1.5 MB and you need the exact integer to drop into a config value, a storage quota, an environment variable, or a request body. Type the size and the tool returns the precise byte count, computed with arbitrary-precision integers so a multi-gigabyte value is exact rather than a floating-point approximation. Both directions handle the kilobyte ambiguity head on. A kilobyte is 1000 bytes in SI and a kibibyte is 1024 bytes in IEC, and the gap is why a drive sold as 1 TB shows up in some tools as about 931 GiB. A unit base toggle switches every result between 1000 and 1024 per step, and on parsing, a suffix written explicitly as KiB, MiB, or GiB always means 1024, while a suffix written as kB, MB, or GB follows the toggle, which lets you model both the SI reading and the Windows or JEDEC reading where KB is treated as 1024. The parser is deliberately forgiving: it accepts 1.5MB, 1,5 GB with a decimal comma, 1024k, 2 gigabytes spelled out, grouped numbers with commas or underscores, and bare integers with no unit. Single mode shows the headline result plus a full table of the same value in every unit from bytes to exabytes. Batch mode runs the whole conversion on many lines at once, which is the real devops case: paste a column of byte counts pulled from a script or a list of sizes from a ticket and convert all of them in one shot, with any unreadable line flagged in place rather than silently dropped. Copy buttons return either the formatted size or the plain byte integer, ready to paste. One honest scope note: this works on byte counts and size units only; it is not a disk-usage or directory-scanning tool, and it does not read files. Everything is computed locally in your browser with plain arithmetic, so the numbers you paste are never uploaded, logged, or sent anywhere.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsConverter Tools