CSV Type & Null Ratio Profiler
Profile CSV columns locally with deterministic type and data-quality signals
About
RFC 4180-compatible CSV parsing with quoted fields, escaped quotes, embedded newlines, selectable delimiters, deterministic sampled profiling, and data-quality metrics.
Examples
Quoted comma and newline
parseCsv('name,note\nAda,"hello, ""world""\nnext"')[["name","note"],["Ada",'hello, "world"\nnext']]Quotes protect the comma, the doubled quotes collapse to one, and the newline stays inside the cell.
Typed profile with nulls
profileCsv("id,score\n1,2.5\n2,\n3,4.5")score -> { inferredType: "float", nullRatio: 1/3, min: 2.5, max: 4.5, mean: 3.5 }The blank score counts as null while the remaining floats drive min/max/mean statistics.
About this tool
CSV Type Inference Profiler parses and profiles delimited text with parseCsv(input, delimiter) and profileCsv(input, { delimiter, sampleRows }): headers, rowsAnalyzed/totalRows, a sampled flag, and per-column profiles with inferredType, nullRatio, uniqueCount, min/max/mean, topValues, and typeDistribution. Empty input returns zeroed headers, counts, and columns.
Cell types are integer, float, boolean, date, email, string, and null; a column mixing incompatible types reports mixed (pure integer/float mixes fold to float). Blank cells count as null, ratings derive from nullRatio, and topValues keeps the 3 most frequent entries.
Parsing follows CSV quoting: quoted cells may hold delimiters and newlines, doubled quotes unescape to one, CRLF and LF both break rows, and blank rows are skipped. Headers default to Column N when blank.
How to use this tool
Paste CSV and delimiter
Supply the text with commas by default or pass delimiter explicitly (e.g. ';') to both parse and profile calls.
Read inferred types
Check each column's inferredType plus typeDistribution when mixed needs explaining.
Weigh nulls and uniques
Use nullRatio/nullCount for sparseness and uniqueCount plus topValues for cardinality and skew.
Sample large files
Set sampleRows to bound rowsAnalyzed; sampled flags when totalRows exceeds the window.
Use cases
Scoping a data import
Infer column types, null load, and value skew before choosing a database schema.
Catching dirty columns
Spot mixed-type columns where stray text slipped into numeric feeds.
Documenting a dataset
Export headers, types, ranges, and top values as a quick data dictionary.
Common mistakes
Mistake:Splitting quoted commas with a naive split(',').
Fix:Route quoted input through parseCsv — commas inside quotes belong to the cell, not the column boundary.
Mistake:Treating mixed as a parse failure.
Fix:Mixed is the intended verdict for incompatible cell types in one column — inspect typeDistribution to see the actual blend.
Mistake:Forgetting the delimiter on both calls.
Fix:profileCsv defaults to ','; pass { delimiter: ';' } (and to parseCsv) or semicolon files collapse into one column.
Frequently asked questions
What does this tool do?
It parses and profiles delimited text with parseCsv(input, delimiter) and profileCsv(input, { delimiter, sampleRows }): per-column inferredType (integer/float/boolean/date/email/string/null or mixed), nullRatio, uniqueCount, min/max/mean, topValues, and typeDistribution.
What does mixed mean, and where did my nulls go?
mixed means incompatible cell types share a column (pure integer/float folds to float) — check typeDistribution for the blend. Blank cells count as null and drive nullRatio, so sparseness shows up there, not in min/max/mean.
Is my CSV uploaded or stored?
No. Quoted-field parsing, type classification, and statistics run entirely in your browser.
Why is my semicolon file one column, or why is sampled true?
The default delimiter is ',' — pass { delimiter: ';' } to profileCsv (and to parseCsv) for semicolon files. sampled true means totalRows exceeded sampleRows, so only the leading window was analyzed; raise sampleRows for full coverage.
Related guides
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
AI Function Calling Schema Generator
Generate function calling JSON schemas from TypeScript interfaces
Algorithm Arena & Data Structure Visualizer
Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.
Ansible Playbook Generator
Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML