Tab-Separated Values
SpreadsheetsTSV is tab-delimited text. Like CSV it needs agreed encoding, line endings and quoting conventions. Specify column types during import to protect leading zeros and prevent unintended date conversion.
- Main use
- Tabular data with tab-delimited columns
- Data type
- Text data
All sections, questions and sources
Content reviewed: · Editor:Kai
Opening steps
Choose your environment or purpose to see its steps.
Menu labels and support vary by app, OS and version. Preserve the original before making changes.
Troubleshooting by symptom
- Everything in one column: verify tab-delimited import.
- 001 becomes 1: reimport the original as text.
- Japanese text garbled: specify the correct encoding.
- Rows shift: inspect embedded tabs/newlines and quoting conventions.
TSV → XLSX / CSV
- Import with explicit types and save a separate copy in the desired format.
- Compare row/column counts, leading zeros, long IDs, dates and missing values after export.
TSV normally lacks workbook formatting/formula structures; CSV conversion requires delimiter/quoting checks.
Protect numeric-looking identifiers
Postal/product codes and long IDs may be identifiers rather than quantities. Formatting after import cannot reliably restore lost zeros or rounded digits.
Source for these steps:IANA · text/tab-separated-values registration / pandas project · pandas.read_csv
Worked example: checks before handoff
Example: import code 000123 as text, then compare record counts and representative IDs with the original text.
Source for these steps:IANA · text/tab-separated-values registration / pandas project · pandas.read_csv
Related-format differences
| Format / method | Purpose and preserved information |
|---|---|
| .tsv | Tabular data with tab-delimited columns |
| CSV / XLSX | CSV commonly uses commas; XLSX is a workbook with sheets/types/formatting. |
| TSV → XLSX / CSV | TSV normally lacks workbook formatting/formula structures; CSV conversion requires delimiter/quoting checks. |
Handling and security
External tabular data can contain formula-like text; import as text when required.
Questions and answers
Can I rename TSV to CSV?
Renaming leaves tabs unchanged; import as tabs or parse/export CSV.
Can I distinguish tabs from spaces visually?
Use visible-whitespace display or import preview rather than appearance alone.
Are quoting rules universal?
Conventions differ; test values containing tabs/newlines with the intended importer.
Format facts: name, steward and MIME type
- Formal name
- Tab-Separated Values
- Steward / specification
- IANA
- MIME type
- text/tab-separated-values
Primary and official sources
- Standardtext/tab-separated-values registration
Registered tab-separated data conventions.
IANA · Link checked: - Software documentationpandas.read_csv
Import settings for delimiters, encoding and column types.
pandas project · Link checked: