Add Conditional Column to TSV Files Online
Add a new column to TSV files based on an if/else condition directly in your browser. Set a value for rows that match and a different value for rows that don't — no upload required.
About this tool
Add a new column to a TSV file whose value is determined by conditions you define — like an Excel IF statement or SQL CASE WHEN. Set as many rules as you need, choose a value for each matching condition and a fallback for everything else, then download the updated file. All processing runs locally in your browser.
Frequently Asked Questions
What is a conditional column in a TSV file?
A conditional column adds a new column whose value is determined by rules you define — equivalent to SQL CASE WHEN. For example: if score > 90 then "A", if score > 80 then "B", else "C". Each row gets the label from the first condition it satisfies.
Can I add multiple conditions when creating a conditional column in a TSV file?
Yes. Add as many WHEN conditions as you need. Conditions are evaluated top to bottom and the first match wins. The final ELSE clause sets the value for any row that matches none of the conditions.
What data types can I use in conditional column expressions for TSV files?
Text, numeric, and date comparisons are all supported. Operators include equals, not equals, greater than, less than, contains, starts with, ends with, is null, and is not null.
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 Excel to TSV Online
Convert Excel files to TSV format directly in your browser. No upload required — your data never leaves your device.
Convert TSV to YAML Online
Convert TSV files to YAML directly in your browser. Download clean, human-readable YAML — no upload required.
Convert YAML to TSV Online
Convert YAML files to TSV format directly in your browser. No upload required — your data never leaves your device.
Convert TSV to XML Online
Convert TSV files to XML directly in your browser. Download a structured XML document with one element per row — no upload required.
Convert TSV to SQL Online
Convert TSV files to SQL INSERT statements directly in your browser. Copy or download the generated SQL — no upload required.