a11y.skipToMainContent
1

文本大小计算器

计算您在 UTF-8, UTF-16 和 ASCII 编码中文本的字节大小 。 还显示字符数、字数和行数.

Characters
0
Words
0
Lines
0
UTF-8 Bytes
0
UTF-16 Bytes
0
ASCII Bytes
0
ASCII Compatible
Was this tool helpful?
Send output to:
Advertisement

How to use Text Size Calculator

  1. 粘贴或键入输入框中.
  2. 查看活度量度:人物,文字,行,和字节大小.
  3. 编辑您的文本并立即观看测量值更新 .

{姓名}是什么来着?

此工具计算不同字符编码中文本的精确字节大小. UTF-8每个字符使用1-4个字节,UTF-16使用2或4个字节,ASCII每个字符使用1个字节(仅针对U+0080以下字符).

它还提供了字符计数,单词计数和行数的快速摘要,使得它可用于开发者检查有效载荷大小,内容写入器监测长度,以及任何从事文本编码限制工作的人.

Advertisement

FAQ

UTF-8和UTF-16有什么区别??
UTF-8对ASCII字符使用1字节,对其他Unicode字符使用最多4字节. UTF-16对大多数字符使用2字节,对补充字符使用4字节(emoji,稀有脚本).
为什么有时ASCII的大小是非/A?
ASCII只支持代码分数低于128的字符. 如果您的文本含有任何Unicode字符(cented letters, emoji, 非拉丁文脚本),则无法以纯 ASCII 表示.

Related tools

Author

1S
1Stop Tools"The Toolsmith"

Editorial Team at 1Stop Tools

The 1Stop Tools editorial team tests, reviews, and curates every utility on this platform. We believe tools should be free, fast, and private, with no accounts, no uploads, and no tracking. Every tool on this site runs entirely in the browser, and we test on multiple devices and browsers to ensure reliability for everyone, everywhere, on any connection.

Advertisement