工具 指南
developer 免费 无需注册

时区转换

在十进制(SI)和二进制(IEC)模式下,转换比特、字节、KB、MB、GB、TB、PB等文件大小单位。

正在加载工具…

关于此工具

在任意单位输入文件大小,所有转换结果立即更新。在十进制(SI)模式(1 KB = 1,000字节)和二进制(IEC)模式(1 KiB = 1,024字节)之间切换。便捷的参考部分显示实际对比,帮助您理解数字的含义。

使用方法

  1. 1 在任意单位字段中输入数字(例如在MB框中输入5)。
  2. 2 所有其他单位字段会自动更新为等价值。
  3. 3 使用顶部的单选按钮在十进制(SI)和二进制(IEC)模式之间切换。
  4. 4 查看底部的参考部分,将您的值与实际文件大小进行比较。

Why a "megabyte" can mean two different things

The biggest source of confusion in file sizes is that the prefix "mega" has two competing definitions. In the decimal (SI) system, each step up multiplies by 1,000: a kilobyte is 1,000 bytes, a megabyte is 1,000,000 bytes. In the binary (IEC) system, each step multiplies by 1,024 — because computer memory is addressed in powers of two — and the units get distinct names: kibibyte (KiB), mebibyte (MiB), gibibyte (GiB). This tool lets you convert in either system and switch between them with a single toggle, so you always know which definition you are using.

The unit ladders, side by side

Decimal (SI)BytesBinary (IEC)Bytes
1 KB1,0001 KiB1,024
1 MB1,000,0001 MiB1,048,576
1 GB1,000,000,0001 GiB1,073,741,824
1 TB10121 TiB1,099,511,627,776

Both ladders also start from the bit (one binary digit) and the byte (8 bits), which is why the tool can convert between bits and bytes too — useful when a network speed is quoted in megabits but a download size is in megabytes. The gap between the two systems widens at every level: at the gigabyte scale a "GB" and a "GiB" already differ by about 7%, which is exactly why a "1 TB" drive shows as roughly 931 GiB in your operating system.

A worked example

Type 1 into the Gigabytes field in decimal mode. The tool instantly fills every other field from the same underlying value: 1 GB equals 1,000 MB, 1,000,000 KB, 1,000,000,000 bytes, and 8,000,000,000 bits. Now switch the toggle to binary and enter 1 in Gibibytes: you get 1,024 MiB, 1,048,576 KiB, and 1,073,741,824 bytes. The "all conversions at a glance" table below the inputs lists every unit at once, so a single number you enter is shown across the whole ladder without any extra clicks.

How the precision is kept honest

File sizes can be enormous, and ordinary floating-point math drifts on big numbers. This converter holds the value internally as a high-precision integer of bits (scaled up by a large factor) using arbitrary-precision arithmetic, then formats each field for display. That means converting 5 PB down to bits and back does not accumulate rounding error. Very large or very small results are shown in a readable form — grouped with thousands separators in the normal range, and switched to scientific notation only at extreme magnitudes.

A built-in sense of scale

Numbers like "37,600,000,000 bits" are hard to picture, so the tool shows a plain-language reference for whatever you enter — for example it will note that around 4.7 GB is "a single-layer DVD," 25 GB is "a Blu-ray disc," and 1 TB is "a typical laptop hard drive." It picks the closest landmark to your value, giving you an intuitive anchor instead of just a wall of digits.

Common mistakes

  • Mixing bits and bytes. A "100 Mbps" connection is 100 megabits per second, which is only 12.5 megabytes per second. Confusing the two makes downloads seem eight times slower than expected. Convert through the bits field to keep them straight.
  • Assuming your OS uses decimal. Storage marketers use decimal (so a drive is "1 TB"), but Windows reports binary (so it shows ~931 GB). Nothing is missing — the units differ. Use binary mode to reproduce what your OS displays.
  • Trusting "MB" without context. If a spec sheet says MB but means MiB, your numbers will be off by a few percent. When precision matters, ask which system is meant.

Practical uses and privacy

Estimate how many photos fit on a memory card, check whether a video will fit an email attachment limit, convert a bandwidth quote into a download time, or reconcile a vendor's "GB" with your computer's "GiB." All math happens in your browser — no value you type is sent anywhere — so it works instantly and offline.

常见问题

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}