Text Toolbox
All Text Tools

Character N-Gram Counter

Count character-level n-grams in any text. Analyze bigrams, trigrams, and higher-order character sequences for linguistic analysis.

Chars: 0 Words: 0 Lines: 0

About This Free Online Character N-Gram Counter

Our free online Character N-Gram Counter extracts and counts character-level n-grams from any text. Analyze bigrams (2-letter sequences), trigrams (3-letter sequences), or any n-gram length up to 10 characters. See which character combinations appear most frequently in your text. Useful for linguistics research, stylometric analysis, cryptography, and pattern recognition in text. All processing runs in your browser.

Features of Our Character N-Gram Counter

  • Configurable n-gram size (1 to 10)
  • Frequency-sorted results table
  • Count and percentage for each n-gram
  • Case-sensitive and case-insensitive modes
  • Filter by minimum frequency
  • Real-time analysis as you type
  • 100% private — browser-only processing

How to Use the Character N-Gram Counter

Using this tool is simple and requires no signup or registration. Follow these steps:

  1. Paste your text into the input area.
  2. Choose the n-gram size (e.g., 2 for bigrams, 3 for trigrams).
  3. Toggle case sensitivity and adjust minimum frequency as needed.
  4. Browse the frequency table to see the most common character sequences.

Frequently Asked Questions About Character N-Gram Counter

What are character n-grams used for?

Character n-grams are used in linguistics (stylometry, authorship attribution), cryptography (frequency analysis), NLP (language modeling), and text classification.

What is the difference between bigrams and trigrams?

Bigrams are sequences of 2 characters (e.g., "th", "he"), trigrams are sequences of 3 characters (e.g., "the", "and"). Higher n-grams capture longer patterns.

Why would I use case-insensitive mode?

Case-insensitive mode treats "The" and "the" as containing the same n-grams. This is useful for standard frequency analysis where case differences are not meaningful.

Why Choose Text Toolbox?

Text Toolbox provides free, private, and instant online text tools. Unlike other text utility websites that require signup accounts or send your data to servers, all our tools process your text entirely in your browser. This means your content never leaves your device — we cannot see it, store it, or share it. Our tools are fast, lightweight, and work on any device with a modern web browser.

Related Free Online Tools