Data Size Converter
Convert between bytes, KB, MB, GB, TB, and PB. Switch between binary (powers of 1024, IEC standard) and decimal (powers of 1000, SI standard) modes. Includes common file size references to put numbers in context.
Frequently Asked Questions
What is the difference between binary and decimal units?▼
Binary (IEC) uses powers of 1024: 1 KiB = 1,024 bytes. Decimal (SI) uses powers of 1000: 1 KB = 1,000 bytes. Operating systems like Windows report file sizes in binary but label them as KB/MB/GB. Mac and Linux use decimal. This causes the apparent discrepancy when a '1 TB' drive shows up as ~931 GB on Windows.
How many bytes is 1 GB?▼
In binary (IEC), 1 GiB = 1,073,741,824 bytes (1024³). In decimal (SI), 1 GB = 1,000,000,000 bytes (1000³). Hard drive manufacturers use decimal, which is why a '1 TB' drive actually stores 1,000,000,000,000 bytes — about 931 binary GiB.
What are KB, MB, GB, TB in binary vs decimal?▼
Binary: 1 KB = 1,024 B, 1 MB = 1,048,576 B, 1 GB = 1,073,741,824 B, 1 TB = 1,099,511,627,776 B. Decimal: 1 KB = 1,000 B, 1 MB = 1,000,000 B, 1 GB = 1,000,000,000 B, 1 TB = 1,000,000,000,000 B.
Why does my file look smaller on disk?▼
Filesystems allocate space in blocks (typically 4 KB). Even a 1-byte file occupies one full 4 KB block on disk. This is why 'size on disk' is always a multiple of the block size and often larger than the actual file size.
How do I convert MB to GB?▼
Divide MB by 1,024 (binary) or 1,000 (decimal) to get GB. For example, 2,048 MB ÷ 1,024 = 2 GiB. Use this tool to convert any data size instantly by entering a value and selecting the source unit.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
Fake Data Generator
Generate realistic fake user data for testing and development. Choose locale (en/zh-TW/ja), count (1-100), fields to include, and output format (JSON/CSV/SQL INSERT). 100% browser-based.
Open free tool →
IP CIDR Calculator
Calculate IPv4 and IPv6 subnet details from CIDR notation. Get network address, broadcast, host range, subnet mask, wildcard mask, and binary representation.
Open free tool →
IPv4 Subnet Calculator
Calculate IPv4 subnet details from CIDR notation. Get network address, subnet mask, broadcast address, first/last host, and total usable hosts instantly. Free online tool.
Open free tool →
More Free Tools
Related Articles
Pandas vs Polars vs DuckDB: Python Data Analysis in 2026
Comprehensive comparison of Pandas, Polars, and DuckDB for Python data analysis in 2026. Performance benchmarks, lazy evaluation, SQL interface, memory usage, and real code examples to help you choose the right tool.
CSV to JSON Online: Convert Spreadsheet Data in One Click
Convert CSV to JSON online free — paste spreadsheet data and get valid JSON instantly. Handles headers, quoted commas, custom delimiters, and type coercion.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →