Skip to content
UniKit

Text size calculator

Calculate actual UTF-8 byte size and show character and line counts.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Text

Text size

Calculated from actual UTF-8 bytes.

Enter text to calculate its size

Bytes: 0 · KiB: 0 · Characters: 0 · Lines: 0

What this tool does

  • Estimate text storage size.
  • Compare UTF-8 size for Chinese and English text.
  • Check character and line totals together.

Example

Input

你好

Output

6 bytes (0.01 KiB)

TextEncoder calculates bytes; Unicode character count is reported separately.

Frequently asked questions

Do Chinese and English use the same size?

No, Chinese characters usually use three UTF-8 bytes.

How is KiB calculated?

Bytes divided by 1024, displayed to two decimals.

How are emoji counted?

By their actual UTF-8 bytes from TextEncoder.

Keywords:文本大小text sizeUTF-8 bytesbyte calculatortext statistics

Related tools