stats · mean · median · stddev · percentile · local

Descriptive statistics for any dataset

Paste numbers separated by spaces, commas, or newlines. Get count, sum, mean, median, mode, range, variance/stddev (population and sample), and quartile percentiles.

Statistics Calculator
Count
12
n
Mean
14.833333
min 7
Median
14.5
max 25
Std dev
5.507571
sample
Separators: comma, space, semicolon, newline.
input · dataset
output · summary stats
Count
12
Sum
178
Mean
14.833333
Median
14.5
Mode
18 (×2)
Min
7
Max
25
Range
18
Variance (pop)
27.805556
Variance (sample)
30.333333
StdDev (pop)
5.273097
StdDev (sample)
5.507571
Percentiles
P25
11.25
P50
14.5
P75
18
P90
21.6
P99
24.67
Quick Start

What the stats mean

Mean is the average. Median is the middle value. Std dev measures spread. Percentiles report where a value falls in the sorted distribution.

  1. 01

    Paste numbers

    Comma, space, semicolon, or newline separators all work.

    Inputs are treated as UTF-8 throughout the pipeline and validated client-side as you type — nothing dispatches until the value is well-formed.

    inpututf-8client-sidevalidated
    input · textnumbers · set
    12, 18, 7, …
    loaded · parsedclient-side
  2. 02

    Read center

    Mean, median, mode highlight the dataset center.

    Each toggle re-computes through a memoised hook, so flipping options never resets your input and the UI stays snappy on large inputs.

    centeroptionslivememoisedtoggles
    mean · memoised14.8 · live
    mean 14.8
    options set · memoisedlive
  3. 03

    Read spread

    Range, variance, stddev describe how spread out the data is.

    Randomness — where used — comes from crypto.getRandomValues, never Math.random. Heavy work sits in useMemo.

    spreadcomputeinstantlocaldeterministic
    stddev · instant5.7 · computed
    σ ≈ 5.7
    computed · instantinstant
  4. 04

    Read tails

    P25, P50, P75 quartiles; P90/P99 for tail behavior.

    Copy writes through navigator.clipboard and downloads use a Blob — zero network traffic. Same input plus same options always yield the same bytes.

    tailscopydownloadzero-networkreproducible
    ok · copiedP75 · copied
    P75 = 18
    shipped · ready to shipsuccess
Pro tips

Pro tips for everyday utilities

Reach for crypto.getRandomValues

Cryptographically random for IDs, tokens, salts. Math.random is for animation and games, not security.

Sort IDs lexicographically

UUID v4 has no time ordering. Use ULID or UUID v7 if you need sorted IDs.

Mock data with seeds

Faker-style libraries can be seeded so tests are reproducible. Embed the seed in the fixture file.

Reference cards beat memory

Cheatsheets for Vim, Git, Docker, Linux signals are faster than man pages when you’re mid-flow.

Browser APIs vary

Touch events, gamepads, and clipboard differ across vendors. Feature-detect before use.

Persist in the right place

localStorage for user preferences, sessionStorage for transient state, IndexedDB for structured data.

Use Cases

When to crunch stats

Reports, A/B test summaries, smoke checks.

Latency reports

Quickly see P50/P90/P99 for a response-time dataset. Random values come from crypto.getRandomValues — cryptographically secure for tokens, salts, and session IDs. Math.random is deterministic enough for animations but predictable enough to be a security bug.

CSPRNG-backed

Survey data

Mean and std dev of Likert responses. Pair with hashids, ULID, or UUID v7 when you need both random and sortable — useful for primary keys, public-facing IDs, and event log ordering without a sequence column.

reproducible

A/B test sanity

Compare two control samples without firing up Excel. Output is deterministic given the same seed, so fixtures and tests stay reproducible across CI runs and contributor machines. Embed the seed in the fixture file for full replay.

snappy

Build times

Track CI duration variability over time. Heavy work runs through useMemo so the UI stays snappy on large inputs. Same input + same options yields identical bytes — the kind of stability snapshot tests rely on.

feature-detected

Class grading

Score distributions for a single test. Storage tools persist to the right backend: localStorage for user preferences, sessionStorage for transient state, IndexedDB for structured data. Pick the right shelf and quota worries disappear.

deterministic

Sensor readings

Quick descriptive stats on IoT data. Browser feature detection: clipboard, fullscreen, gamepad, and Web Bluetooth APIs gracefully fall back when unavailable. No surprise white screens on Safari or older Firefox.

production-ready
FAQ

Frequently asked questions

Population variance divides by N; sample variance by N−1 (Bessel's correction). Use sample when you have a subset of a larger population.
The most frequent value. If no value repeats, no mode is reported.
Linear interpolation between sorted values — the standard 'inclusive' method.
See Percentile Calculator for IQR-based outlier detection.
Yes — all stats run in your browser. Nothing is sent to a server.
Suggest a tool

Something missing?

Tell us what you need. We ship the top requests every two weeks.

Sent straight to the maintainers · no account needed
47 in queue·8 shipped this month
Request queued. Thanks!