Skip to content
Convertto

Cosine Similarity & Vector Distance Calculator

Paste embedding vectors and get every pairwise cosine, dot product, Euclidean and Manhattan distance, ranked.

This calculator takes embedding vectors and computes every pairwise cosine similarity, dot product, Euclidean distance and Manhattan distance, plus the angle in degrees, ranked by whichever metric you choose. It accepts labelled lines, bare number lists, JSON arrays and the {"data":[{"embedding":[…]}]} shape that embedding APIs return, and it flags dimension mismatches rather than producing a meaningless number.

Runs in your browser
Cosine range
−1 to 1 — the angle between vectors, ignoring magnitude
Unit vectors
Cosine and dot product are identical when both vectors have length 1
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Cosine or dot product?

If your vectors are unit length — and every major embedding API returns them that way — the two rank identically and dot product is faster. Use cosine when magnitudes vary, because then dot product rewards long vectors regardless of direction.

What counts as a good similarity score?

There is no universal threshold, and this is the most common mistake in retrieval work. Different models compress the range differently: one may put unrelated text at 0.1 and another at 0.7. Calibrate against pairs from your own corpus that you know are related and unrelated, then set the threshold from that.

How to use the embedding similarity calculator

  1. 1Enter or paste your vectors.
  2. 2Choose the rank by.
  3. 3Turn "Normalise to unit length first" on or off as needed.
  4. 4Set the show top pairs.
  5. 5Press Run, then download the result when it is ready.

Sources & specifications

Embed this tool

Put the working embedding similarity calculator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More ai & llm tools