Find out what kind of data each CSV column holds, from numbers and dates to emails, URLs and codes with leading zeros, and get a CREATE TABLE statement for your database.
Initializing in your browser…
See where a CSV has gaps: empty cells, cells with only spaces, markers like NULL or N/A and short rows, counted per column and mapped row by row, with optional filling.
Sort a CSV by one or more columns, with numbers sorted by value, dates by day and item2 before item10, then download the sorted file.
Generate realistic test data as JSON, CSV or SQL: valid card numbers and IBANs, safe example e-mails, and a seed that brings the same rows back.
A staff list is about to be loaded into PostgreSQL. It has zip codes, salaries with dollar signs, yes/no flags, dates written day first, an empty age and an empty website.
staff.csv (excerpt)
Name,Email,Zip,Age,Salary,Active,Joined,Website,Score John Doe,john@example.com,07030,28,"$75,000.50",yes,15/01/2023,https://john.dev,95.5% Bob Johnson,bob@example.com,90210,45,"$95,000.75",no,03/10/2021,,92.3% Charlie Davis,charlie@example.com,10001,,"$88,000.25",no,05/12/2020,https://charlie.net,87.8%
Types and the CREATE TABLE (PostgreSQL, full five-row sample)
Name Text Zip Code (keep as text) Email Email Age Whole number Salary Currency Active True / false Joined Date, day first Website URL Score Percentage CREATE TABLE "staff-sample" ( "Name" VARCHAR(50) NOT NULL, "Email" VARCHAR(255) NOT NULL, "Zip" VARCHAR(8) NOT NULL, "Age" INTEGER, "Salary" NUMERIC(7,2) NOT NULL, "Active" BOOLEAN NOT NULL, "Joined" DATE NOT NULL, "Website" TEXT, "Score" NUMERIC(5,2) NOT NULL );
Zip is text because three of the five codes start with a zero, and the plain ones such as 90210 are kept as text with them. Salary is currency, and NUMERIC(7,2) is the smallest size that holds 95,000.75 with its cents. Joined is read day first because 15/01/2023 can only mean 15 January. Age and Website each have an empty cell, so they are the only columns without NOT NULL. Switching the database to SQLite gives a statement that SQLite runs as written.
Load a CSV and each column is classified as one of 18 kinds, such as whole number, decimal, currency, percentage, date, time, true/false, email, URL, phone, UUID, IP address, JSON or a code that must stay text. You see the reason for each decision, sample values, any values that do not fit, and a ready CREATE TABLE statement for PostgreSQL, MySQL, SQLite or SQL Server.
Why the type of a column matters. Before importing a CSV into a database, a spreadsheet or an analysis tool, you need to know what each column really holds. Guess wrong and the import fails, or worse, it succeeds and quietly damages the data: zip codes lose their leading zeros, dates are read with the day and month swapped, and a column with one stray word is rejected row by row. This tool examines every value in every column and tells you what it found and why.
Checks that look at the value, not just its shape. Dates are checked against the calendar, so 2025-02-29 is not a date and 31/04/2024 is not either. IP addresses are parsed properly, so 999.1.1.1 is rejected. URLs go through the browser's own URL parser and email addresses through the same rule a browser form uses. A column of digits that starts with a zero, such as 07030, is classed as a code to keep as text, because storing it as a number would lose the zero for good. A column of only 0 and 1, or yes and no, is recognised as true/false, which no single cell could tell you.
Day first or month first. A date such as 03/04/2025 means March 4 in the United States and April 3 in most other places. The tool settles this per column by finding a value that can only be read one way, such as 15/01/2023, and names that value. If nothing in the column settles it, it says so instead of guessing, and you can choose the order yourself under More options.
Gaps and odd values. Empty cells and explicit markers such as NULL or N/A are counted separately, because an empty cell and the word NULL may mean different things to your import. When most values fit a type but a few do not, the column keeps the majority type, the odd values are counted with examples, and a warning explains that a database would reject those rows on import.
From analysis to a table definition. Each column gets a suggested SQL type for the dialect you choose: whole numbers become INTEGER, or BIGINT when a value is too large for INTEGER; decimals and currency get a NUMERIC or DECIMAL size worked out from the data; text gets a VARCHAR long enough for the longest value with room to spare. Columns with no empty values are marked NOT NULL, and every name is quoted for the dialect so spaces, capitals and reserved words survive. Download a plain-text report or a JSON file of the whole analysis. Everything runs in your browser.
See every column's type and the CREATE TABLE before loading a CSV into PostgreSQL, MySQL, SQLite or SQL Server, and fix problem rows first.
Get a quick profile of a file someone sent you: which columns are dates, which are codes, which are mostly empty.
Find the one text value in a column of numbers, or the impossible date, before the import rejects it.
Download the report or JSON as a data dictionary to share with the people who use the file.
A column holding 07030, 02138, 90210 and 00501 is a code to keep as text, VARCHAR in SQL. As a number, 07030 would become 7030.
A Joined column with 15/01/2023 among its values is read day first, because 15 cannot be a month, and the card names 15/01/2023 as the deciding value.
A column of IDs such as 9000000001 gets BIGINT rather than INTEGER, because INTEGER stops at 2,147,483,647.
Usually because some values start with a zero, like zip codes, account numbers or product codes. Storing those as numbers would drop the zero, so the column is kept as text. The card says how many values carry a leading zero.
It looks for a value in the same column that can only be read one way, such as 25/03/2025, and applies that order to the whole column. If no value settles it, the card says so, and you can choose day first or month first under More options.
An empty cell has nothing in it. A null marker is a cell that says NULL, N/A or similar. They are counted separately because some imports treat the text NULL as a value, and you may want to clean one but not the other.
Every value in the column is different and none is empty, so it could serve as a primary key. Check that this holds for the full dataset, not just the file you loaded.
From the column's type and its values: INTEGER or BIGINT depending on the largest whole number, NUMERIC or DECIMAL sized to the longest number and the most decimal places, and VARCHAR sized from the longest text with headroom. NOT NULL is added when no value is empty.
Yes. Every name is quoted the way your chosen database expects, double quotes for PostgreSQL and SQLite, backticks for MySQL and square brackets for SQL Server, so spaces, capitals and reserved words such as order are kept.
No. The analysis happens in your browser and nothing is sent anywhere.
Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.