Text Size Calculator
Calculate the byte size of your text in UTF-8, UTF-16, and ASCII encodings. Also shows character count, word count, and line count.
How to use Text Size Calculator
- Paste or type your text into the input box.
- View the live metrics: characters, words, lines, and byte sizes.
- Edit your text and watch the metrics update instantly.
What is Text Size Calculator?
This tool calculates the exact byte size of text in different character encodings. UTF-8 uses 1-4 bytes per character, UTF-16 uses 2 or 4 bytes, and ASCII uses 1 byte per character (only for characters below U+0080).
It also provides a quick summary of character count, word count, and line count, making it useful for developers checking payload sizes, content writers monitoring length, and anyone working with text encoding constraints.
FAQ
- What's the difference between UTF-8 and UTF-16?
- UTF-8 uses 1 byte for ASCII characters and up to 4 bytes for other Unicode characters. UTF-16 uses 2 bytes for most characters and 4 bytes for supplementary characters (emoji, rare scripts).
- Why is the ASCII size sometimes N/A?
- ASCII only supports characters with code points below 128. If your text contains any Unicode characters (accented letters, emoji, non-Latin scripts), it cannot be represented in pure ASCII.