Byte Converter
Math & NumbersConvert digital storage units between bytes, KB, MB, GB, TB, PB with support for both binary (base-1024) and decimal (base-1000) conventions.. Free, private — all processing in your browser.
1,000,000 B1,000 KB1 MB0.001 GB1.00e-6 TB1.00e-9 PB8,000,000 b8,000 Kb8 Mb0.008 GbThe Byte Converter translates digital storage values between every common unit from bits up to petabytes. Every developer, sysadmin, and IT professional hits this conversion daily: a disk shows 931 GB but the box advertised 1 TB, a log file is 487,923,456 bytes and you want to know how many megabytes that is, an API returns content-length in bytes and you need to decide if the payload is too big for your queue. Doing the math by hand is tedious, error-prone, and worst of all ambiguous — because the storage industry uses base-1000 and the operating system uses base-1024.
This tool handles both conventions side by side. Enter a value in any unit and see the equivalent in every other unit using decimal (SI, base-1000: KB, MB, GB, TB, PB) and binary (IEC, base-1024: KiB, MiB, GiB, TiB, PiB) at once. This is the only way to diagnose the classic tell-me-why-my-disk-is-smaller problem: a 1 TB drive contains exactly 1,000,000,000,000 bytes by vendor math, but your OS reports it as 931 GiB because it divides by 1024 at each level. Both numbers are correct; they just use different unit conventions. The converter explains the conversion, shows the exact bytes involved, and gives you copy-paste-ready values in every unit.
Byte Converter — key features
Dual unit systems
See both decimal (KB, MB, GB) and binary (KiB, MiB, GiB) values simultaneously, settling the 1000 vs 1024 debate once and for all.
Every common unit
Bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, and exabytes — all computed at once from your input.
Precise byte count
The exact underlying byte count is always visible, useful when an API or filesystem needs the raw number.
Bit-per-second and byte-per-second
Handles bandwidth-style values so you can convert Mbps to MB/s and similar without remembering the factor of eight.
Copy in any format
One-click copy for every unit value with a formatted suffix, ready to paste into reports, docs, or specs.
Supports fractional inputs
Values like 1.5 GB or 250.8 MiB convert cleanly with configurable decimal precision in the output.
Explains the difference
An inline note highlights when decimal and binary values diverge so you understand why a 1 TB disk shows as 931 GiB.
No rounding loss
Internal arithmetic uses full integer precision for byte counts so converting back and forth never drifts.
How to use the Byte Converter
- 1
Enter your value
Type the number into the unit field you already have — whether it is bytes, MB, GB, or any other supported unit.
- 2
Pick decimal or binary
The converter shows both side by side by default. Choose your preferred convention to copy values in the right system for your use case.
- 3
Read all equivalent units
Every other unit updates instantly. Bits, bytes, and every prefix from kilo to exa are computed from the same input.
- 4
Compare the two conventions
Check the decimal-vs-binary notice to understand why a vendor TB and an OS TiB are different numbers for the same storage.
- 5
Copy the value you need
Click the copy button next to any unit to put the formatted value on your clipboard — ready for a spec, report, or ticket.
Common use cases for the Byte Converter
System administration
- →Disk capacity planning: Compare vendor-advertised TB against actual usable GiB shown by the OS when sizing storage for a project.
- →Log rotation settings: Convert log file size limits from human-readable MB to exact bytes for configuration files that require numeric values.
- →Backup window calculation: Work out how long a 2 TB backup takes over a 1 Gbps link by converting between units and factoring in protocol overhead.
Development and DevOps
- →API payload limits: Check whether a content-length header in bytes fits under a 10 MB API gateway cutoff without doing mental arithmetic.
- →Container image size: Compare Docker image sizes displayed in mixed units (some tools show MB, others MiB) to understand real disk usage.
- →Upload size validation: Convert user-facing MB limits to the byte counts you need in form validators and middleware.
Networking and bandwidth
- →ISP speed verification: Convert advertised Mbps to MB/s and MiB/s to compare with speed test results and real transfer rates.
- →Cloud egress pricing: Estimate egress costs by converting monthly traffic volumes between GB and TB with the pricing convention your provider uses.
- →Video streaming budgets: Plan mobile data usage by converting hours-of-video at a given bitrate into GB consumed per month.
Byte Converter — examples
1 TB disk reality check
Shows why a 1 TB drive shows as 931 GiB in the OS — different unit conventions, same storage.
1 TB (decimal)
decimal: 1,000,000,000,000 bytes = 1 TB binary: 931.32 GiB ratio: 1000^4 vs 1024^4 = 0.9095
Server memory
A 64 GB RAM stick is really 64 GiB, because memory uses binary units natively.
64 GiB (binary)
bytes: 68,719,476,736 decimal: 68.72 GB OS display: 64 GB (but actually GiB)
Bandwidth vs transfer speed
Converting 1 Gbps Internet speed to real file transfer rate in megabytes.
1 Gbps (gigabits per second)
theoretical: 125 MB/s (decimal) real sustained: ~110 MiB/s after overhead per hour: 450 GB maximum
API payload size
A 487923456 byte response is just under 500 MB, comfortable under a 1 GB limit.
487,923,456 bytes
decimal: 487.92 MB binary: 465.32 MiB fits: under 500 MB API limit
Fractional gigabyte
Converting a 1.5 GB mobile data cap to exact bytes and MiB.
1.5 GB (decimal)
bytes: 1,500,000,000 MiB: 1430.51 mobile OS often shows: 1.4 GB
Technical details
Two parallel systems of units exist for digital storage, and almost every confusion comes from mixing them.
The SI (decimal, base-1000) system follows International System of Units rules: kilo means 1,000, mega means 1,000,000, giga means 1,000,000,000, and so on. Storage manufacturers, network equipment vendors, and most marketing materials use SI. A 1 TB hard drive contains approximately 1,000,000,000,000 bytes.
The IEC (binary, base-1024) system was formalized in 1999 to end the ambiguity that crept in when computer scientists overloaded the SI prefixes to mean powers of 1024 instead of 1000. IEC uses kibi (1024), mebi (1024^2), gibi (1024^3), and tebi (1024^4), abbreviated KiB, MiB, GiB, TiB. Operating systems like Linux and macOS report file sizes in IEC units (though Windows still says GB while meaning GiB, perpetuating the confusion). RAM is always specified in binary units because hardware physics makes powers of two natural (a 16 GB stick is actually 16 GiB).
Network bandwidth conventionally uses decimal (bits per second: 1 Mbps = 1,000,000 bps, not 1,048,576), which matches SI. File transfer speeds are often reported in binary megabytes per second (MiB/s), so a theoretical 1 Gbps link hits about 119 MiB/s sustained because of the mismatch.
Byte vs bit also trips people up. A byte is 8 bits. ISPs advertise 1 Gbps (one gigabit per second); divide by 8 to get 125 MB/s. The converter handles bit units explicitly so you can switch between Gbps and MB/s without mental arithmetic.
Common problems and solutions
⚠KB means different things in different places
Vendors use 1 KB = 1000 bytes, operating systems often use 1 KB = 1024 bytes. Use KiB explicitly when you mean 1024, and use the full byte count when you need to remove any doubt.
⚠Confusing bits and bytes in bandwidth
ISPs advertise Mbps (megabits per second), downloads show MB/s (megabytes per second). The factor of 8 is the cause of most expectation mismatches. Divide Mbps by 8 for the byte rate.
⚠Comparing file sizes between systems
Windows reports file size as GB while computing with 1024. Linux reports as GiB with 1024. The bytes are identical, only the label differs. When scripting, always use the raw byte count.
⚠Rounding at the output layer
A file is 1,048,576 bytes = 1.0000 MiB exactly, but displayed as 1.05 MB with decimal rounding. Use the exact byte count for equality checks, never a rounded MB value.
⚠Overflow in 32-bit integers
A 32-bit signed integer maxes out at roughly 2.1 GB. Older APIs and filesystems using 32-bit sizes will wrap or fail on files larger than that. Confirm your byte count stays within the target limit.
⚠Prefixes beyond petabyte
Exa (EB) and zetta (ZB) are rarely used outside data center marketing. Most cloud billing caps out at petabyte-scale. Verify your reporting tool does not silently truncate when values exceed PB.
⚠Decimal formatting loses precision
Displaying 1.5 GB hides whether the original value was 1,500,000,000 or 1,500,000,016. For audits and billing, always preserve and report the full byte count alongside the friendly label.
Byte Converter — comparisons and alternatives
Compared to using Google as a calculator (typing 487923456 bytes in GB), this tool shows you every unit at once plus the decimal-vs-binary comparison, saving follow-up queries when you realize you needed GiB not GB. For one-off quick conversions Google works fine; for anything more than a single value, the side-by-side view wins.
Compared to Linux numfmt or dd bs= options, this browser tool is faster for interactive exploration. numfmt is the right choice inside a shell pipeline or script — it handles both SI and IEC prefixes via --from=iec or --from=si and integrates with other CLI tools perfectly.
Compared to stock calculator apps that handle only basic unit conversion, this tool is specifically designed for the binary/decimal distinction that matters in computing. Consumer converters often silently use one convention, which is exactly the behavior that caused the original confusion.
Frequently asked questions about the Byte Converter
▶Is 1 GB equal to 1000 MB or 1024 MB?
Both answers exist in the wild. Decimal (SI) says 1 GB = 1000 MB, which is what storage vendors, networking gear, and most marketing use. Binary (IEC) says 1 GiB = 1024 MiB, which is what memory, operating systems, and low-level APIs often use. Always check which convention your context uses, or use the explicit binary suffixes (GiB) to remove ambiguity.
▶Why does my 1 TB disk only show 931 GB?
Your OS reports size in binary units (GiB) but labels them GB — a labeling problem that has persisted for decades. 1 TB from the manufacturer is 10^12 bytes, which equals 931.32 GiB in the OS. The drive is exactly the capacity advertised, just displayed in a different unit system.
▶When should I use KiB instead of KB?
Use KiB (and MiB, GiB, etc.) whenever you need to be unambiguous and the value is based on powers of 1024 — memory, file sizes in Linux du output, cache sizes. Use KB for decimal (powers of 1000) — disk capacity, network rates, most marketing. Explicit suffixes save hours of debugging when they differ.
▶How do I convert Mbps (internet speed) to MB/s (download speed)?
Divide Mbps by 8 to get MB/s, since 1 byte = 8 bits. So 100 Mbps equals 12.5 MB/s theoretically. Real-world speeds are lower due to TCP/IP overhead, packet retransmission, and ISP-side limits — expect about 85-90% of theoretical under good conditions.
▶What is the difference between bits and bytes?
A bit is a single binary 0 or 1. A byte is 8 bits and represents one character in simple encodings, or one color channel value, or a small integer. Storage is measured in bytes (file sizes, RAM). Transmission is measured in bits (bandwidth). Converting between them requires multiplying or dividing by 8.
▶Why does RAM use binary units but hard drives use decimal?
RAM is physically organized in powers of two because chip architecture is binary — so a 16 GB stick is 16 GiB by construction. Hard drive and SSD capacity is a marketing number — 1 TB really is 10^12 bytes because it sells better than 931.32 GiB. The conventions stuck.
▶Is this a calculator I can use offline?
Yes. After the first page load, all conversion math runs in your browser with no server dependency. Useful on planes, in offline environments, or when you simply do not want to trust a calculator that might phone home.
▶Can I convert transfer rates like 1 Gbps to GB per hour?
Yes. Enter the per-second value in the bandwidth field and the converter multiplies by 3600 to show per-hour totals in every unit. A 1 Gbps link tops out around 450 GB/hour of actual throughput after overhead.
Additional resources
- IEC 80000-13 standard — Overview of IEC binary prefixes (KiB, MiB, GiB) standardized in 1999 to end KB ambiguity.
- NIST on SI prefixes — Authoritative explanation from the US National Institute of Standards on decimal vs binary prefixes.
- GNU numfmt documentation — Command-line tool for converting between SI and IEC units in shell pipelines.
- Wikipedia — Data rate units — Comprehensive reference for bandwidth and transfer unit conventions.
- Microsoft on disk capacity — Background on why Windows still reports capacity in 1024-based units labeled as GB.
Related tools
All Math & NumbersCSS Unit Converter
Convert between CSS units — px, rem, em, vw, vh, %, pt, cm — for responsive design
Data Rate Converter
Convert data transfer rates between bits per second and bytes per second units including Kbps, Mbps, Gbps, KB/s, MB/s, GB/s.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-512 hashes for text and files
Length Converter
Convert lengths and distances between metric and imperial units including meters, feet, inches, miles, kilometers, and yards.
Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal, and any base from 2 to 36 with clear step-by-step output.
Scientific Calculator
Free online scientific calculator with trigonometric, logarithmic, exponential, and statistical functions for science, engineering, and math.
Learn more
Explore more tools
200+ free tools that run in your browser.
Browse all tools →