Byte Size Converter
Convert bits, bytes, KB, MB, GB and binary KiB to PiB without mixing 1000 with 1024.
This tool runs entirely in your browser. Your data is never uploaded, never stored, and never leaves your device.
Converts directly between bits, decimal bytes and binary bytes from b through PB and PiB, while keeping the 1,000-byte KB separate from the 1,024-byte KiB.
How to use it
- 1Enter a value — grouped values such as 1,048,576 are accepted — and choose its current unit under From.
- 2Choose the exact unit you need under To; the direct answer and formula update immediately.
- 3Use the byte-unit table for a wider comparison or copy any result with its own Copy button.
Example
- Input
- 1 · MB
- Output
- 1,000,000 B · 1,000 KB · 976.5625 KiB · 0.9536743164 MiB
A megabyte here is a flat 1,000,000 bytes, while a mebibyte is 1,048,576. Lower-case b means bits, upper-case B means bytes, so 100 Mb is 12.5 MB. The displayed answer is rounded for reading while Copy keeps the calculated number.
What happens to your data
No file is involved — the page multiplies the number you type by one local unit constant and divides by another. Nothing is opened, uploaded or measured on your disk.
Last updated September 2026
Two figures can both be called a gigabyte and differ by 73,741,824 bytes. That gap is why a drive sold as 500 GB shows up as 465 the moment an operating system counts it, why a file size that looked safely under a 25 MB limit is refused anyway, and why a quota written in one document never quite matches the usage reported in another.
Common jobs need different directions: MB to GB shows whether a file fits a storage allowance, GB to MB expresses that allowance in the units an upload form may use, and MB to KB handles smaller file limits. This file size converter also works as a broader data storage converter from bits through PB and PiB, while preserving the selected decimal or binary standard.
Choose the exact From and To units for the conversion you need. Bits and kilobits cover network and bitrate figures; decimal bytes run from B through PB; binary bytes run from KiB through PiB. The wider table still shows every byte unit together, so a 1,000-based KB is never silently treated as a 1,024-based KiB.
Grouped values copied from a file listing, such as 1,048,576 or 1 048 576, work without cleanup. Results update on each keystroke: there is no convert button and no file to upload.
How it works
Toolvore assigns every unit a byte factor. Bits use one eighth of a byte, decimal units use powers of 1,000 through PB, and binary units use powers of 1,024 through PiB. The value is normalised by removing commas, spaces and underscores, multiplied by the From factor, then divided by the To factor. The same byte count fills the comparison table. No file is opened and no request is made. Displayed values are rounded for readability; Copy uses the calculated number. Ordinary JavaScript number precision applies at extremely large scales.
Common use cases
- Checking a raw byte count from ls -l or a file properties dialog against an upload limit written in MB
- Working out why a drive sold as 500 GB shows up as 465 once an operating system counts in binary units
- Converting a block, cache or memory size quoted in MiB into the MB a spec sheet or invoice uses
- Seeing that a 25 MB export is 23.84185791 MiB, so a limit counted in 1,024s has room to spare
- Reconciling a storage quota billed in gigabytes against usage a dashboard reports in gibibytes
Frequently asked questions
Does it matter how I spell it — kb, KB, kilobytes, kilo bytes to mb?+
Not for the arithmetic; the same division happens however the request is typed, and kilo bytes to mb means what kilobytes to MB means. It matters enormously for which unit you get, though, because kb with a lower-case b is a kilobit and KB is a kilobyte, and they differ by a factor of eight. Broadband is sold in bits and files are stored in bytes, which is why a 100 Mb connection does not move a 100 MB file in a second.
How do I convert KB to MB?+
Divide by 1,000: there are 1,000 kilobytes in a megabyte, so 500 KB is 0.5 MB and 1 KB is 0.001 MB. That holds for the decimal units this tool labels KB and MB. The same 500,000 bytes read on the 1,024 scale are 488.28125 KiB, or 0.4768371582 MiB — the KiB and MiB rows are there so you can take a figure either way without doing the sum twice.
What is a kibibyte, and why not just say kilobyte?+
A kibibyte is 1,024 bytes; the kilobyte here is a flat 1,000. The binary names — kibibytes, mebibytes, gibibytes and tebibytes — exist because "kilobyte" was used for both meanings for decades, and the discrepancy compounds as the units grow: 2.4% at the kilo step, 4.9% at mega, 7.4% at giga and 9.95% at tera. Enter 1 MiB and the byte row reads 1,048,576; 1 GiB reads 1,073,741,824.
Why does my 500 GB drive show up as 465?+
Because it was sold in decimal gigabytes and the operating system is counting in binary ones while still writing "GB" on the label. Enter 500, choose Gigabytes (GB), and the GiB row reads 465.6612873 — the same 500,000,000,000 bytes, described on the other scale. Nothing has gone missing, though formatting does claim a little real space on top of that.
An upload limit says 25 MB — is that 25,000,000 bytes or 26,214,400?+
It is rarely stated, and the safe assumption is the smaller one, since a file under 25,000,000 bytes clears both readings. Enter 25 and pick MB to see the gap: that is 23.84185791 MiB. Software is inconsistent about this even within one site — the image compressor here asks for its target in KB and treats each one as 1,024 bytes, so a 100 KB target returns a file of 102,400 bytes or less.
Does the displayed value keep the full byte count?+
Common whole-byte counts such as 1 TiB = 1,099,511,627,776 bytes fit within the display's fifteen significant figures. Very small fractions are trimmed to twelve decimal places and very large or tiny answers switch to scientific notation. The Copy button uses the calculated number rather than the grouped display string. Beyond JavaScript's safe-integer range, however, the underlying number itself may already be rounded.
Can it handle megabits, petabytes and pebibytes?+
Yes. Pick Mb for megabits, PB for decimal petabytes or PiB for binary pebibytes. Lower-case b means bits and upper-case B means bytes, so 100 Mb converts to 12.5 MB. Very large figures still use ordinary JavaScript number precision, so beyond the safe-integer range an exact whole-byte count can be rounded.
Related tools
SVG to PNG / JPEG
Convert SVG to exact-size PNG, JPG or WebP with contain or cover fit and safe local rendering.
Image OCR — Extract Text
Extract text from a photo, cancel recognition, correct the result and download TXT locally.
PNG to JPG Converter
Convert PNG images to JPG, with control over quality and the background colour behind transparent areas.
JPG to PNG Converter
Batch-convert JPEG to PNG, keep original dimensions or resize, and download images or a ZIP.