CSV Data Type Guesser

Detect the data type of every CSV column free online. Identifies numbers, dates, booleans, emails, and text automatically before you write an import schema.

Paste CSV data

How to Use This Tool

1
Paste your CSVAdd the dataset whose column types you need to identify
2
Click Guess TypesEach column is matched against date, boolean, number, and email patterns
3
Use the resultsApply the detected types when defining your database schema

CSV Data Type Guesser is a free online tool that works entirely in your browser — no signup, no data uploaded, no limits.

Guessing Column Types Is the First Step of Every Import

Before a CSV becomes a database table, somebody has to decide what type each column should be. Is the signup_date column a real date or just a text string that looks like one? Is is_active stored as the word "true" or as a 1 and 0? Get this wrong and your import either fails outright or succeeds while quietly storing everything as the wrong type, which causes calculation and sorting bugs much later.

This tool examines every value in each column and matches it against pattern rules for dates, booleans, numbers, and emails, falling back to plain text when nothing else fits. The result tells you not just the guessed type but how confident that guess is, based on what percentage of values in the column actually matched the pattern.

Why Pattern Order Matters

A value like "20240115" could be read as a large number or a date in compact format. The detection checks date patterns first because dates have more distinctive structure, then falls through to boolean and numeric checks, and only classifies as generic text if nothing more specific matches. This ordering avoids common misclassifications.

Using Confidence Percentage to Spot Dirty Columns

A column detected as Number with 98% confidence is clean and ready to import as a numeric field. A column detected as Number with only 70% confidence means roughly three in ten values do not fit the pattern — worth investigating before you commit to that column type, since those mismatched values will likely cause import errors.

Frequently Asked Questions

It checks each column's values against pattern rules in priority order — date formats first, then boolean values like true/false, then numeric patterns, then email patterns, falling back to text if nothing else matches. A column of values like 2024-01-15 matches the date pattern before it could be mistaken for a large number.
The tool reports the dominant type along with a confidence percentage. A column that is 95% numeric with a few stray text entries still gets classified as Number, with the percentage telling you how clean that classification actually is.
Database columns need a defined type — INT, VARCHAR, DATE, BOOLEAN. Guessing wrong means either failed imports or, worse, successful imports that silently store numbers as text and break any calculation you try to run on them later.
It detects email addresses as a distinct pattern since the @ symbol is a reliable signal. Phone numbers and currency are harder to distinguish reliably from generic numbers across different country formats, so those are classified as Number or Text depending on their structure.
Yes, as long as the export is in standard CSV format with a header row. Excel and Google Sheets exports both work directly with this tool.
–
(0)
Rate:
Comments

No comments yet

Be the first to share your experience with this tool!