Previewing CSV files on macOS

The comma-separated values (CSV) file format is often used to store and share tabular data. A CSV file is simply plain text, which makes it easy to share across applications and platforms.

Microsoft Excel and Apple’s Numbers can open these files as a spreadsheet. However, there are times when all you need is a quick and simple read-only option.

macOS – Quick Look

Quick Look on a CSV file using quicklook-csv

One handy feature of macOS is Quick Look. Any file can be previewed by pressing space, instead of opening through an application. Custom Quick Look plugins can be installed to work with certain file types. For CSV and other plain-text delimited files, there is quicklook-csv by Pascal Pfiffner.

The downside of this option is that it takes time to preview larger files. This is when the command line approach is desirable.

Command Line

If the file is small, the column command is sufficient to show contents in a pretty tabular format.