Byte Converter
Convert between bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes instantly online. Free byte size converter — no signup, runs entirely in your browser.
Value in MB
Related Tools
Unix Timestamp
Convert Unix timestamps to UTC, local time, and ISO 8601 instantly. Auto-detects seconds vs milliseconds.
Base Converter
Convert numbers between decimal, hex, binary, and octal instantly. Free and runs in your browser.
Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes instantly. Runs entirely in your browser using the Web Crypto API.
Digital storage and network bandwidth are measured in units built on powers of two: 1 kilobyte (KB) = 1,024 bytes, 1 megabyte (MB) = 1,024 KB, 1 gigabyte (GB) = 1,024 MB, and so on up through terabytes (TB) and petabytes (PB). This binary convention (IEC standard: kibibyte, mebibyte, gibibyte) is used by operating systems and memory hardware — which is why Windows reports a 1 GB flash drive as 953 MB.
The confusion between binary multiples (1 KB = 1,024 B, used by OSes and developers) and decimal multiples (1 KB = 1,000 B, used by hard drive manufacturers and network speed specifications) means the same number can represent different amounts depending on context. A 500 GB hard drive contains 500,000,000,000 bytes but your OS shows it as ~465 GB because it divides by 1,024 three times instead of 1,000.
This tool converts a value in any unit (B, KB, MB, GB, TB, PB) to all other units simultaneously, using binary (power-of-1,024) multiples. Each output row has a copy button for direct use in configuration files, documentation, or log analysis.
Common Use Cases
Sizing Docker container memory limits
Kubernetes pod specs and Docker Compose files accept memory limits in formats like 512Mi (mebibytes) or 2Gi (gibibytes). When an application's profiling shows it consumes 1.8 GB of RAM at peak, converting to mebibytes (1,843 MiB) lets you set a precise limit without padding so much that the node runs out of allocatable memory.
Understanding disk space discrepancies
Hard drive manufacturers advertise sizes in decimal gigabytes while operating systems report in binary gibibytes, causing apparent size loss. Converting a 2 TB drive (2,000,000,000,000 bytes) shows it as approximately 1.82 TiB — explaining why the OS shows less than the box claims and helping users plan storage accurately.
Calculating file transfer times
When estimating how long it takes to upload a 4.5 GB video file over a 100 Mbps connection, you need to convert GB to megabits (4.5 GB × 1,024 × 8 = ~36,864 Mb) to divide by the bandwidth figure. Getting the unit conversion right is essential for realistic ETAs on S3 uploads, backup jobs, and data migration planning.
Parsing log and monitoring data
Application performance monitoring tools (Datadog, Prometheus, Grafana) display memory usage in bytes. When a dashboard shows a heap size of 2,684,354,560 bytes, converting to GB (2.5 GB) or MB (2,560 MB) makes the number immediately interpretable during an incident investigation without mental arithmetic.
How to Use the Byte Converter
- Select the input unit (B, KB, MB, GB, TB, or PB) from the toggle.
- Enter your value — all other units update instantly.
- Click "Example" to load a sample value for the selected unit.
- Click "Copy" next to any row to copy that value to your clipboard.
Byte Unit Reference
- 1 KB (Kilobyte) = 1,024 Bytes
- 1 MB (Megabyte) = 1,024 KB = 1,048,576 Bytes
- 1 GB (Gigabyte) = 1,024 MB = 1,073,741,824 Bytes
- 1 TB (Terabyte) = 1,024 GB
- 1 PB (Petabyte) = 1,024 TB