How to use (3 steps)
- Select an example or enter a count table (labels and counts).
- Adjust Shannon log base or display options if needed.
- Shannon, Simpson, and (optional) Hill numbers/evenness are shown.
Diversity indices depend on sampling and preprocessing (filtering, normalization, etc.). Interpret results together with conditions.
Input (count table)
—
Input mode
| label | count | Actions |
|---|
Paste (TSV/CSV)
Two columns: label, count (header optional).
Paste (TSV/CSV)
First column is label, remaining columns are samples (header recommended).
Display options
Results (Shannon & Simpson)
—
Relative abundance (p)
Shannon contribution (−p ln p)
Top categories
| label | count | p |
|---|
Outputs
How it’s calculated
- Compute proportions p and calculate Shannon (−Σp ln p) and Simpson (Σp² etc.).
- Because “Simpson” varies by field, D/1−D/1/D are shown together.
- Hill numbers (q=0/1/2) and evenness can be shown as references.
FAQ
What is the difference between ln and log2 for Shannon?
Only the log base changes; rankings do not. Choose based on field conventions (default is ln).
Which one is the “Simpson index”?
Literature varies between D (Σp²), 1−D, and 1/D. This tool shows all three.
Is it okay to include zero counts?
Yes. They are treated as p=0 with zero contribution.
Can I compare samples?
Yes. Multi-sample (by columns) mode calculates indices for each column.
Are my inputs sent anywhere?
All calculations run in your browser. Your data is not sent.
Related tools
Comments (optional)
To reduce load, comments are fetched only when needed.