Skip to content

Free · Browser-local tools

Analyze CSV data

Profile CSV columns with exact counts, missing-value summaries, sum, mean and median. Inspect and download a complete browser-local report.

Analyze CSV

Start with your CSV

Open your file in the CSV editor with this tool already selected. Preview the result before downloading.

  1. Open your CSV and inspect the table.
  2. Review exact column profiles and numeric summaries.
  3. Copy or download the complete report.

Free · No signup · File contents stay in your browser. Open files up to 1 GiB with browser storage.

Try a small example

3 records · 3 columns
Illustrative CSV sample data
idnameamount
1Example one12
2Example two24
3Example three18

Amount profile

3 numeric values · minimum 12 · maximum 24 · mean 18

Illustrative fictional data. Open the sample to try the tool.

How to analyze csv

  1. 1

    Open your CSV and inspect the table.

  2. 2

    Review exact column profiles and numeric summaries.

  3. 3

    Copy or download the complete report.

What to expect

Profiles the full edited document within tool limits. Shows empty, distinct, numeric and nonnumeric counts plus sum, mean, median, minimum and maximum. Blank and invalid numeric values are excluded from numeric statistics.

Local files and clear limits

These tools process file contents on your device. The browser workspace accepts files up to 1 GiB and 5 million records, subject to available browser storage and decoded-record limits. Analysis streams the complete source and retains up to 100,000 distinct values per column within a 64 MiB working budget. Download a new copy to keep your result.

Plain answers

Analyze CSV questions

What can I do with this analyze csv tool?

Profiles the full edited document within tool limits. Shows empty, distinct, numeric and nonnumeric counts plus sum, mean, median, minimum and maximum. Blank and invalid numeric values are excluded from numeric statistics.

Does my CSV leave my device?

File selection, editing and these task operations run in your browser. Optional recipe assistance, when available, sends your goal and only the column metadata or sample values you explicitly include to its configured provider. Your file is not attached automatically; see Privacy for processing details. Manual editing requires no account or file upload. Download a new copy to keep your result; refreshing restores the original input, not unsaved edits.

Can I inspect the source rows behind a group or pivot?

Yes. In Analysis, scan the complete source, choose Summarize by category or Build a pivot table and preview the result. Choose a summary value to inspect its contributing records in original source order, including records hidden by table filters. Numeric blanks are excluded; min/max include all numeric records considered. Browse 20 records per page or export every contributing record with complete literal values and raw headers as a separate UTF-8 CSV up to 64 MiB. Preview cells show 160 characters. Source edits invalidate the summary. Grouped analysis supports 100,000 source rows, 2 million input/output cells and 500 pivot categories. This read-only inspection never edits or saves the source.

Do the editor and task have the same file limits?

The editor opens files up to 1 GiB and 5 million records, subject to browser storage and decoded-record limits. Analysis streams the complete source, with up to 100,000 distinct values per column and a 64 MiB working budget.

Other ways to work with your CSV

Use these local examples when you prefer a script or SQL. They create separate results and explain where their behavior differs from this browser tool.

Summarize CSV amounts with Python

Prints record and finite-numeric counts plus amount statistics; blank and nonnumeric amounts are excluded.

Before you start

  • Python 3.10 or later. Run in a working folder with a backup of your source; output files may be replaced unless opened in exclusive mode.
  • Place input.csv in that folder. Examples use UTF-8, a comma delimiter and a header row. Column-specific recipes use id,label,amount,status,note; adapt names to your file.
Run the complete Python example
python3 - <<'PY'
import csv

with open("input.csv", encoding="utf-8-sig", newline="") as source:
    table = list(csv.reader(source, strict=True))
if not table:
    raise ValueError("Expected a header row")
headers, rows = table[0], table[1:]
if any(len(row) != len(headers) for row in rows):
    raise ValueError("Every record must match the header width")

from decimal import Decimal, InvalidOperation
from statistics import median

column = headers.index("amount")
values = []
for row in rows:
    try:
        value = Decimal(row[column])
        if value.is_finite():
            values.append(value)
    except InvalidOperation:
        pass
print("Records:", len(rows), "Numeric amounts:", len(values))
if values:
    print("Sum:", sum(values), "Mean:", sum(values) / len(values))
    print("Min:", min(values), "Median:", median(values), "Max:", max(values))
PY

Limits and output

  • CSV has no stored type schema. Python keeps fields as strings until an example explicitly converts a value. These recipes do not add spreadsheet formula protection; import sensitive-looking strings as text in spreadsheets.
  • Decimal arithmetic uses Python’s decimal context (28 digits by default). Increase its precision when needed; the median calculation retains numeric values in memory.
  • This recipe retains the parsed table in memory; use a streaming approach for files that do not fit.

Documentation: Python CSV reader and writer

Use DuckDB for CSV analyze

Run SQL locally with the DuckDB command line. Read fields as text, then cast only the columns used in calculations.

Before you start

  • Install the DuckDB command-line client using its official installation guide.
  • Run beside input.csv. Named-column examples expect id,label,amount,status,note.
Run DuckDB SQL
duckdb <<'SQL'
CREATE VIEW source AS SELECT * FROM read_csv('input.csv', header = true, all_varchar = true, force_not_null = ['id', 'label', 'amount', 'status', 'note']);
SELECT count(*) AS records, count(TRY_CAST(amount AS DECIMAL(18, 4))) AS numeric_amounts, sum(TRY_CAST(amount AS DECIMAL(18, 4))) AS total_amount, avg(TRY_CAST(amount AS DECIMAL(18, 4))) AS mean_amount FROM source;
SQL

Limits and output

  • Adapt column names and casts to your input. DECIMAL(18,4) rounds to four fractional digits; values outside its range become NULL with TRY_CAST. SQL output order is not promised without ORDER BY; equal sort keys need an explicit tie-breaker for a deterministic order.
  • These recipes write ordinary CSV without spreadsheet formula protection.

Documentation: DuckDB CSV options and installation; DuckDB COPY export

Use ClickHouse Local for CSV analyze

Use the ClickHouse binary in local mode; no database server or upload is needed for these local file paths.

Before you start

  • Install ClickHouse using its official instructions so clickhouse is on PATH.
  • This explicit example schema is id,label,amount,status,note. Change every column name/type to match your header before running. Use a fresh folder or remove only a previous example output before repeating it.
Run ClickHouse Local SQL
clickhouse local --multiquery <<'SQL'
CREATE TABLE source ENGINE = Memory AS SELECT * FROM file('input.csv', CSVWithNames, 'id String, label String, amount String, status String, note String');
SELECT count() AS records, count(toDecimal64OrNull(amount, 4)) AS numeric_amounts, sum(toDecimal64OrNull(amount, 4)) AS total_amount FROM source FORMAT PrettyCompact;
SQL

Limits and output

  • The example loads a Memory table, so it must fit in available memory. All source fields are explicitly String to retain identifiers; numeric casts use fixed scale 4. CSVWithNames writes a header and ClickHouse quoting. Sorting equal keys and un-ordered queries do not guarantee original row order.
  • Output is ordinary CSV without spreadsheet formula protection. A remote ClickHouse server reads its own filesystem; these commands intentionally use local mode.

Documentation: ClickHouse Local and installation; ClickHouse CSV formats