πŸ”’ Character Counter

Counts characters, bytes, lines, and words as you type.

Chars 0 Excl. spaces 0 Bytes (UTF-8) 0 Lines 0 Words 0

How to use

  1. Type your text.
  2. Character, byte, line, and word counts update automatically as you type.

🎯 Use Cases

Example

Input
Hello, 세계!
D3v 2026
Output
Chars 19
Excl. spaces 16
Bytes (UTF-8) 23
Lines 2
Words 4

Counts for a two-line input mixing Korean, English, and digits. The Korean word "세계" is 3 bytes per character, so the 19 characters total 23 bytes in UTF-8, and 16 characters remain once whitespace is excluded.

UTF-8 bytes per character type

Character typeBytes per charExample
ASCII letters/digits/basic symbols1 byteA, 1, !
Korean (Hangul syllables)3 bytesκ°€, μ„Έ, 계
Most emoji4 bytesπŸ˜€, πŸŽ‰
Japanese Hiragana/Katakana3 bytesあ, γ‚’
Chinese characters (Hanzi)3 bytesδΈ­, ζ–‡

Character count and byte count aren't the same thing. In systems that enforce byte-based limits β€” DB columns, SMS sending β€” keep in mind that non-ASCII text like Korean or Chinese can take up nearly 3Γ— the space of English text.

FAQ

Does the character count include spaces?
"Characters" includes spaces, while "Excl. spaces" excludes all whitespace characters.
What encoding is the byte count based on?
It's based on UTF-8 encoding. Non-ASCII characters like Korean typically take up 3 bytes per character β€” different from encodings like EUC-KR (2 bytes).
Are emoji and special characters counted correctly as one character?
In most cases, yes. This tool counts using the spread syntax ([...text]), which respects surrogate pairs β€” so characters made of two UTF-16 code units, like many emoji, are still correctly counted as one character.
Is my text stored anywhere?
No. It's calculated in real time entirely within your browser.

More Text Tools

πŸ“
Markdown Preview
Live-preview Markdown as HTML
πŸ”—
URL Encoder/Decoder
Percent-encode/decode URL characters
✏️
Find & Replace
Search & replace with regex support
πŸ†š
Text Diff
Compare two texts line by line
↕️
List Sorter
Sort a list & remove duplicates
πŸ“§
Email Extractor
Extract & dedupe emails from text
πŸ” 
Case Converter
Convert to UPPER/lower/Title Case
πŸ”€
Fullwidth/Halfwidth Converter
Convert fullwidth chars ↔ halfwidth ASCII
🈚
Unicode Inspector
Check code points & look up characters
πŸ”Ÿ
Text to Decimal
Convert text ↔ decimal code points
🧾
Text to Hex
Convert text ↔ UTF-8 byte hex
0️⃣
Text to Binary
Convert text ↔ UTF-8 byte binary
πŸ”‘
ASCII Art Generator
Turn text into an ASCII art banner