Bitrates are quoted in bits, files are counted in bytes

Audio and video encoders, voice codecs and telephone lines state their rate in kilobits per second, while a file manager or a program reports bytes. To compare a stream with a link, or to predict how large a recording will be, you convert between the two. The default of 10 B/s gives 0.08 kbps, which only checks the arithmetic. Realistic inputs are in the thousands or tens of thousands: 16,000 B/s is 128 kbps and 40,000 B/s is 320 kbps, two common settings for compressed music. The page multiplies by 0.008, so the answer is always a bit rate, and the input is always a byte rate.

Where 0.008 comes from

One byte holds eight bits, and the SI prefix kilo means 1,000, as defined by the BIPM and applied in NIST SP 811. One byte per second is therefore 8 bits per second, which is 0.008 kbit/s. The inverse is 125 bytes per second for each kilobit per second. Telecommunications has always used the decimal kilo for bit rates, so 1 kbps is 1,000 bit/s and never 1,024. That differs from memory sizes, where the binary habit grew up. The symbol kbps is common in consumer settings. In technical documents you will also see kbit/s, which means the same thing and avoids any suggestion that the b stands for byte.

CD audio as a worked case

Uncompressed CD audio samples two channels at 44,100 times per second with 16 bits per sample. That is 44,100 × 2 × 2 bytes, or 176,400 bytes per second, and the page converts it to 1,411.2 kbps. Compressed music is far smaller. A 128 kbps stream is 16,000 B/s, about 9 percent of the CD rate, and a 320 kbps file is 40,000 B/s, about 23 percent. The comparison shows how much compression a codec performs, and the same arithmetic applies to any PCM recording. A mono voice recording at 16 kHz with 16 bits uses 32,000 B/s, which is 256 kbps before compression. Lossless codecs such as FLAC land between the two extremes, and the exact byte rate depends on the music, so measure the file instead of assuming a ratio.

File size from a bitrate

The reverse use is predicting file size. Choose kbps as the source and bytes per second as the target, then multiply by the duration. A 3 minute track at 128 kbps has 16,000 B/s × 180 s, which is 2,880,000 bytes, about 2.9 MB. A 4 minute track at 320 kbps uses 40,000 × 240, or 9,600,000 bytes, about 9.6 MB. These estimates exclude metadata such as tags and cover art, and variable bitrate files differ from constant ones, since the quoted figure is then an average. When file sizes and durations are known, the same arithmetic run backwards gives the average bitrate of an existing file.

Constant and variable bitrate

A constant bitrate encoder spends the same number of bits every second, so the byte rate the page converts is steady. A variable bitrate encoder spends more on complex passages and less on silence, and the figure on the label is a target or an average. When you convert a measured byte rate from a single second of such a stream, the kbps value can be far from the label. Averaging over the whole file is the fair comparison. For streaming over a link, the peaks matter as much as the average, because a buffer has to cover the highest moments or playback stalls.

Kilobits on telephone and low-power links

Voice and sensor networks are specified in kilobits. A digital telephone channel of the G.711 type carries 8,000 samples per second at 8 bits, which is 8,000 B/s or 64 kbps. Low-power radio links used for sensors often run from a few kbps to a few hundred kbps, so a device that sends 250 bytes every ten seconds uses 25 B/s on average, 0.2 kbps, though each burst is sent at the full link rate. Converting the average byte rate shows how little of the link the application needs, and the burst rate tells you how long the radio stays on for each message.

Bits versus bytes on labels

Lowercase b means bit and uppercase B means byte, so kbps and kB/s differ by a factor of 8. A modem or router labeled 56 kbps moves at most 7,000 bytes per second. A download that shows 100 kB/s is using 800 kbps. Many people read a kB/s figure from a browser and compare it with a plan quoted in kbps or Mbps without the factor of 8, and the plan then looks eight times better than it is. This page makes the step explicit. Write the unit symbol next to every number you copy, because a bare 128 can mean either one. In a spreadsheet, give each column a header such as kbps or B/s and convert at one point only, so the same value is never converted twice by different people.

Framing and protocol overhead

The byte rate seen by an application is lower than the line rate in bits divided by 8, because headers, framing and retransmissions use part of the capacity. Asynchronous serial framing adds two bits to every eight, so a 9,600 baud line carries 960 data bytes per second, equal to 7.68 kbps of payload. Packet networks add headers of tens of bytes per packet, which takes a large share when packets are small, as in voice calls. If you want the line rate for a link, add the overhead. If you want the payload rate, start from the application byte count, as this page does.

Presenting the answer

Bitrates are normally quoted as round numbers, such as 128, 192, 256 or 320 kbps, so a measured value of 15,873 B/s, which is 126.98 kbps, reads as about 127 kbps and is probably a 128 kbps stream with variable overhead. Round to the digits your source supports. Because the factor is exact, a hand check is easy: multiply by 8 and divide by 1,000. Ten thousand bytes per second is 80,000 bits per second, or 80 kbps, matching the page. Keep the byte figure in your records, since it converts to any other unit without loss. A podcast file of 14,400,000 bytes lasting 15 minutes has an average of 16,000 B/s, which is 128 kbps, and that quick division of size by time is how you recover the bitrate of a file you did not encode yourself.