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++ Visualizer

Watch k-means++ pick starting centroids, then step to convergence.

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

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

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++ Visualizer

About K-Means++ Visualizer

This k-means++ visualizer starts k-means with the k-means++ seeding rule on two clusters, so you can step through how well-placed starting centroids converge. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

The first centroid is a random point. Each later one is drawn from the remaining points with probability proportional to the squared distance to the nearest centroid already chosen, so far-away points are likelier to be picked. That spreads the centroids across the data and avoids two of them starting in the same group.

Press New start a few times: with k-means++ on well separated data you will see the centroids land in different groups at the very first step.

How to use K-Means++ Visualizer

  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.

Worked examples

  • Two blobs of 60 points, k = 2 → gives inertia 18308.3, silhouette 0.65

    Converges in a handful of steps.

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.

Why is k-means++ better than random initialisation?

It spreads the starting centroids out, which reduces the chance of a poor local minimum and usually means fewer iterations.

Is k-means++ guaranteed to find the best clustering?

No. It gives a good start, with a proven bound on the expected inertia, but you should still run it a few times.

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 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.
  • K-Means Clustering From CSVPaste x,y data, choose k and cluster it in your browser.

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