Two documents can both run three pages, yet one is a few kilobytes and the other several megabytes. The difference is rarely the words. Document size comes from three things: the characters, the structure around them, and anything embedded, followed by compression.
This guide works through the three cases in the title with formulas you can check. Plain text is characters times bytes per character. A table saved as text adds delimiters. A formatted document stored as a package adds parts that compress separately. Use the storage units calculator to convert your results.
Plain text: characters times bytes per character
The size of a text file is the number of characters multiplied by the bytes each one needs. That second number depends on the encoding. RFC 20 suggests carrying standard 7-bit ASCII in "an 8 bit byte whose high order bit is always 0," so each ASCII character takes one byte.
UTF-8 extends this to every character. RFC 3629 sets the number of bytes (the RFC says octets) by the character's code point:
| Code point range | Bytes per character | Example |
|---|---|---|
| U+0000 to U+007F | 1 | a (U+0061) |
| U+0080 to U+07FF | 2 | é (U+00E9) |
| U+0800 to U+FFFF | 3 | € (U+20AC), 中 (U+4E2D) |
| U+10000 to U+10FFFF | 4 | U+1D11E, a musical symbol |
RFC 3629 adds that "a plain ASCII string is also a valid UTF-8 string," so English text without accents costs one byte per character in either encoding.
Worked example. Example: a 3,000-word document with 6 characters per word, counting the space after each word. That is an assumption, not an average.
characters = 3,000 × 6 = 18,000
bytes = 18,000 × 1 = 18,000 bytes = 18 KB = 17.58 KiB
If every character took two bytes, the same text would be 36,000 bytes. RFC 1951 states that English text usually compresses by a factor of 2.5 to 3 with DEFLATE. Applied to this example, 18,000 ÷ 2.5 = 7,200 bytes and 18,000 ÷ 3 = 6,000 bytes. The compression ratio calculator turns those two sizes into a ratio and a percentage saved.
Spreadsheets saved as text
A comma-separated values file stores a table as plain text. RFC 4180 is an informational document that describes the format most implementations follow, not a formal standard. It says each record is on its own line, "delimited by a line break (CRLF)," and that fields are "separated by commas." A line break here is two characters, so it costs two bytes. Fields that contain commas, line breaks or double quotes are enclosed in double quotes.
That gives a formula for ASCII-range data:
bytes = rows × (columns × average field bytes + (columns − 1) + 2)
The columns − 1 term counts the commas and the 2 counts the line break.
| Rows | Bytes per row | File size | In KiB |
|---|---|---|---|
| 1,000 | 89 | 89,000 bytes (89 KB) | 86.91 |
| 10,000 | 89 | 890,000 bytes (890 KB) | 869.14 |
| 100,000 | 89 | 8,900,000 bytes (8.9 MB) | 8,691.41 |
Example inputs for the table: 8 columns averaging 10 bytes per field, so 8 × 10 + 7 + 2 = 89 bytes per row. Doubling the field length to 20 bytes gives 169 bytes per row, so 10,000 rows become 1,690,000 bytes. That is 1.90 times the original, not 2 times, because the commas and line breaks do not grow with the data.
A CSV file holds only the field text. Formulas, colors, charts and pictures are not part of it, so a spreadsheet saved in a richer format will not match this arithmetic.
Rich text and packaged documents
Formatting needs data that describes it, and anything embedded brings its own bytes. Some document formats store all of this as a package. The OpenDocument specification says a package "shall be a Zip file," and that each file in it "shall be non compressed (STORED) or compressed using the 'deflate' (DEFLATED) algorithm." A package must also contain a manifest file named "META-INF/manifest.xml."
A ZIP file compresses each entry on its own and carries headers for each one, as described in how ZIP files work. The size of such a document is therefore roughly the sum of its compressed parts plus that header overhead. A part that was already compressed, such as a picture, will not shrink much more, for the reasons in why some files barely shrink.
Embedded pictures follow the pixel formula. Example: a 1,920 × 1,080 picture at 24 bits per pixel is 1,920 × 1,080 × 24 ÷ 8 = 6,220,800 bytes before its own compression. The image file size calculator does this step.
Worked example. Example: the parts of a packaged document total 2,400,000 bytes and the finished file is 600,000 bytes.
ratio = 2,400,000 ÷ 600,000 = 4 : 1
percent saved = (1 − 600,000 ÷ 2,400,000) × 100 = 75%
What moves the number
| Driver | Effect on size | How to estimate |
|---|---|---|
| Number of characters | Linear | Characters × bytes per character |
| Encoding and alphabet | 1 to 4 bytes per character in UTF-8 | The RFC 3629 table above |
| Rows and columns of data | Linear, plus delimiters | The CSV formula |
| Embedded pictures | Pixels × bits ÷ 8 before compression | The image formula |
| Packaging and compression | Each part shrinks separately | Measure original and finished sizes |
Start with the largest driver. For a text-only file, the character count dominates, so the first formula is enough. For a document that contains pictures, compute the pixel figure for each one and compare it with the text figure. If the pictures are far bigger, trimming words will barely change the file.
Common mistakes
- Treating characters and bytes as the same. Outside the ASCII range, UTF-8 uses 2 to 4 bytes per character. Count characters first, then apply the right byte width.
- Forgetting the delimiters. In a 100,000-row table, line breaks alone cost 200,000 bytes. Include the commas and line breaks in the estimate.
- Expecting a spreadsheet file to match its CSV size. The two formats store different things. Estimate each one with its own method.
- Deleting words to shrink a picture-heavy document. One 6,220,800-byte picture outweighs the 18,000-byte text from the example by a wide margin. Shrink the pixels first.
- Mixing KB and KiB when comparing. 89,000 bytes is 89 KB but 86.91 KiB. Pick one family before comparing two files, and see GB vs. GiB explained for the full pairing.
FAQ
How many bytes is a page of plain text?
It depends on the characters per page. Example: 3,000 ASCII characters on a page take 3,000 bytes in ASCII or UTF-8.
Why did a text file grow after I added accented letters?
In UTF-8, a letter such as é is in the range U+0080 to U+07FF and takes 2 bytes, not 1. A hundred of them add 100 bytes beyond what plain letters would use.
Is a CSV file always smaller than a spreadsheet file?
No rule says so. A CSV holds only field text, and its size follows the formula above. A packaged file is a set of separately compressed parts, so its size depends on what those parts contain.
Does ZIP packaging make a document small?
It compresses each part, and the specification allows DEFLATE or no compression per file. How much it saves depends on the content of each part.
Sources
- IETF, RFC 3629: UTF-8, a transformation format of ISO 10646. Accessed November 6, 2026.
- IETF, RFC 20: ASCII format for Network Interchange. Accessed November 6, 2026.
- IETF, RFC 4180: Common Format and MIME Type for Comma-Separated Values (CSV) Files. Accessed November 6, 2026.
- OASIS, Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 2: Packages. Accessed November 6, 2026.
- IETF, RFC 1951: DEFLATE Compressed Data Format Specification version 1.3. Accessed November 6, 2026.



