Arithmetic on the numbers you type
Convert a byte count
The same count is shown in binary units (1024) and decimal units (1000).
The input is a number of bytes, not a number of megabytes.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Byte sizes
The sample is fixed. It uses the same rule as the form.
- Bytes
- 1536
- Binary units
- 1536 B · 1.5 KiB · 0.0015 MiB · 0 GiB · 0 TiB
- Decimal units
- 1536 B · 1.536 KB · 0.0015 MB · 0 GB · 0 TB
How to use it
- 1Fill in the fields.
- 2Read the result.
- 3Copy the line you need.
Good to know
- Fractions are allowed. Negative sizes are not.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
Fractions are allowed. Negative sizes are not.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Convert binary, octal, decimal, and hex
255, 0xFF, and 11111111 are one integer written three ways. This page keeps that integer exact and shows the other spellings beside the field you edit.
- Split a duration in milliseconds
The millisecond count is split into days, hours, minutes, and seconds.
- Convert px and rem
rem is relative to the root font size, not to the parent. This page divides or multiplies by the root you set.