Skip to main content

Bytes to Kilobytes (B to KB)

Last updated:

Bytes-to-kilobytes conversions are the lowest-step data-storage roll-up that turns raw byte counts — file-size metadata fields, database record sizes, network-payload byte counts, log-line byte tallies — into the KB-scale figures that file managers, mail clients and storage dashboards actually display. A 24,832-byte HTML file shows as 24.8 KB in the file-manager column; a 4,096-byte database row aggregates to 4 KB on the per-record storage cost; a 384-byte HTTP-header payload tallies to 0.384 KB on the per-request bandwidth log. The math is a clean three-decimal-place shift in the SI/decimal interpretation (1 KB = 1000 bytes), which is the convention every modern operating system, programming language standard library and cloud-storage vendor now uses on user-facing storage figures. The older binary "1 KB = 1024 bytes" convention persists in some legacy file-system code but is increasingly relabelled as KiB (kibibyte) under IEC 60027-2.

How to convert Bytes to Kilobytes

Formula

KB = bytes × 0.001

To convert bytes to kilobytes in decimal SI, multiply the byte figure by 0.001 — equivalently, divide by 1000, or shift the decimal three places to the left. The relationship is exact in decimal SI and is the convention every modern operating system, programming-language standard library and cloud-storage vendor now uses on user-facing storage figures. The older binary "1 KB = 1024 bytes" convention persists in some legacy file-system code, particularly Windows builds before File Explorer's 2018 cutover and a handful of embedded operating systems, but is increasingly relabelled as KiB (kibibyte) under the IEC 60027-2 binary-prefix standard adopted in 1999. For mental math, "bytes ÷ 1000" lands the KB figure cleanly: 24,832 bytes is 24.8 KB, 384 bytes is 0.4 KB, 1,500,000 bytes is 1500 KB or 1.5 MB. The decimal SI roll-up is one of the cleanest data-conversion paths in modern IT.

Worked examples

Example 11000 B

One thousand bytes converts to exactly 1.000 KB in decimal SI. That is the canonical "1 KB" reference and matches the convention used by macOS, modern Linux file managers, every cloud-storage vendor billing dashboard and most modern programming-language standard libraries. The older binary interpretation of "1 KB = 1024 bytes" gives a 1000-byte file as 0.977 KB instead, with the 2.4% gap accounting for the persistent confusion between decimal-SI and binary kilobyte conventions.

Example 224832 B

A 24,832-byte file — a typical modern HTML document including inline CSS, the per-page document size for a clean static-site landing page — converts to 24.832 KB in decimal SI, typically rounded to 24.8 KB on a file-manager display or a Lighthouse performance-audit row. That is the figure on the macOS Finder size column, the Chrome DevTools Network panel size column, and the Lighthouse "page weight" audit summary.

Example 3384 B

A 384-byte payload — a typical HTTP request-header set including User-Agent, Accept, Cookie and Authorization headers — converts to 0.384 KB. That is the figure that appears on per-request API-gateway logging when the per-request unit is KB rather than bytes, and the figure that CDN edge-monitoring dashboards aggregate across millions of requests for header-overhead analysis. The byte-level figure is preserved internally; the KB roll-up appears on the dashboard.

B to KB conversion table

BKB
1 B0.001 KB
2 B0.002 KB
3 B0.003 KB
4 B0.004 KB
5 B0.005 KB
6 B0.006 KB
7 B0.007 KB
8 B0.008 KB
9 B0.009 KB
10 B0.01 KB
15 B0.015 KB
20 B0.02 KB
25 B0.025 KB
30 B0.03 KB
40 B0.04 KB
50 B0.05 KB
75 B0.075 KB
100 B0.1 KB
150 B0.15 KB
200 B0.2 KB
250 B0.25 KB
500 B0.5 KB
750 B0.75 KB
1000 B1 KB
2500 B2.5 KB
5000 B5 KB

Common B to KB conversions

  • 100 B=0.1 KB
  • 500 B=0.5 KB
  • 1000 B=1 KB
  • 5000 B=5 KB
  • 10000 B=10 KB
  • 50000 B=50 KB
  • 100000 B=100 KB
  • 500000 B=500 KB
  • 1000000 B=1000 KB
  • 5000000 B=5000 KB

What is a Byte?

One byte equals exactly 8 bits, encoding 2⁸ = 256 distinct values (0–255 unsigned, or −128 to +127 in two's-complement signed representation). The byte is the smallest individually-addressable unit of memory in essentially all modern computer architectures, and is the unit in which file sizes, memory capacities, and storage media capacities are reported. The IEC formal name for the 8-bit byte is the "octet" (IEC 60027-2:2005, IEC 80000-13:2008), used in international standards documents and in networking RFCs to disambiguate from historical machines where "byte" meant other widths. ASCII (ANSI X3.4-1968) encodes a single character in 7 bits within an 8-bit byte; UTF-8 (RFC 3629, 2003) encodes the full Unicode code-point repertoire in 1 to 4 bytes per code point, with the ASCII subset occupying 1 byte for backward compatibility. By IEC 80000-13, the symbol B denotes the byte and is distinguished from the bit (symbol b) by capitalisation alone — a typographic distinction that survives intact through internet-speed advertising in Mbps (megabits per second) and storage capacities in MB (megabytes).

The byte was coined in June 1956 by Werner Buchholz, an IBM engineer working on the IBM Stretch (7030), the company's first transistorised supercomputer project. Buchholz needed a name for an addressable group of bits smaller than a machine word, and proposed "byte" — deliberately respelled from "bite" so a single typographical slip could not collapse the new unit into "bit". The respelling was not cosmetic: in early documentation handwritten and typed in mixed lower- and upper-case, "bit" and "bite" were dangerously similar, and the "y" gave the word a unique fingerprint at a glance. Through the late 1950s the byte was variable-width — Stretch's byte ranged from 1 to 8 bits depending on the operation, and contemporary machines such as the IBM 7090 used 6-bit characters. The 8-bit byte was standardised by the IBM System/360 architecture announced on 7 April 1964, which addressed memory in 8-bit bytes and grouped four bytes into a 32-bit word. System/360's commercial success made the 8-bit byte the de facto industry standard, and ANSI X3.4-1968 (ASCII) ratified the 7-bit character within an 8-bit byte for North American computing. The IEC formalised the 8-bit byte as the "octet" in 1998 (IEC 60027-2) to remove the residual ambiguity in international standards work, although in everyday English-language usage "byte" universally means 8 bits. The byte's defining structural problem appeared once storage capacities scaled past the kilobyte: SI prefixes (kilo, mega, giga) are powers of 1000 by long-standing physics convention, but powers of 1024 are mathematically natural for byte-addressed memory and were used by every operating system from CP/M onwards. The IEC 80000-13 standard published in March 2008 introduced the unambiguous binary prefixes — kibibyte (KiB = 1024 B), mebibyte (MiB = 1024² B), gibibyte (GiB), tebibyte (TiB) — but adoption outside Linux distributions and a handful of standards-conscious vendors has been slow.

The byte is the foundational unit of digital information across every computing system in use. Character encoding is its most universal application: every plain-text file, source-code file, email body, JSON document and HTTP header is denominated in bytes, with ASCII assigning 1 byte per English-language character and UTF-8 using 1–4 bytes depending on the Unicode code point (Latin letters and digits remain 1 byte; Cyrillic and Greek 2 bytes; CJK ideographs 3 bytes; emoji and supplementary planes 4 bytes). File-system sizes, memory allocations, network buffer sizes and CPU cache lines are all reported in bytes or byte multiples. The byte is also where the binary/decimal prefix war originates and propagates. Storage manufacturers (Seagate, Western Digital, SanDisk, Samsung) follow the SI convention literally, advertising 1 TB = 10¹² = 1,000,000,000,000 bytes — the convention that gives the largest possible marketing number. Operating systems historically use binary multiples: Microsoft Windows reports a "1 TB" drive as 931 GB because Windows interprets "GB" as 2³⁰ = 1,073,741,824 bytes, exposing a 7.4% gap that has launched a generation of consumer-support escalations. Apple macOS realigned with the SI convention in OS X 10.6 Snow Leopard (2009), reporting drive capacities in decimal gigabytes that match the manufacturer's marketing. Linux distributions vary by tool: `ls -h` and `df -h` use binary kibibyte/mebibyte/gibibyte semantics with SI-style "K/M/G" symbols, while `ls --si` and the GNU `coreutils` documentation expose the IEC distinction explicitly. Network engineering, by long convention, uses decimal multiples for bandwidth (Mbps in millions of bits per second) — a convention covered in detail under the bit, mbps and gbps entries.

What is a Kilobyte?

One kilobyte (KB) equals 1,000 bytes under the SI decimal convention or 1,024 bytes (= 2¹⁰) under the historical binary convention used by operating systems and embedded-firmware tooling. The IEC 80000-13:2008 standard introduced the kibibyte (KiB) as the unambiguous name for 1,024 bytes, leaving "kilobyte" formally restricted to the decimal 1,000-byte meaning, but adoption outside Linux distributions and standards-conscious documentation has been limited. In practice, storage manufacturers and network engineers use 1 KB = 1,000 bytes; Microsoft Windows file managers and most legacy desktop software use 1 KB = 1,024 bytes; the resulting 2.4% gap is small at the kilobyte level but propagates upward — at the megabyte level the gap reaches 4.9%, at gigabyte 7.4%, and at terabyte 10.0%, the source of the famous "my 1 TB drive only shows 931 GB" complaint covered under the byte and tb entries. The kilobyte symbol KB (uppercase B) is distinct from the kilobit symbol Kb (lowercase b), an 8:1 ratio whose typographic ambiguity is the dominant unit-confusion source in network-versus-storage documentation.

The kilobyte entered general computing usage in the 1960s as the natural multiple of the 8-bit byte for the early-mainframe and early-minicomputer era, and became the consumer-facing unit of digital storage roughly from the late 1970s through the mid-1990s — the era of personal microcomputers, dial-up bulletin boards, and removable magnetic media. Through that period the kilobyte was the unit users encountered daily: a TRS-80 Model I shipped with 4 KB of RAM in 1977, the original IBM PC offered 16–64 KB in 1981, and the Commodore 64 took its name from its 64 KB of addressable memory. The kilobyte's defining hardware artefact is the 3.5-inch high-density floppy disk introduced by Sony in 1987 and standardised across the PC industry by the early 1990s. The disk's marketed capacity of "1.44 MB" is one of the most famous unit-labelling errors in computing history: the formatted capacity is 2,880 sectors of 512 bytes each, totalling 1,474,560 bytes — which is exactly 1,440 KiB (using the binary 1 KiB = 1,024 bytes), or 1.4400 mebibytes when correctly labelled. Marketing collapsed the figure to "1.44 MB" using a hybrid convention nobody else uses: 1,440 × 1,024 bytes, mixing decimal thousands at the megabyte level with binary kilobytes underneath. The actual decimal value is 1.474 MB; the actual binary value is 1.406 MiB; the marketed "1.44 MB" is neither. This single label trained an entire generation of PC users to ignore unit-suffix precision, and is the cleanest single example of the binary/decimal mess at the kilobyte level — small here (a 2.4% gap between 1 KB decimal and 1 KiB binary), but compounding upward through every higher prefix as data scales grew.

Embedded systems and microcontroller firmware are the kilobyte's primary active domain in 2026. The Arduino Uno R3, the most widely-deployed hobbyist microcontroller, ships with 32 KB of flash program memory and 2 KB of SRAM; the ESP8266 and ESP32 Wi-Fi modules used in the IoT-product industry expose flash in 1 MB or 4 MB packages partitioned into 4 KB sectors that firmware-development toolchains report and erase in kilobyte units. The STM32 family from STMicroelectronics, the dominant 32-bit microcontroller line in industrial and automotive applications, spans 16 KB to 2 MB of flash with KB-precision linker scripts for boot loaders, bootloader-update partitions, and OTA-update staging buffers. Real-time operating system images for safety-critical avionics and automotive ECUs (FreeRTOS, VxWorks, AUTOSAR-classic stacks) are routinely sized in tens to hundreds of KB and qualified against KB-level memory budgets per ISO 26262 and DO-178C functional-safety processes. Email and web infrastructure denominate routine payloads in kilobytes. A typical SMTP message body without attachments runs 1–10 KB; the Base64 MIME encoding required for binary attachments adds 37% overhead, so a 100 KB photograph travels as ~137 KB on the wire. A favicon.ico at 16×16 or 32×32 pixels is typically 1–15 KB; a stock CSS stylesheet for a content-managed website runs 10–50 KB minified; a single JavaScript framework chunk after tree-shaking runs 30–80 KB compressed. HTTP/2 and HTTP/3 header-compression budgets, browser network-panel waterfall views, and CDN-billing tiers all expose payload sizes in KB, and front-end performance budgets for the 2024 Core Web Vitals targets (Largest Contentful Paint resource size) are routinely specified in tens of KB per critical-path resource. Retrocomputing and legacy-systems work — vintage-PC restoration, BBS archiving, demoscene productions, vintage-game ROM preservation through MAME and the No-Intro database — denominate ROM and disk images in KB exclusively, since the original media (cartridges, floppy disks, cassette tapes) were sized in KB. The Internet Archive's software-library uploads and the various preservation projects organised through the Software Preservation Network maintain KB-precision metadata for every artefact.

Real-world uses for Bytes to Kilobytes

File-manager byte-to-KB display in operating systems

Modern operating systems — macOS Finder, Windows File Explorer, Linux GNOME Files, Linux KDE Dolphin — store file-size metadata in raw bytes from the file-system inode and display the value in KB, MB, GB or TB depending on the file's magnitude. A 24,832-byte file is shown as 24.8 KB by macOS Finder (decimal SI interpretation since OS X 10.6 in 2009); the same file is shown as 24.2 KB by older Windows versions using the binary 1024-byte interpretation. The display unit choice and the underlying conversion factor have been a source of OS-vs-OS reporting discrepancies that file-system designers continue to align over time.

Email and chat client per-message byte tallies

Email clients (Outlook, Apple Mail, Gmail web client, Thunderbird) and team-chat clients (Slack, Microsoft Teams, Discord) display per-message size in bytes and KB in the per-message metadata view: a typical text-only email is 2,000-4,000 bytes (2-4 KB) including all headers, while a message with one inline image and a few hundred words of text is 200,000-400,000 bytes (200-400 KB). The bytes-to-KB conversion runs on every message-list rendering, with the unit-choice changing dynamically based on per-message size: messages under 1 KB stay in bytes, messages from 1 KB to 1000 KB switch to KB, messages above 1000 KB switch to MB.

Web performance audits and per-resource byte-count reporting

Web performance auditing tools (Lighthouse, WebPageTest, Chrome DevTools Network panel, GTmetrix) measure individual resource sizes in raw bytes from the HTTP response and roll up to KB for human-readable per-resource reporting. A typical hero-image JPEG is 80,000-200,000 bytes (80-200 KB), a CSS file is 8,000-30,000 bytes (8-30 KB), an HTML document is 20,000-50,000 bytes (20-50 KB), and the Lighthouse "Reduce unused JavaScript" audit reports per-script byte-count figures in KB to guide optimisation decisions. The bytes-to-KB conversion runs on every per-resource performance-audit row.

API payload size monitoring and per-request KB billing

Cloud API gateways (AWS API Gateway, Cloudflare Workers, Azure API Management) and serverless function platforms (AWS Lambda, Cloudflare Workers KV, Vercel Edge Functions) bill per-invocation data transfer at the KB level but measure underlying per-request payload sizes in raw bytes. A typical JSON API response is 800-3,000 bytes (0.8-3.0 KB), a GraphQL query response is 2,000-10,000 bytes (2-10 KB), and the per-request KB-charged figure rolls up the underlying byte count using the decimal SI 1 KB = 1000 bytes interpretation. Cost-monitoring dashboards (AWS Cost Explorer, Cloudflare Analytics) display per-request KB figures with millions-of-requests aggregations.

When to use Kilobytes instead of Bytes

Use kilobytes whenever the destination is a human-readable file-size, email-attachment-size, web-resource-size or API-payload-size display where the figure naturally falls in the 1 KB to 1000 KB range. Below 1 KB the bytes figure is more legible; above 1000 KB the MB figure becomes more readable. Stay in bytes when the precision is at the file-system inode level, the database-row level, the protocol-header byte-count level, or any forensic, audit or low-level diagnostic use where individual byte counts matter. Modern file managers and storage dashboards switch automatically between bytes, KB, MB and GB based on file magnitude, with the user typically not seeing the per-conversion decision. The bytes-to-KB conversion is the lowest-step roll-up in the data-storage scale hierarchy and is one of the most-run conversions in everyday IT operations.

Common mistakes converting B to KB

  • Mixing decimal SI (1 KB = 1000 bytes) and binary IEC (1 KiB = 1024 bytes) interpretations within a single calculation. A 1,000,000-byte file is 1000 KB or 977 KiB depending on which standard applies, and tools that use one convention to compute the input and the other to compute the output produce visible inconsistency in the displayed figure. Modern systems are converging on decimal SI for KB/MB/GB and binary IEC for KiB/MiB/GiB; mixing the two within one tool causes the persistent "my hard drive shows less than I bought" complaint.
  • Assuming all platforms use the same byte-to-KB convention. macOS, modern Linux distributions and all cloud-storage vendor dashboards use decimal SI; Windows historically used binary (1 KB = 1024 bytes) until File Explorer aligned with decimal SI in modern builds; iOS and Android both use decimal SI. Cross-platform file-size displays therefore agree by convention now, but legacy Windows screenshots, older third-party utilities and some embedded OS displays may still report binary KB without flagging the convention.

Frequently asked questions

How many bytes in a kilobyte?

One kilobyte equals exactly 1000 bytes in decimal SI, the convention used by every modern operating system, cloud-storage vendor and programming-language standard library. The older binary interpretation of "1 KB = 1024 bytes" persists in some legacy code but is increasingly relabelled as KiB (kibibyte) under IEC 60027-2. The two interpretations differ by 2.4% and the disambiguation is essential whenever a file-size or storage-capacity figure crosses a system boundary.

How many KB is 1000 bytes?

One thousand bytes equals exactly 1.000 KB in decimal SI — the canonical "1 KB" reference. In the older binary interpretation the same 1000 bytes equals 0.977 KiB (kibibyte), since 1 KiB equals 1024 bytes rather than 1000. Modern file managers, cloud-storage dashboards and web-audit tools all use the decimal-SI convention by default.

Why does my hard drive show less capacity than the box says?

Hard drive manufacturers use decimal SI for capacity figures (1 TB = 1,000,000,000,000 bytes) but Windows historically displayed capacity in binary (treating 1 TB as 2^40 bytes, which equals 1.0995 trillion bytes). The 9.95% gap meant a "1 TB" hard drive displayed as 909 GB on Windows. Modern Windows builds use decimal SI for capacity and now agree with the manufacturer figure, but the gap was a long-running consumer-confusion source through the 2000s and 2010s.

Quick way to convert bytes to KB in my head?

Divide the byte figure by 1000 — a three-decimal-place shift to the left. For 24,832 bytes that gives 24.832 KB, typically rounded to 24.8 KB on a file-manager display. For 384 bytes that gives 0.384 KB, typically displayed as bytes rather than KB because the figure is below the 1 KB threshold most file managers use as the unit-switch trigger.

What is the difference between KB and KiB?

KB is the kilobyte under decimal SI (1 KB = 1000 bytes), used by modern operating systems, cloud-storage vendors and programming-language standard libraries. KiB is the kibibyte under IEC 60027-2 (1 KiB = 1024 bytes), used in technical and forensic contexts where the binary nature of computer memory matters. The two differ by 2.4% and the prefix choice signals which convention applies. Most user-facing file-size displays use KB and the decimal-SI convention; technical RAM-capacity specs use KiB and the binary convention.

How many bytes in a typical email message?

A text-only email message is typically 2,000-4,000 bytes (2-4 KB) including all SMTP/MIME headers; a message with one inline image and a few hundred words of body text is 200,000-400,000 bytes (200-400 KB); a message with multiple PDF attachments can be several MB or more. Email clients display the per-message size dynamically, switching from bytes to KB at 1 KB and from KB to MB at 1000 KB. The Slack and Microsoft Teams chat clients display per-message size in similar dynamic units.

Why is the SI prefix "kilo" lowercase but the unit symbol "KB" uppercase?

Strictly under SI prefix conventions the kilo prefix is lowercase k (1 km = 1 kilometre, 1 kg = 1 kilogram), and the unit symbol should be lowercase: 1 kB. In data-storage practice, however, the uppercase K became established through historical convention and the alignment with the binary "K" used in early computing (where K originally meant 2^10 = 1024). Modern usage tolerates either case, with cloud-storage and most file-manager displays settling on uppercase KB despite the SI inconsistency.