Character Counter: Count Characters, Words and Bytes

  • Free
  • No sign-up
  • Runs in your browser
  • Last updated 2026-10-07
Report a problem

Paste or type text to see its length right away, including a separate count that ignores spaces.

Characters
0
Without spaces
0
Words
0
Lines
0
UTF-8 bytes
0

Everything you enter is processed in your browser and is never sent to a server.

How to use

  1. Type or paste your text into the box.
  2. Read the counts below the box. They update as you type.
  3. Use the count that matches your limit: with spaces, without spaces, words or bytes.

Examples

Hello, world!
→ 13 characters, 12 without spaces, 2 words
안녕 하세요
→ 6 characters, 5 without spaces, 2 words, 16 UTF-8 bytes
Each Hangul syllable takes 3 bytes in UTF-8, and the space takes 1.
Line one⏎Line two (two lines)
→ 17 characters, 14 without spaces, 4 words, 2 lines
A line break counts as one character and as whitespace.

How it works

The counts are computed from the exact text in the box:

  • Characters are Unicode code points, including spaces and line breaks.
  • Without spaces removes every whitespace character (spaces, tabs, line breaks) before counting.
  • Words are groups of non-whitespace text separated by whitespace.
  • Lines are the pieces of text separated by line breaks. Empty text has zero lines.
  • UTF-8 bytes is the size of the text when encoded as UTF-8, the encoding used by most websites.

Because the tool counts code points rather than visible symbols, an emoji built from several code points, such as a family emoji, counts as more than one character.

Sources

Frequently asked questions

Do spaces count as characters?
Yes, in the main count. The 'without spaces' count removes every space, tab and line break.
How are words counted?
Words are runs of text separated by whitespace. Languages written without spaces between words, such as Chinese or Japanese, will show low word counts.
Why do bytes differ from characters?
Characters are not all the same size in UTF-8. Basic Latin letters take 1 byte, most Korean, Chinese and Japanese characters take 3 bytes, and many emoji take 4.
Why might another tool show a different number?
Tools differ in how they treat line breaks, emoji and combining marks. This tool counts Unicode code points, so a single emoji made from several parts can count as more than one character.
Is my text uploaded?
No. Counting happens in your browser and the text is never sent anywhere.

Last updated: