Skip to content

What is a CSV file, and how do you open one?

CSV, JSON, and other data files explained in plain words: what they are, why they look like gibberish, and how to read and convert them.

By SenangWebsite team4 min read

Someone exports a report for you. The file arrives, you double-click it, and a wall of commas or curly brackets fills the screen. Nothing looks like a table. Nothing looks like anything.

Welcome to data files. They are common, they are not complicated, and after this post they will stop looking like gibberish.

The short answer: a CSV file is a plain text table, with each line being a row and commas separating the columns. It opens cleanly in a spreadsheet program. Other formats like JSON store the same data with different punctuation, and conversion tools can switch between them.

CSV in plain words

CSV stands for comma-separated values. The name is the explanation.

Open one in a plain text editor and you see lines like this:

Name,Email,City
Aisha Lim,[email protected],Kuala Lumpur
Ravi Tan,[email protected],Ipoh

The first line is the column headings. Every line after it is one row. The commas are the walls between columns. That is the entire format, which is why it became the standard way to move data between programs: bank exports, contact lists, survey results, and online store order reports all speak it.

Why double-clicking can look messy

The confusion happens because a text editor opens the raw file, commas and all. The data is fine; the viewer is wrong for the job.

The right tool is a spreadsheet program. Open the spreadsheet first, then use its open or import function to load the CSV. The program reads the commas and lays the data out as a proper table with rows and columns. Most spreadsheet programs also offer a CSV import wizard that lets you confirm the separator, which helps when a file uses semicolons instead of commas, a habit of some programs in other regions.

One practical warning if you open exports in a spreadsheet: treat it as viewing, not editing. Spreadsheet programs are famously eager to "helpfully" rewrite things. Long reference numbers can lose their leading zeros, and dates can be reinterpreted. If the file must be passed on unchanged, convert or inspect it with a tool rather than saving over it in a spreadsheet.

What about JSON and the bracket people

JSON is another way to store data, popular with websites and apps. Where CSV uses commas, JSON uses labels and braces:

{
  "name": "Aisha Lim",
  "city": "Kuala Lumpur"
}

Read it as labelled boxes: the thing called "name" holds this value, the thing called "city" holds that one. JSON handles nested information better than CSV, which is why app settings and web services use it.

The two formats are interchangeable when the data is a simple table. The CSV to JSON and JSON to CSV converters on SenangWebsite switch between them, and everything is processed in your browser, so the data never leaves your device.

Reading a JSON file without going cross-eyed

JSON written by programs usually arrives squashed onto one line, which is genuinely hard to read. The fix is called formatting, or making it pretty: adding line breaks and indentation so each label sits on its own line.

The JSON Viewer and JSON Beautifier do this locally. Paste the squashed text, and it comes back readable, with boxes you can expand and collapse. This is often all you need to find one value inside a settings file or an app export.

A quick map of when each file turns up

  • CSV: exports from banks, stores, and survey tools. Open in a spreadsheet.
  • JSON: app settings, web service replies, developer files. View with a beautifier.
  • TSV and XML: cousins of the two above, using tabs and angle brackets instead. Converters exist for them too, like JSON to TSV and XML to JSON.

None of these formats require technical training. They are just tables wearing different punctuation, and once you have seen the spreadsheet view of a CSV, the wall of commas becomes a normal Tuesday.

Back to all articles