You are about to import a CSV file into something: a shop, a mailing list, an accounting app, a CRM. Imports are the least forgiving moment in a file's life. A row with a missing value or a total sitting where a record should be will either fail the upload or, worse, slip through and become bad data you discover weeks later.

The cheapest fix is to look at the file first, in a shape that makes problems easy to spot. That means a grid you can sort and search, not a wall of comma-separated text. This guide shows how to sort and scan a CSV with the free CSV Viewer and Editor on Ovatly, which runs in your browser and never uploads your file.

Contents

  • Quick answer
  • Why imports fail on data nobody looked at
  • Sorting tells you more than scrolling
  • Scanning with the filter search
  • The 500-row display cap, and why it does not hide data
  • How to sort and scan a CSV, step by step
  • Worked example: two rows sorted by age
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

To check a CSV before importing it: open it in the CSV Viewer and Editor, click the header of the column the import cares about to sort by it (numbers sort numerically, so extremes and odd values land at the ends), then use the filter search to scan for any term across all rows. Read the top and bottom of the sorted list and the rows the filter finds: that is where import failures hide. When the file looks clean, import it, or download a clean CSV from the grid first.

Why imports fail on data nobody looked at

Most CSV files are exports, and exports carry whatever the source system allowed: empty cells, prices with currency symbols in them, a summary row at the bottom, dates in two formats in one column. None of that is visible while the file sits unopened.

Importers read every row literally. A total row becomes a customer named Total. An empty required field either rejects the row or rejects the file. Sorting and scanning first moves that discovery to a moment when fixing it costs nothing.

Sorting tells you more than scrolling

Scrolling shows rows in the order the exporter wrote them, which is usually the order nobody cares about. Sorting reorganises the file around one column, which makes it a checking tool rather than a reading tool.

Click a column header and the grid sorts by that column. Number columns sort numerically: 2 comes before 10, because the values are compared as numbers. Text columns sort alphabetically, character by character. The distinction matters when you check figures: in a numeric sort, the largest amounts sit at one end and the smallest at the other, so a price of 9999 among prices of 20 and 30 stands out immediately, as does a zero where none belongs.

Sort by the column your import depends on most: the email column before a mailing list upload, the price column before a product import, the date column before anything chronological. Then read the first and last screens: data problems cluster at the extremes.

Sorting answers questions about a column. The filter search answers questions about the whole file. Type a term and the grid narrows to the rows that match it, across every column.

That is how you check the things a sort cannot show you: whether a specific customer appears twice, whether any row still contains the word test, whether a supplier name is spelled two ways. Each search takes seconds and removes a category of surprise from the import.

The 500-row display cap, and why it does not hide data

On very large files, the grid shows the first 500 matching rows. That is a display cap, not a data cap: sorting, filtering, editing and downloading still work on the full data, so nothing is cut from the file.

In practice the cap rarely gets in the way. A sort puts the rows you care about, the extremes, at the ends of the full data, and the filter narrows thousands of rows to the handful that match your term. If you need to eyeball more than 500 rows one by one, the check has to be done in stages, filter by filter, rather than in one long scroll.

How to sort and scan a CSV, step by step

  1. Open the CSV Viewer and Editor and load your CSV file. It opens as a grid, with the first row treated as the header.
  2. Click the header of the column the import cares about to sort by it. Check the top and bottom of the sorted rows for values that look wrong: blanks, zeros, outliers, text where numbers belong.
  3. Run the filter search for terms you suspect: a name that might be duplicated, a placeholder word, a spelling variant. Read every row that matches.
  4. Sort by a second column if the import depends on one, and repeat the extremes check.
  5. If you spot a bad value, fix it in the grid or in the source file. Then import the file, or download a clean CSV from the grid and import that.

Worked example: two rows sorted by age

Take the smallest useful CSV, a header and two records:

name,age
Ana,31
Ben,28

Open it in the viewer and click the age header. Because age is a number column, the sort is numeric, and the rows reorder to:

name,age
Ben,28
Ana,31

Two rows teach the whole habit: the order is by value, not by the order the rows were written, and the extremes are the rows you read first. Scale that to ten thousand rows and the same click puts the smallest and largest ages at the ends of the list, where a mistyped 310 or an age of 0 cannot hide in the middle.

Limitations and honest tradeoffs

The first row is always treated as the header. A file without one will show its first data row as the column titles, fixed at the top, so add a header row first.

The viewer is a checking and light-editing tool, not a data-cleaning engine. It will not flag a wrong value for you: a plausible-looking but incorrect number sorts and filters like any other, and only your knowledge of the data catches it. It also applies no import rules, so a file can look clean here and still fail a stricter importer.

Finally, edits live only in the page. If you change cells while checking and then reload, the changes are gone, so download the clean CSV before you leave if you made fixes you want to keep.

Common mistakes

  • Importing the file you never opened. The five-minute check exists because imports fail on rows nobody saw. Open it first.
  • Reading a text sort as a number sort. In an alphabetical sort, 10 sits before 2. Know which kind of column you sorted before trusting the order.
  • Checking only the first screen. Problems cluster at the extremes of a sort. Read the bottom of the list as well as the top.
  • Assuming 500 visible rows means 500 rows of data. The cap is on display only. The full file is still what sorts, filters and downloads.
  • Fixing values and forgetting to download. Edits live in the page. Reload without downloading and the fixes are lost.

FAQs

Does sorting change my original file? No. Sorting happens on a copy of the data inside the page, and the file on your disk is never modified. If you download afterwards, you get a clean CSV of the data as it stands in the grid.

Why do numbers sort differently from text? Number columns sort numerically, so 2 comes before 10. Other columns sort alphabetically, where 10 would come before 2 because the sorting compares characters, not values.

My file has thousands of rows. Why do I only see 500? On very large files the grid shows the first 500 matching rows to keep the page responsive. Sorting, filtering, editing and downloading still work on the full data, and the filter search is the way to narrow a big file down to the rows you need to see.

What if my CSV has no header row? The first row is always treated as the header, so the first data row becomes the column titles and stays fixed at the top. Give the file a header row first if it does not have one.

Is my file uploaded to a server? No. The viewer runs fully in your browser, and the file never leaves your device. You can disconnect from the internet after the page loads and the tool still works.

Conclusion

A pre-import check is two habits: sort by the column that matters and read the extremes, then filter for the strings you suspect. The CSV Viewer and Editor makes both a matter of clicks, in your browser. When the check turns up a handful of rows that need changing rather than a file that needs rebuilding, our companion guide on editing a few rows in a CSV without breaking its format covers the fixing step. For more guides in this series, see our Data and JSON Tools guides.

References