← All free tools Text tools

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

  1. Type or paste the text.
  2. 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.

Have a project in mind?

Have a brand or a product to grow?