تخطي إلى المحتوى الرئيسي
FreeOnlineTools Go
العربية

عدّاد الأحرف

عدّ الأحرف والكلمات والجمل والفقرات في نصك. مجاني، عبر الإنترنت، بدون رفع، خاص تماماً.

Local processing
0
Characters
0
Characters (no spaces)
0
Words
0
Sentences
0
Paragraphs
0
Lines

What is عدّاد الأحرف?

A character counter measures the length of input text in characters (with and without spaces), words, sentences, and paragraphs. These counts are essential when content must fit a fixed limit — meta descriptions, tweets, SMS messages, database fields, and form inputs all have character caps. The counter updates instantly as the user types, with no upload.

How It Works

The tool reads the input string and computes .length for the total character count (including spaces). The without-spaces count subtracts all whitespace characters. Words are counted by splitting on whitespace sequences and discarding empty fragments. Sentences are approximated by terminal punctuation (. ! ?) followed by a boundary. Paragraphs are split on double newlines. All metrics are computed in a single O(n) pass locally.

Common Use Cases

  • Writing SEO titles and meta descriptions — stay under 60 and 160 character limits
  • Composing tweets or SMS — fit within 280 or 160 character caps
  • Filling form fields with limits — monitor input against a maxlength in real time
  • Checking database column capacity — confirm text fits a VARCHAR(n) before insert

Technical Details

Character count uses the string's .length property (UTF-16 code units; surrogate pairs count as 2). For accurate Unicode code-point counts, the tool iterates with a code-point iterator. Word splitting uses a Unicode whitespace regex. Sentence detection is heuristic and may miscount abbreviations. All processing is local and runs in O(n) time.

How to Use

Enter your input above. The result updates automatically. Use the copy button to copy the result.

Privacy

All processing happens in your browser. Your data is never uploaded to any server.

FAQ

Is my text uploaded?

No. Counting happens locally in your browser. Your text never leaves your device.

Does it count spaces?

Yes. The character count includes spaces. A separate count without spaces is also shown.

How are CJK (Chinese/Japanese/Korean) characters counted?

The .length property counts UTF-16 code units, so surrogate pairs (emoji, rare CJK) count as 2. For most CJK text within the BMP, each character counts as 1. Words in CJK text are approximated by character count since CJK does not use spaces between words.

Related Tools