
Text Concordance Generator
Generate a Keyword-in-Context (KWIC) concordance and word frequency index from any text with configurable left/right character window and case matching.
Open toolSelect your N-gram window size (1 to 5), word or character granularity, and stopword mode to extract and rank every contiguous n-gram with frequency and probability metrics.
Enter the inputs, then select Generate N-Grams.
Result will appear here
The generator tokenizes your input text, slides a window of size $N$ across the token stream, tallies exact occurrences, and sorts unique n-grams by descending frequency.
Count(T, N) = |T| - N + 1; SharePct(g) = (Freq(g) / (|T| - N + 1)) * 100.
Reports total tokens, total n-gram windows, unique n-grams, and a ranked frequency table.
How different N-gram lengths are used in search keyword extraction, computational linguistics, and text mining.
| N-Gram Order | Window Length | Example Output | Primary SEO & NLP Application |
|---|---|---|---|
| Unigram (N = 1) | 1 token | 'search', 'intent' | Term frequency (TF) auditing and vocabulary richness. |
| Bigram (N = 2) | 2 tokens | 'search engine', 'search intent' | Core 2-word topic compound discovery and collocation analysis. |
| Trigram (N = 3) | 3 tokens | 'search engine optimization' | Long-tail keyword phrase extraction and boilerplate detection. |
| 4-Gram / 5-Gram | 4 - 5 tokens | 'technical search engine indexing' | Exact-match query clustering and duplicate phrase auditing. |
Generate ranked n-gram tables in three steps.
Pick Bigrams (N=2) or Trigrams (N=3) for multi-word phrase discovery, or Character mode for substring analysis.
Run the generator to inspect top repeating n-grams, counts, and percentage shares.
Examples of bigram and trigram extraction on SEO copy.
Identifies 'search engine' (2 hits, 10.0%) and 'search intent' (2 hits, 10.0%) as the top recurring 2-word compounds across 21 tokens (20 bigram windows).
Surfaces dense 3-word topical clusters across technical articles.
Splits words into overlapping 3-character slices for similarity comparison.
Each row in the output shows the rank, n-gram string, raw occurrence count, and percentage of all n-gram windows.
High-frequency bigrams and trigrams represent the dominant topical entities that search engines associate with your page.
If an unintended filler phrase appears at the top of your trigram list, tighten the prose to improve lexical variety.
Your input must contain at least $N$ tokens.
If you select 5-grams ($N=5$), the input text must contain at least 5 words (or 5 characters in character mode).
Punctuation is stripped automatically in word mode so sentence boundaries do not split identical words into separate buckets.

Generate a Keyword-in-Context (KWIC) concordance and word frequency index from any text with configurable left/right character window and case matching.
Open tool
Generate LaTeX table and booktabs code from CSV, TSV, or pipe-delimited data with automatic character escaping, column alignment, and captions.
Open tool
Validate BibLaTeX and BibTeX .bib files online: check balanced curly braces, detect duplicate citation keys, and verify required fields per entry type.
Open toolChoose another tool for your next calculation, conversion, or text task.

Generate multi-line banner ASCII art from text in Block, Shadow, Hash Banner, and Slim styles with source-code comment wrappers (//, #, /* */).
Open tool
Convert horizontal text into vertical stacked letters, multi-column top-to-bottom vertical text, and CSS writing-mode: vertical-rl / text-orientation code.
Open tool
Format and align delimited text into padded monospace columns (like Linux column -t) with custom input delimiters, column alignment, and output separators.
Open tool
A reflowable EPUB 3 book from supported Word blocks. Extract sanitized DOCX structure, then build an EPUB package with supplied title and author.
Open toolAnswers about using Text Ngram Generator and understanding its results.
An n-gram is a contiguous sequence of N items (words or characters) extracted from a text sample using a sliding window of step size 1. N=1 produces unigrams, N=2 produces bigrams (two-word pairs like 'search intent'), and N=3 produces trigrams ('search engine optimization').
A sequence of K tokens yields exactly K - N + 1 contiguous n-grams (for example, a 20-word paragraph produces 19 bigrams and 18 trigrams).
Use word n-grams to discover recurring multi-word SEO keywords, collocations, and phrase repetition. Use character n-grams (such as character trigrams) for fuzzy string matching, language identification, and typo detection.
Keep stopwords when looking for natural grammatical phrases ('in accordance with'), and remove stopwords when you want to see which substantive topic nouns co-occur near each other.
Choose another tool for your next calculation, conversion, or text task.