File Size Converter (KB, MB, GB) and Page Weight Calculator
There are two kinds of kilobyte. In decimal units 1 kB is 1,000 bytes and 1 MB is 1,000,000 bytes; in binary units 1 KiB is 1,024 bytes and 1 MiB is 1,048,576. Windows shows binary sizes labelled KB, while macOS shows decimal. Enter any size below to see both.
| Decimal unit | Bytes | Binary unit | Bytes (binary) |
|---|---|---|---|
| 1 kB | 1,000 | 1 KiB | 1,024 |
| 1 MB | 1,000,000 | 1 MiB | 1,048,576 |
| 1 GB | 1,000,000,000 | 1 GiB | 1,073,741,824 |
| 1 TB | 10^12 | 1 TiB | 1,099,511,627,776 |
Updated
A converter that shows every unit at once, a box that reads the exact size of any file you drop on it (the file stays on your device), and a page weight calculator for checking a web page against a budget.
Page weight calculator
| Profile | Megabits per second |
|---|---|
| Weak mobile signal (0.4 Mbps) | 0.4 |
| Patchy mobile data (1.6 Mbps) | 1.6 |
| Decent mobile data (10 Mbps) | 10 |
| Broadband (50 Mbps) | 50 |
Where the two systems come from
Computer memory comes in powers of two, so early software rounded 1,024 bytes to a kilobyte. Everywhere else in science, kilo means exactly 1,000. To clear up the mix, the IEC introduced kibi, mebi and gibi for the powers of two, written KiB, MiB and GiB. Network speeds, drive capacities and most cloud pricing use the decimal units.
The gap grows with each step: about 2.4% at kilo, about 4.9% at mega and about 7.4% at giga. That is why the difference is easy to ignore for a photo and hard to ignore for a hard drive.
Using a page weight budget
A budget turns speed from an opinion into a number that a team can check. Write down a ceiling for each type, for example 150 kB of JavaScript and 600 kB of images, and look at the total before every launch.
The download times in the calculator are the bare transfer time at the given speed. Real loads take longer because of connection setup, round trips and the time the device spends running scripts, so treat them as a lower bound.
How it works
- Type a number and pick its unit. Every other unit, decimal and binary, updates at once.
- Drop a file on the page to read its exact size in bytes. The file is not uploaded; the browser only reports its length.
- In the page weight calculator, enter the transfer sizes from your browser's Network panel for HTML, CSS, JavaScript, images, fonts and other files.
- Set a budget and see the total, the share each type takes and the time it needs on slower connections.
Tips
- Read sizes from the Network panel's transferred column, not the resource size column. Transferred is what crossed the network after compression.
- Images are usually the heaviest part of a page. Converting to WebP or AVIF and serving the right width often cuts more than every other fix together.
- JavaScript costs more than its size suggests, because the phone also has to parse and run it. Budget it more tightly than images.
- When a hosting plan or email limit says MB, it usually means decimal. Disk and memory tools on Windows usually mean binary.
Frequently asked questions
Is 1 MB 1000 KB or 1024 KB?
Both are in use. Under the SI standard, 1 MB is 1,000 kB. Under the binary convention that Windows and many older programs use, a megabyte means 1,024 kilobytes, which the IEC standard names a mebibyte (MiB). The tool shows both so you can match whichever the other system uses.
Why does my new drive show less space than the box says?
Drive makers count in decimal: a 1 TB drive holds 10^12 bytes. Windows divides by 1,024 three times and labels the result GB, so the same drive shows as about 931 GB. No space is missing; it is the same number in a different unit.
Can this tool measure the weight of any web page from its URL?
No. Browsers block a page from downloading another site's files for security reasons, so an honest in-browser tool cannot do that. Open the page, press F12, reload with the Network panel open and copy the transferred totals into the calculator here. That gives a more accurate figure anyway, because it reflects your real connection, cache and compression.
What is a good page weight?
There is no official limit. Set a budget that suits your audience: a landing page that loads on a mid-range phone on mobile data should be far lighter than an internal dashboard. As a starting point, about 1 MB transferred is a reasonable ceiling for a marketing page; tighten it from there.
Related: Image compressor, PNG to WebP converter, Image to Base64, How to speed up a website, Website grader.
Start a 7-day free trial or see all free tools. On We.Inc you get a 7-day free trial, not a free plan: card needed, $0 today, cancel before it ends and you pay nothing. AI building is on paid plans from $20 a month.
More in Free Tools
- Font Pairing Tool
- Hourly Rate Calculator for Freelancers and Trades
- Game Name Generator
- GDPR Compliance Statement Generator
- Gift Certificate Maker: Printable, With a Unique Code
- Glassmorphism CSS Generator
- Google Review Link & QR Code Generator
- Hash Generator (MD5, SHA-1, SHA-256, SHA-512)
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App