Diysb Tools

字节转换器

在不同字节单位之间转换数据值,支持 SI(十进制)和 IEC(二进制)两种系统。支持多行转换。

数字工具
输入值
转换输出
工具选项
转换选项

选择您提供的输入值的单位(例如 KB、MB、GiB)。

选择您希望将输入值转换为的目标单位。

转换输出中显示的小数位数。
字节转换器 示例

Convert Gigabytes to Megabytes

This example converts a list of storage values in Gigabytes (GB) into Megabytes (MB) using the SI system. Each line represents a different storage size. The output shows the same values converted to MB with the specified precision.

1 2.5 10 0.75 50
1 2.5 10 0.75 50
1000 2500 10000 750 50000
1000 2500 10000 750 50000
转换选项

选择您提供的输入值的单位(例如 KB、MB、GiB)。

选择您希望将输入值转换为的目标单位。

转换输出中显示的小数位数。

Convert MiB to GiB (IEC System)

This example converts values in Mebibytes (MiB) to Gibibytes (GiB) using the IEC binary system. Each line of input represents a different memory size, and the output shows the conversion rounded to 2 decimal places.

1024 2048 5120 256 8192
1024 2048 5120 256 8192
1 2 5 0.25 8
1 2 5 0.25 8
转换选项

选择您提供的输入值的单位(例如 KB、MB、GiB)。

选择您希望将输入值转换为的目标单位。

转换输出中显示的小数位数。

Cross-System Conversion: GB to GiB

This example demonstrates a cross-system conversion from SI units (GB) to IEC units (GiB). Since GB and GiB are slightly different, the output shows fractional values with high precision. This is useful when comparing storage reported by operating systems vs manufacturers.

1 5 10 50 100
1 5 10 50 100
0.931 4.655 9.313 46.566 93.132
0.931 4.655 9.313 46.566 93.132
转换选项

选择您提供的输入值的单位(例如 KB、MB、GiB)。

选择您希望将输入值转换为的目标单位。

转换输出中显示的小数位数。

Convert Bytes to Bits

This example converts values from Bytes (B) to Bits (b). Since 1 Byte = 8 Bits, each input value is multiplied by 8. The precision is set to 0 because the result is always an integer.

1 5 10 50 100
1 5 10 50 100
8 40 80 400 800
8 40 80 400 800
转换选项

选择您提供的输入值的单位(例如 KB、MB、GiB)。

选择您希望将输入值转换为的目标单位。

转换输出中显示的小数位数。