Qgenx Tools

Character & Byte Counter

Count characters with and without spaces, exact UTF-8 byte size, lines, and SEO/social character limits locally in your browser.

Runs in your browser
0
Chars
0
No spaces
0 B
UTF-8 bytes
0
Lines
Title 0 / 60 Meta 0 / 160 X 0 / 280
Spaces: 0

About this tool

Character count reads native string length, non-whitespace count strips /\s/g, and UTF-8 byte size uses the browser’s native TextEncoder().encode() API—handling multi-byte accents, CJK characters, and emoji accurately in under 10 ms.

How to use the character counter

  1. Paste or type your text into the box. The counts update instantly.
  2. Read the characters with spaces, the characters without spaces, and the UTF-8 byte total.
  3. Compare the figures with the limit you need, such as a title, a meta description or a message.
  4. Copy or download the text when it fits, or use Clear to empty the box.

Characters, graphemes and bytes

A character is what a person sees as one symbol. The counter counts letters, digits, spaces, punctuation and line breaks as characters. Counting with and without spaces matters because many platforms set a limit on the full string, while some count only visible text.

Bytes are how the text is stored and sent. UTF-8, the standard used on the web, uses one byte for basic Latin letters, two for many accented letters, three for most other scripts and four for many emoji. A database column set to 255 bytes can hold fewer than 255 characters if your text is in another language.

A worked example

The word café is four characters but five bytes, because the é takes two bytes in UTF-8. A rocket emoji, written as 🚀, is one character but four bytes. If you paste the sample text, you will see a character count above 400 and a byte count a little higher, which shows exactly how accents and emoji change the numbers.

  • Check a headline is under 60 characters before you publish it on a news page.
  • Confirm a short message fits a 280 character social post, including spaces and line breaks.

Who uses a character counter

  • Marketers writing titles, descriptions and social posts with strict limits.
  • Developers checking database fields and API payloads that count bytes, not characters.
  • Translators checking that a translation fits the space allowed in a user interface.
  • Students and writers working to a character limit set by a form or an exam.
  • Support teams drafting replies that must fit a messaging channel.

Tips and limits

  • A line break is one character. Count the text as it will be sent, with its breaks, not as it looks on screen.
  • Emoji and some symbols can count as two characters on some platforms, because they are made of two code points. This tool shows the code points the browser sees.
  • Trailing spaces are counted. Use the Whitespace Cleaner first if your text has stray spaces.
  • Your text stays in this browser. The counter sends nothing to our server.
  • Limits differ between platforms and can change. Confirm the current limit on the platform itself before you rely on it.

Frequently asked questions

ASCII characters take 1 byte in UTF-8, while accented letters (like é) take 2 bytes and em-dashes or symbols take 3–4 bytes.

Related browser tools