Skip to main content
Bethemesh
GuideBest practices

Data and tables: understanding CSV, Excel, JSON and dataset structure

Learn how tabular data is structured, how CSV, Excel, JSON and TSV differ, and how to choose the right format before cleaning, converting or automating a workflow.

Published 29 August 2026Reading : 3 minBy Bethemesh Team
Beginner
Show contents
  1. Structure matters more than the file extension
  2. CSV: simple and portable, but not ambiguity-free
  3. TSV: the same principle with tabs
  4. Excel: more than a grid of values
  5. JSON: objects, arrays and nested structures
  6. Value types can be deceptive
  7. Cleaning is not the same as converting
  8. Inspect before you modify
  9. Choose the format for the destination

A data file often looks simple: a few columns, rows and values. Problems usually appear when you need to clean, compare, merge or convert it. A column name may change, a CSV delimiter may be interpreted incorrectly, a number may actually be an identifier, or two files may describe the same information with different structures.

This first part of the Mastering data and tables collection explains what a table really contains and how to choose a format before transforming it.

Structure matters more than the file extension

In a typical table, each row represents a record and each column represents an attribute. A customer export might contain id, name, email and country.

The first row often contains headers. Those headers give meaning to the values below them. If one file uses email and another uses email_address, a merge cannot always infer that both columns represent the same thing.

A reliable dataset therefore depends as much on its schema as on its file format.

CSV: simple and portable, but not ambiguity-free

CSV stands for Comma-Separated Values, yet commas are not the only separators found in practice. Depending on software and regional settings, semicolons or tabs may be used instead.

A CSV file is plain text. It does not preserve Excel formatting, formulas, colors or multiple worksheets. That simplicity makes CSV easy to exchange, but it also means you must pay attention to delimiters, quotes, encoding and line breaks embedded inside cells.

Use the CSV Validator to check the structure of a file before continuing with other operations.

TSV: the same principle with tabs

TSV follows the same flat-table model as CSV but uses a tab character as the separator. It can be useful when values frequently contain commas or semicolons.

CSV and TSV are still flat formats: they describe rows and columns, not complex hierarchies.

Excel: more than a grid of values

An Excel workbook can contain several sheets, formulas, dates, cell types, formatting and other information that does not exist in CSV.

When converting Excel to CSV, some of that information will necessarily disappear. The goal is often not to reproduce the workbook exactly but to extract a usable data table.

The Excel, CSV and JSON Converter is useful when a format change is actually needed.

JSON: objects, arrays and nested structures

JSON is not limited to tables. It can represent objects, arrays and nested values.

A CSV table maps naturally to a JSON array of objects: every row becomes an object and each header becomes a property name. The reverse conversion works best when all objects share a consistent set of properties.

If JSON objects contain nested objects or arrays, converting them to a flat table requires choices: flatten properties, omit some values, or keep JSON as the primary representation.

Value types can be deceptive

In a text file, 00123, 123 and "123" may look similar but can mean different things. A postal code, product reference or customer identifier should not automatically be treated as a number.

Dates have the same problem: 01/02/2026 is ambiguous across locales.

Before cleaning or converting, identify which columns are genuinely numeric, textual, temporal or identifying.

Cleaning is not the same as converting

Turning CSV into JSON does not remove duplicates. Converting Excel into CSV does not trim spaces or standardize headers.

To fix the data itself, start with Clean Excel and CSV files, then apply more specialized operations when necessary.

Inspect before you modify

A useful sequence for an unfamiliar file is:

  1. identify the format and delimiter;
  2. inspect the headers;
  3. locate key columns;
  4. check missing or unusual values;
  5. decide what the final format should be;
  6. only then clean, filter, merge or convert.

CSV Statistics can provide a quick first overview of a table.

Choose the format for the destination

CSV is often ideal for simple exchanges between applications. Excel is useful when people need sheets, formulas or presentation. JSON fits APIs and structured application data. TSV remains a practical alternative when tab-separated text is expected.

Choosing the target format first prevents unnecessary back-and-forth conversions and helps preserve the information that actually matters.

Related tools

Data & spreadsheets

Clean an Excel or CSV file

Remove duplicates, empty rows and unnecessary spaces.

100% localFeatured
Use this tool
Data & spreadsheets

Convert Excel, CSV and JSON

Convert Excel, CSV, and other spreadsheet formats directly in your browser.

100% localFeatured
Use this tool
Data & spreadsheets

CSV validator

Validate CSV structure and quickly identify problematic rows or columns in your data.

100% local
Use this tool
Data & spreadsheets

CSV Statistics

Analyze CSV columns and quickly get useful statistics about your data.

100% local
Use this tool

Collection

Mastering data and tables

  1. 01Data and tables: understanding CSV, Excel, JSON and dataset structure
  2. 02How to clean and prepare a CSV or Excel file before using it
  3. 03Remove duplicates and validate CSV data without deleting the wrong rows
  4. 04Filter, sort, select and rename CSV columns efficiently
  5. 05Merge CSV or Excel files without misaligning columns
  6. 06Split a CSV or Excel table into smaller files
  7. 07Compare two CSV or Excel files and identify the differences
  8. 08Convert CSV, Excel, JSON and TSV without losing the structure
  9. 09Build a reproducible data-preparation workflow
GuideBest practicesIntermediate

Build a reproducible data-preparation workflow

Put cleaning, validation, filtering, merging, comparison and conversion in a sensible order, and learn when a reusable pipeline is better than isolated tools.

29 August 20262 minRead

Was this article useful?