Microdeck.tools 100% In-Browser

Cosine Similarity Calculator

New

Calculate the cosine similarity, cosine distance, angle, dot product and Euclidean distance between two vectors, such as text embeddings.

100% In-Browser No Server Storage Instant Results

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

How It Works Under the Hood

Paste two lists of numbers of the same length. The tool returns the cosine similarity and related measures, which are used to compare embeddings in search and retrieval.

Step-by-Step Instructions

1

Paste vector A.

2

Paste vector B.

3

Read the similarity.

Key Features & Performance

  • Cosine and distance
  • Angle
  • Dot product
  • Euclidean distance

Methodology, Formulas & Technical Standards

cos θ = (A · B) ÷ (|A| × |B|).

Worked Examples & Edge Cases

Two 4-number vectors

Input
Embeddings
Output
0.9954

Limitations, Scope & Accuracy Notes

  • • Both vectors need the same length.
  • • A zero vector has no direction.

Local Browser Processing & Privacy

Traditional web converters upload your documents, snippets, or media files to remote servers. Cosine Similarity Calculator runs inside your browser tab:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

Working outputs stay in your browser tab and are released when you reset the tool or close the tab.

Frequently Asked Questions

What range does it have?

From −1 to 1.

Is data uploaded?

No.

Explore Related Micro-Tools

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.