带宽 / 下载时间计算器
从文件大小和连接速度中估计下载时间,通过传输量转换。
输入结果时更新 。
关于此计算器
A bandwidth calculator works out how long a file takes to transfer over a connection of a given speed, and the key to getting it right is the bits-versus-bytes distinction. File sizes are quoted in bytes — KB, MB, GB, TB — while connection speeds are quoted in bits per second — Kbps, Mbps, Gbps — and a byte is 8 bits. So the download time is the file size converted to bits (× 8), divided by the effective bit rate of the link. That single factor of 8 is why a connection’s headline number never matches the download figure you watch tick by.
As a worked example, a 1 GB file over a 100 Mbps connection is 1 GB × 8 = 8,000 megabits, and 8,000 / 100 = 80 seconds at the theoretical maximum — because 100 Mbps is only about 12.5 MB per second. Add a protocol-overhead allowance for the real world (TCP/IP headers, retransmissions, shared links) and the time stretches accordingly; a 10% overhead pushes that 80 s to about 89 s. The calculator also lists the speed expressed in bps, Kbps, Mbps, Gbps and MB/s for quick cross-checks.
You can switch between decimal units (1 KB = 1,000 bytes, the convention ISPs and drive makers use) and binary units (1 KiB = 1,024 bytes, how operating systems count), which shifts the numbers by a few percent — a "1 TB" decimal drive is about 931 binary GiB. This makes the tool handy for estimating backups and large downloads, sizing an internet plan, planning video streaming or uploads, and sanity-checking why a transfer is taking as long as it is.
经常问到的问题
为什么我的下载速度比连接速度慢?
速度以百万位/秒计,但文件以兆位字节计量,一字节为8位,100兆位/秒的线程最多移动12.5兆位。协议管理费、共享带宽和服务器限制进一步降低,而管理费的实地模型则进一步降低。
小数点和二进制大小之间有什么区别?
十进制单位( IPS 和 驱动器) 将 1 KB 视为 1 000 字节; 二进制单位将 1 KiB 视为 1024 字节。 小数点驱动器“ 1 TB” 大约是 931 二进制 GB, 因此公约会稍微改变转移时间 。
我如何将 Mbps 转换为 MB/s?
Divide by 8: 100 Mbps ÷ 8 = 12.5 MB/s. The calculator does this automatically and reports the resulting time in days, hours, minutes and seconds.
协议的间接费用应该由我设定到什么?
实际传输会丢失切片到 TCP/IP 信头、 握手和转播。 5-10%是健康电线连接的合理折中;更多用于无线、 移动或挤压连接。 它会剃去有效速度并延长估计时间。
为什么1GB的字节数量并不总是相同?
Under the decimal convention 1 GB is 1,000,000,000 bytes, but operating systems often count in binary where 1 GiB is 1,073,741,824 bytes. Switch the byte-convention option to match how your file size was measured for an accurate transfer time.
下载一个连接我的大文件要多久?
输入文件大小和计划速度, 并读取时间。 例如, 超过 100 Mbps 的 25 GB 游戏最多需要33 分钟, 时间在 管理前—— 工具将结果打破为天数、 小时、 分钟和秒 。
这能衡量我实际的互联网速度吗?
否—— 它根据您提供的速度估算传输时间, 它不测试您的线条。 运行一个单独的速度测试来查找您的真实传输量, 然后输入此数字以获取一个现实的下载时间估计 。
API - 使用代码中的计算器
将此计算器称为自由 JSON 端点 。 不需要按键 。 将字段值发送到下面作为查询参数或 JSON 。 任何您省略的, 都会使用相同的默认值, 此页面预填的默认值是预填的; 未知参数是 400, 而不是静音零 。 读取 API 全部文件 →
终点
GET https://calculator.free/api/v1/bandwidth/
curl
curl "https://calculator.free/api/v1/bandwidth/?size=1&size_unit=GB&speed=100&speed_unit=Mbps"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/bandwidth/?" + new URLSearchParams({
"size": "1",
"size_unit": "GB",
"speed": "100",
"speed_unit": "Mbps"
}));
const data = await r.json();
console.log(data.results);
成果仅是一般指导的估计数,而不是财务、医疗或税务咨询。