Cast Column Types in CSV Files Online
Change column data types in CSV files directly in your browser. Cast text to numbers, dates to timestamps, or any supported type conversion — no upload required.
Drop your .csv file here
or click to browse — max 50 MB
About this tool
Change the data types of columns in a CSV file — cast text to integers, strings to dates, floats to booleans, and more. Uses TRY_CAST for safe conversion so invalid values become null instead of causing errors. All processing in your browser.
Frequently Asked Questions
What types can I cast columns to in a CSV file?
VARCHAR (text), INTEGER, BIGINT, FLOAT, DOUBLE, BOOLEAN, DATE, and TIMESTAMP. The tool uses TRY_CAST for safe conversion — values that cannot be converted become null.
Can I cast multiple columns at once in a CSV file?
Yes. Set a target type for each column you want to change. Columns left as "Keep original" are passed through unchanged.
What happens to values that cannot be converted?
They become null. TRY_CAST never fails — it returns null for any value that does not fit the target type. Check the preview for unexpected nulls before downloading.
Is my data private?
Yes — completely. Your file is never uploaded to any server. Everything runs locally in your browser using WebAssembly — processing happens entirely inside your tab. Once you close the tab, nothing is retained.
What is the maximum file size?
The free limit is 50 MB. For larger files, performance depends on your device's available memory — most modern machines handle 500 MB to 1 GB comfortably.
Related Tools
Convert CSV to Parquet Online
Convert CSV files to Parquet format directly in your browser. No upload required — your data never leaves your device.
Convert CSV to JSON Online
Convert CSV files to JSON format directly in your browser. No upload required — your data never leaves your device.
Convert CSV to NDJSON Online
Convert CSV files to NDJSON format directly in your browser. No upload required — your data never leaves your device.
Convert CSV to TSV Online
Convert CSV files to TSV format directly in your browser. No upload required — your data never leaves your device.
Convert CSV to Arrow Online
Convert CSV files to Arrow format directly in your browser. No upload required — your data never leaves your device.