Text size calculator
Get the size of a text in bytes (B), kilobytes (KB) or megabytes (MB).
About this tool
The text size calculator shows how much space a piece of text takes up: its size in bytes, kilobytes (KB), kibibytes (KiB) and megabytes (MB) when saved as UTF-8, plus the number of characters.
How to use the text size calculator
- Type or paste the text.
- Read the sizes, which update as you type.
Why bytes and characters differ
In UTF-8, the standard encoding on the web, plain English letters, digits and punctuation take one byte each. Accented letters like é take two, most other alphabets two or three, and emoji usually four. So a 100-character message can be anything from 100 bytes to 400 or more.
When the size matters
- Byte limits: some systems, such as storage quotas, message queues and older databases, limit bytes rather than characters, so text with emoji or non-Latin letters fills them faster.
- SMS messages fit 160 plain characters, but only 70 once any emoji or special character is included.
- APIs and forms may reject bodies over a set size.
- Page weight: large blocks of inline text, JSON or SVG add to how much a page has to download.
KB here means 1,000 bytes and KiB 1,024 bytes, the two ways sizes are counted. The text never leaves your browser.
Similar tools
Duplicate lines remover
Easily remove duplicate lines from a text.
Text to speech
Turn any text into speech, using the voices built into your browser.
IDN Punycode converter
Easily convert international domain names (IDN) to Punycode and back.
Case converter
Convert your text to any kind of text case, such as lowercase, UPPERCASE, camelCase and more.
Character counter
Count the characters, words, sentences and lines of a given text.
List randomizer
Easily shuffle a list of text lines into a random order.