onlinecsvtools logo

Csv truncator

World's simplest csv tool

Free online CSV column truncator. Just load your CSV, and it will automatically truncate the contents in column cells to the given length. Load CSV, truncate CSV. There are no ads, popups or nonsense, just an awesome CSV truncator. Created by developers for developers.
love tabs more than commas? foo\tbar\tbaz
We also have Online TSV Tools — utilities for working with tab separated values. Check it out!
fullscreen fullscreen_exit
Truncate this column
Which column to truncate? (Use * for all columns)
To this length
Truncate to this length
Csv truncator tool What is a csv truncator?
This tool truncates columns of Comma Separated Values (CSV). You can either truncate the contents of all column cells to the given length or one individual column. Simple and easy!
Csv truncator examples Click to use
Truncate all CSV columns to 5 characters
This example truncates all columns to 5 characters (excluding column quote symbol, which doesn't count.)
column1,column2,column3 long input,longer input,longest input 123456890,123456890,123456890
colum,colum,colum "long ",longe,longe 12345,12345,12345
Required options
These options will be used automatically if you select this example.
Which column to truncate? (Use * for all columns)
Truncate to this length
Truncate first CSV column to 4 characters
This example truncates cells of the first CSV column to 4 characters. All other columns are left as-is and aren't modified.
"site name","visitors" "csvtools","1000" "pngtools","5000" "jsontools","4000"
site,visitors csvt,1000 pngt,5000 json,4000
Required options
These options will be used automatically if you select this example.
Which column to truncate? (Use * for all columns)
Truncate to this length
Pro tips Master online csv tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinecsvtools.com/truncate-csv-columns?input=column1%2Ccolumn2%2Ccolumn3%0Along%20input%2Clonger%20input%2Clongest%20input%0A123456890%2C123456890%2C123456890&truncate-column=%2A&truncate-length=5
All csv tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly convert a CSV file to a JSON data structure.
Quickly convert a JSON data structure to a CSV file.
Quickly convert a CSV file to an XML file.
Quickly convert an XML file to a CSV file.
Quickly convert a CSV file to a YAML file.
Quickly convert a YAML file to a CSV file.
Quickly convert a CSV file to a TSV file.
Quickly convert a TSV file to a CSV file.
Quickly convert a CSV file to evenly aligned text columns.
Quickly convert text columns to a CSV file.
Quickly encode CSV to base64.
Quickly decode base64 to CSV.
Quickly convert CSV to URL-encoding.
Quickly decode CSV from URL-encoding.
Quickly change the CSV column delimiter to a new symbol.
Quickly prepend columns at the beginning of a CSV file.
Quickly append one or more new columns at the end of a CSV file.
Quickly insert one or more new columns anywhere in a CSV file.
Quickly export one or more columns from a CSV file.
Quickly replace one or more columns in a CSV file.
Quickly delete one or more columns from a CSV file.
Quickly swap two columns in a CSV file.
Quickly exchange columns with rows in a CSV file.
Quickly exchange rows with columns in a CSV file.
Quickly transpose a CSV file.
Quickly truncate columns in a CSV file.
Quickly left-trim and right-trim column values in a CSV file.
Coming soon These csv tools are on the way
Convert CSV to HTML
Convert CSV to a HTML table.
Convert CSV to PDF
Convert CSV to a PDF document.
Convert CSV to an Image
Draw CSV file as table and output a PNG, JPG or GIF picture.
Convert CSV to Excel
Convert CSV to an Excel spreadsheet.
Preview CSV in the Browser
Show the contents of CSV in your browser.
Convert CSV to LaTeX
Convert CSV to a LaTeX table.
Convert CSV to SQL
Generate SQL queries from a CSV file.
Merge CSV Files
Merge together two CSV files.
Quote all CSV Fields
Quote absolutely all CSV fields.
Change CSV Quote Character
Change the character CSV fields are wrapped in.
Delete Empty CSV Columns
Delete columns that are completely empty.
Delete Empty CSV Rows
Delete rows that are completely empty.
Minify CSV
Compress a CSV file. Remove unnecessary spaces.
Compare Two CSV Files
Diff CSV files and show differences visually.