FREE ONLINE TOOL
Scatter plot generator
Plot two columns of numbers. Find a pattern, add a trend line, and take your chart with you.
01 / Your data
Edit the table, paste spreadsheet cells or import CSV. Templates contain illustrative data.
Paste data or import CSV
Applying replaces the table. Undo restores your previous data.
Start from a template
Choose a starting point, edit the names and replace the numbers. Undo restores your previous work.
02 / Make it yours
Save data & continue later
Save a project to keep data and settings, or CSV for your spreadsheet. Files stay on your device; refreshing resets this editor.
03 / Your chart
Chart up to dateExport your chart
Free · no account · no watermark. PNG and JPG are prepared locally, then saved with their download links. JPG always has a white background.
Your chart data and CSV files are processed in this browser, not uploaded by the chart tool. Privacy details
Make a scatter plot from two columns
A scatter plot generator turns paired numerical observations into points on an X–Y chart. The first column supplies the horizontal position and the second supplies the vertical position. Each row represents one observation, so the two numbers in a row must belong together.
Use this scatter plot maker with your own paired measurements or start with the small, illustrative study-hours dataset. Replace it with your own values, change the title, and select Update chart. The chart is generated in your browser. No account, installation, or payment is required.
How to use the scatter plot generator
- Choose a starting point. Edit the example directly, choose a template, or open Paste data or import CSV for spreadsheet data.
- Preview the import. Check whether the first row contains column names. For a file with extra columns, choose which columns supply X and Y before applying it. The preview shows source row and column counts.
- Review the editable table. Both values in each observation must be numeric. You can add or remove rows; Undo restores earlier data and settings, including a replaced dataset.
- Add context. Set the title and axis labels, including units. Pick a point color and decide whether to include the linear trend line.
- Update and review. Select Update chart after editing. Check the points and statistics cards. Errors identify the row and column to correct; invalid rows are not silently dropped.
- Export or continue later. Download SVG directly, or select Prepare PNG, then Save PNG. Save a project file to keep data and settings for another session.
Data and chart-setting edits mark the preview as unapplied and disable image downloads until you update it. The previous chart may remain visible for reference, clearly marked as out of date. Export background, resolution and the optional statistics caption can be changed without recalculating the data.
Example: study time and test scores
The default example contains eight paired observations, with study hours from 1 to 8 and illustrative test scores from 52 to 88. The points generally rise from left to right. This is a made-up demonstration dataset, not a research finding.
Try changing one score to see how an unusual observation affects the line. A single observation can influence a fitted trend, especially in a small sample. Check for entry mistakes before interpreting an outlier; do not remove a valid observation merely because it changes the result.
Scatter plot with a line of best fit
The optional linear trend line is also called a line of best fit or a regression line. It uses ordinary least squares: it chooses the straight line that minimizes the sum of squared vertical residuals. In the equation y = mx + b, m is the slope and b is the intercept.
R² describes how much of the variation in Y is accounted for by this fitted linear model, with an intercept, in the supplied sample. It is not the probability that a relationship is real, a measure of causation, or a guarantee of accurate predictions. A curved pattern can have a modest R² even when the variables are clearly related.
If every X value is identical, there is no unique slope and the tool does not draw a fitted line. If every Y value is identical, R² is reported as undefined. The point chart remains useful in both cases.
Correlation coefficient: Pearson r
With the linear trend line enabled, the tool also reports Pearson's correlation coefficient, r. It ranges from −1 to +1: a positive value describes an upward linear association, a negative value a downward association, and a value near zero little linear association. A value near zero does not rule out a curved relationship. If either variable is constant, r is undefined.
For this one-variable least-squares model with an intercept, R² equals r squared when both variables vary. Neither number establishes causation or statistical significance. The strength that matters depends on the subject and data quality; there is no universal cutoff that proves a relationship is useful.
Try a simple CSV example
Open Paste data or import CSV, paste this illustrative dataset, preview and apply it, then select Update chart:
X,Y
1,2
2,4
3,6
4,8
With the linear trend line enabled, the line of best fit is y = 2x + 0, R² is 1, and Pearson r is 1. Change the Y values to 8, 6, 4, 2 to see a downward line with r = −1. R² stays 1 because both examples have a perfect linear fit, although their directions differ.
Input limits and supported formats
The plotted table uses exactly two columns and at least two data rows. Imports can contain up to 30 source columns; select one for X and another for Y. Negative values, zeros, decimals, and scientific notation are accepted. Files are limited to 1 MB, with a maximum of 2,000 data rows per chart. The tool accepts values between minus one trillion and one trillion. Headers and axis titles should be short enough to read in the exported image.
CSV uses commas; pasted spreadsheet cells may use tabs. Put quotes around a CSV label that contains a comma. Missing values, dates, currency symbols, decimal commas and text categories are not interpreted as numbers. This version plots one series; it does not support grouped points, logarithmic axes, error bars, or nonlinear regression.
Use your chart in a report
Choose a white or transparent background. PNG exports can be 1000 × 660 or 2000 × 1320 pixels. Select Prepare PNG, then Save PNG when the file is ready. SVG keeps text and shapes as vectors for resizing or editing. Neither format contains a watermark. An optional caption includes the equation, Pearson r and R² when the trend line is enabled.
The chart has a text description, and the editable table retains all supplied observations. When sharing an image, include a caption naming the variables, units, source and limitations; provide the data separately when readers need exact values.
Open Save data & continue later to download the current table as CSV or save a project JSON file containing data and settings. Restore that project in this same chart tool to continue editing. Files are created and read locally. There is no cloud storage or automatic browser save, so refreshing resets the editor unless you restore a saved project.
When to choose a different chart
Use scatter plots for two numeric variables, not for unrelated categories or several differently measured ratings. To compare profiles across a shared set of rated metrics, try the radar chart generator. Return to Chart Maker Online to see the tools currently available.
JPG image export
Choose Prepare JPG, then Save JPG for a JPEG image at the selected export resolution. JPG always uses a white background and lossy compression; use PNG or SVG when you need transparency or sharper text.
A FEW USEFUL ANSWERS
Frequently asked questions
Can I create a scatter plot without signing up?
Yes. Edit the table or import paired numbers, select Update chart, and export PNG or SVG. There is no account or payment.
Can I paste data from Excel or Google Sheets?
Yes. Paste copied spreadsheet cells or choose a UTF-8 CSV file, preview the import, and choose the X and Y columns. You can turn off the header checkbox for data without column names. Direct XLSX import is not supported.
What does the trend line calculate?
It calculates an ordinary least-squares line of best fit with an intercept and reports the equation, R² and Pearson correlation coefficient r. Constant X values cannot produce a fitted slope; if either variable is constant, r is undefined. Constant Y values also make R² undefined.
Are there file or data limits?
CSV files can be up to 1 MB and have up to 30 source columns. Choose two columns for 2–2,000 paired observations. Missing or nonnumeric values must be corrected before plotting.
Will my data be saved or uploaded?
The tool processes data locally without uploading it or creating a cloud project. Download a CSV or project JSON file to keep your work; restore the project in this tool later. Refreshing resets the editor. Site analytics are described in the privacy policy.
Can I make a scatter plot with a line of best fit and correlation coefficient?
Yes. Enable Linear trend line to show the least-squares line and report its equation, R² and Pearson r. The tool fits one numeric X–Y series. It does not compute a p-value or prove causation.
Can I download a JPG image?
Yes. Select Prepare JPG, then Save JPG. JPG uses a white background at 1000 × 660 or 2000 × 1320 pixels. Choose PNG or SVG for transparency.