Processed online by Toolvito
Vector Similarity Calculator
Compare items by meaning or by numbers. Paste sentences to compare their meaning with a sentence-embedding model, or paste your own vectors to get exact similarity and distance values.
How to compare
- Paste the items, one on each line, or choose a file (TXT, CSV, TSV, Excel, JSON, JSON Lines or NumPy .npy).
- A line of numbers is a vector (for example “0.12, -0.5, 0.33”); you may start it with a name. Any other line is a text.
- Choose what to compare: the first item with all others (ranked), items in pairs (1 with 2, 3 with 4, …), or every item with every other one.
- Press Compare and download the CSV table.
The measures
- Cosine similarity: from −1 to 1; 1 means the same direction. For text vectors, close to 1 means the same meaning.
- Dot product, angle in degrees and Pearson correlation.
- Euclidean, Manhattan and Chebyshev distance (0 means identical).
- Values are worked out in 64-bit floating point and rounded to 6 decimals.
Good to know
- Texts are turned into vectors on the Toolvito server with all-MiniLM-L6-v2 (English) or paraphrase-multilingual-MiniLM-L12-v2 (50+ languages). The model is named in the result.
- Similar meaning is not the same as true or agreeing: “The shop opens at 9” and “The shop opens at 10” are very similar.
- Texts longer than the model reads (256 or 128 tokens) are compared by their start.
- Up to 2,000 items; up to 300 for the all-against-all table. For one pair of plain number lists, the Cosine Similarity Calculator works in your browser.