Binary Bit Size Converter

Conversions

Data Size Reference

Understand binary bit sizes and their decimal value ranges. Convert between bits, nibbles, bytes, and larger units — with clear explanations of unsigned and signed ranges for each bit width.

5Number Systems
Precision
0msLatency

What is Binary Bit Size Converter?

The Binary Bit Size Converter is a reference tool that helps you understand and convert between different binary data sizes — from individual bits to nibbles, bytes, kilobytes, megabytes, gigabytes, terabytes, and beyond. It also shows the value ranges for unsigned and signed integers at each bit width.

This tool exists because understanding bit sizes is fundamental to working with computers. Every data type in programming has a fixed bit size that determines its range and memory footprint. Knowing that an 8-bit unsigned integer stores values 0–255, or that a 32-bit signed integer ranges from -2.1 billion to +2.1 billion, helps developers choose the right data types and avoid overflow bugs.

Whether you're estimating storage requirements, choosing data types for a database schema, understanding why your integer overflowed, or converting between SI units (KB, MB, GB) and binary units (KiB, MiB, GiB), this converter provides instant, accurate answers.

Interactive Demo

Binary Bit Size Converter Formula

Enter any file size and instantly see it in every unit — from raw bits to terabytes. Uses binary (1024-based) units.

Unit Converter
Value
Unit
Bits
8,192
Bytes
1,024
KiB
1
MiB
0.000977
GiB
0.000001
TiB
0.000000
Concept Guide

Standard Bit Widths in Computing

8
Byte (8-bit)
Unsigned: 0 – 255
Signed: −128 – 127
Characters, pixel channels, small counters
16
Short/Word (16-bit)
Unsigned: 0 – 65,535
Signed: −32,768 – 32,767
Unicode BMP, audio samples, port numbers
32
Int/DWord (32-bit)
Unsigned: 0 – 4.29B
Signed: −2.15B – 2.15B
IPv4 addresses, general integers, colors (RGBA)
64
Long/QWord (64-bit)
Unsigned: 0 – 1.84×10¹⁹
Signed: ±9.22×10¹⁸
Timestamps, file sizes, memory addresses, IDs
Quick Reference

SI vs Binary Units

Why your "1 TB" hard drive shows as 931 GB — the difference between SI (decimal) and binary (IEC) units.

SI UnitValueBinary UnitValueDifference
KB (kilobyte)1,000 BKiB (kibibyte)1,024 B2.4%
MB (megabyte)1,000,000 BMiB (mebibyte)1,048,576 B4.9%
GB (gigabyte)1,000,000,000 BGiB (gibibyte)1,073,741,824 B7.4%
TB (terabyte)10¹² BTiB (tebibyte)2⁴⁰ B10.0%
FAQ

Frequently Asked Questions

What is a bit?
A bit (binary digit) is the smallest unit of data in computing. It has exactly two possible values: 0 or 1. All digital data — text, images, video, software — is ultimately stored and processed as sequences of bits. The word 'bit' comes from 'binary digit.'
How many values can 8 bits (1 byte) represent?
8 bits can represent 2⁸ = 256 different values. For unsigned integers, the range is 0 to 255. For signed integers (2's complement), the range is -128 to 127. One byte is enough to store one ASCII character, one color channel value (0-255), or one small integer.
What is the difference between a kilobyte and a kibibyte?
A kilobyte (KB) is 1,000 bytes (decimal, SI standard). A kibibyte (KiB) is 1,024 bytes (binary). The difference matters: a 1 TB hard drive is 1,000,000,000,000 bytes (SI), but the OS reports it as ~931 GiB (binary). Storage manufacturers use decimal (larger numbers), while operating systems often use binary.
What are common bit sizes in computing?
Common bit sizes: 1 bit (boolean), 4 bits/nibble (hex digit), 8 bits/byte (character), 16 bits/word (short integer), 32 bits/dword (integer, IPv4 address), 64 bits/qword (long integer, modern pointers), 128 bits (UUID, IPv6 address), 256 bits (cryptographic hash).
How do you calculate the range of n-bit unsigned integer?
For an n-bit unsigned integer: minimum value = 0, maximum value = 2ⁿ - 1, total values = 2ⁿ. Examples: 8-bit: 0 to 255 (256 values), 16-bit: 0 to 65,535, 32-bit: 0 to 4,294,967,295, 64-bit: 0 to 18,446,744,073,709,551,615.
Why do computers use powers of 2 for sizes?
Computers use powers of 2 because binary circuits naturally subdivide into halves. Memory chips are organized in rows and columns that double: 256, 512, 1024, 2048. Address buses with n lines can access 2ⁿ locations. This makes powers of 2 the natural sizing unit for all digital hardware.
Copied to clipboard!