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?
What counts as a good similarity score?
How to use the embedding similarity calculator
- 1Enter or paste your vectors.
- 2Choose the rank by.
- 3Turn "Normalise to unit length first" on or off as needed.
- 4Set the show top pairs.
- 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
Related tools
Semantic Search & SimilarityEmbed a list of sentences with a real model and rank them by meaning — or find the near-duplicates in a list.Text Chunker for RAGChunk by tokens, sentences, paragraphs, a separator ladder or markdown headings — with overlap, token counts and embedding cost.Text Similarity CheckerCompare two texts with Levenshtein distance, Jaccard, cosine and Dice coefficients.Chat with Any DocumentAsk questions about a PDF, Word file, spreadsheet, CSV, Markdown or text file and get answers with the passage each came from.Chat with PDFAsk questions about any PDF and get answers with the page each one came from. The model runs in your browser — the file is never uploaded.AI API Cost CalculatorWork out what a prompt costs per call, per day and per month, and compare the same workload across every major model.
Last updated
More ai & llm tools