Skip to content
ToolUlkaa Tool
All tools

Machine Learning

TensorFlow PlaygroundConfusion Matrix CalculatorROC Curve and AUC CalculatorK-Means Clustering VisualizerGradient Descent VisualizerDecision Tree BuilderClassifier PlaygroundPCA VisualizerActivation Function Plotter

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Machine Learning

K-Means Clustering From CSV

Paste x,y data, choose k and cluster it in your browser.

Try:
1 to 10
Initialisation
Two numbers per line, up to 3,000 points. Extra columns are ignored.

Inertia (sum of squared distances to centroids)

n/a

Next step: assign every point to its nearest centroid.

Points
120
Assign steps
0
running
Silhouette
n/a
needs 2+ clusters

Clusters

  • Cluster 1
  • Cluster 2
  • Cluster 3
  • Cluster 4

Tap or click the plot to add a point. Diamonds are the centroids. Datasets: XOR.

Elbow plot: inertia against k

Inertia always falls as k grows. Look for the bend where extra clusters stop helping much. The sharpest bend here is at k = 2. Each point is the best of 4 runs from different starts.

  1. Tools
  2. Machine Learning
  3. K-Means Clustering Visualizer
  4. K-Means Clustering From CSV

About K-Means Clustering From CSV

This page opens with the CSV box ready. Paste two numeric columns, press "Use these points", and k-means clusters them with a plot, centroids, inertia and silhouette score. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

Put one point per line as x,y. A header line is skipped, any third column is ignored, and tabs or semicolons work too. The plot rescales to fit your data, and you can still tap it to add points. Up to 3,000 points are used.

The box is pre-filled with a sample so you can see the format. For data with more than two columns, reduce it to two components first with the PCA visualizer, then cluster the scores.

How to use K-Means Clustering From CSV

  1. 1Pick a sample dataset, tap the plot to add points of your own, or paste x,y lines in the CSV box and press "Use these points".
  2. 2Set the number of clusters k, and choose k-means++ or random initialisation.
  3. 3Press Step. The first press assigns each point to its nearest centroid; the next moves each centroid to the mean of its points.
  4. 4Keep stepping, or press "Run to convergence", until the assignment stops changing.
  5. 5Read the inertia and the silhouette score, and look at the elbow plot to judge whether k is a good choice.
  6. 6Press "New start" to try a different random starting position, and see whether the clusters change.

Features

  • Step-through mode that separates the assign step from the update step.
  • Run to convergence with a clear converged message.
  • k-means++ and random initialisation, with a repeatable seed and a New start button.
  • Tap or click to add points, five sample datasets and CSV input for up to 3,000 points.
  • Inertia, step count and mean silhouette score, updated as you go.
  • An elbow plot of inertia for k from 1 to 10, with a marker at your k and the sharpest bend named.
  • Touch-friendly canvas that scales to your screen and keeps vertical page scrolling working.

Privacy: how it works

  • The points and the clustering stay in your browser tab. Nothing is sent to Ulkaa or anyone else.

Tips

  • Scale your features first when they have very different units. K-means uses raw distance, so a column with a large range dominates.
  • If the elbow is not clear, check the silhouette score for several values of k.
  • An empty cluster keeps its previous centroid in this tool, so a bad start can leave a cluster unused. Use New start or k-means++.
  • Adding a few outliers can drag a centroid away, because the mean is not robust. Tap far from the others to try it.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your points are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your points are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

How do I cluster my own data?

Paste two numeric columns into the CSV box, press "Use these points", and pick k.

Can I cluster more than two columns?

This tool plots and clusters two dimensions. For more columns, use the PCA tool to project to two dimensions first.

More K-Means Clustering Visualizer pages

  • K-Means Clustering VisualizerWatch k-means assign points and move centroids, one step at a time, on your own data.
  • Elbow Method CalculatorPlot inertia for k from 1 to 10 and spot the bend where more clusters stop helping.
  • Silhouette Score CalculatorCluster your points and read the mean silhouette score.
  • K-Means++ VisualizerWatch k-means++ pick starting centroids, then step to convergence.
  • K-Means With Random InitialisationStart k-means from random data points and see how the outcome depends on the start.
  • K-Means on the Two Moons DatasetCluster two interlocking half circles and see where k-means cuts them.
  • K-Means on Concentric CirclesCluster a ring around a core and see why straight boundaries cannot separate them.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account