# How I open a CSV file without spreadsheet surprises

A beginner-friendly guide to viewing CSV files, delimiters, sorting, filtering, quoted values, and checking data before importing it.

- Date: 2026-09-27
- URL: https://ilham.dev/posts/how-to-open-a-csv-file-without-spreadsheet-surprises/
- Markdown: https://ilham.dev/posts/how-to-open-a-csv-file-without-spreadsheet-surprises/index.md
- Tags: csv, data, spreadsheet, tools
- Reading time: 2 min


A CSV viewer helps inspect tabular data before importing it into a database, spreadsheet, or script.

The [CSV Viewer](/tools/csv-viewer/) tool is useful because it lets me check the result in a small, controlled place before I use it in a bigger workflow.

## The simple idea

A CSV viewer helps inspect tabular data before importing it into a database, spreadsheet, or script.

The goal is not to click buttons quickly. The goal is to understand the input, produce the expected output, and notice anything that could be misleading.

## Step 1: Open the CSV file or paste the text

Open the CSV file or paste the text.

Start with a small example if possible. Small examples make mistakes easier to see.

## Step 2: Choose the correct delimiter

Choose the correct delimiter.

## Step 3: Check whether the first row is a header

Check whether the first row is a header.

## Step 4: Look for broken rows caused by unescaped commas or quotes

Look for broken rows caused by unescaped commas or quotes.

## Step 5: Sort and filter columns to inspect suspicious values

Sort and filter columns to inspect suspicious values.

## Step 6: Check empty cells and duplicate-looking rows

Check empty cells and duplicate-looking rows.

## Step 7: Only import the file after the preview looks structurally correct

Only import the file after the preview looks structurally correct.

## My checklist

Before I trust the result, I check:

- Open the CSV file or paste the text.
- Choose the correct delimiter.
- Check whether the first row is a header.
- Look for broken rows caused by unescaped commas or quotes.
- Sort and filter columns to inspect suspicious values.
- Check empty cells and duplicate-looking rows.
- Only import the file after the preview looks structurally correct.

The tool handles the mechanical part. I still review the result before I publish it, send it, or use it in production.
