103

Are there any good lightweight CSV viewers out there? I would like something that easily refreshes a file after it has been modified. A quick google search didn't turn up any clear winners.

I'd prefer not to have to open Excel each time since it locks the file. This prevents any other programs from updating the file.

syvex
  • 7,518
  • 9
  • 43
  • 47

10 Answers10

128

This is for viewing only, using Powershell...

GUI Display; supports sorting, filtering:

    Import-Csv yourfile.csv |Out-GridView

Console Display:

    Import-Csv yourfile.csv |Format-Table -AutoSize

or:

    Import-Csv yourfile.csv |Format-List

For additional sorting and filtering options, pipe through where-object and sort-object cmdlets

Kevin
  • 1,281
  • 1
  • 8
  • 2
30

I use Nirsoft's CSVFileView. It is a simple lightweight read-only csv viewer.

Note: due to password recovery tools on Nirsoft's site many virus checkers will block executables downloaded from there.

Matthew Lock
  • 13,144
  • 12
  • 92
  • 130
robochat
  • 3,615
  • 3
  • 15
  • 13
21

If your system has Cygwin, column -t in a terminal window is what I like to use.

$ cat file.csv
1,2,3,4
A,B,C,D
i,ii,iii,iv,v
foo,bar,foo foo,foobar
No commas

$ column -t -s"," file.csv
1          2    3        4
A          B    C        D
i          ii   iii      iv      v
foo        bar  foo foo  foobar
No commas

In order to update with changes to the original as you requested, you can combine it with the watch command:

watch column -t -s, file.csv
Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
Costa
  • 2,043
  • 1
  • 14
  • 27
  • 3
    Although the question is tagged **Windows**, `column -t` also appears on various flavors of *nix, including Mac OS, so please enjoy your ⬆ as much as I enjoyed your answer. – Dave Land Sep 04 '19 at 17:39
12

These threads both point to CSVed:

I tried it and had some issues with larger files (4000000 rows) with lots of columns (313), so YMMV.

I usually just use the BSD column utility. It's part of the util-linux package on windows:

KyleMit
  • 30,350
  • 66
  • 462
  • 664
Chris Betti
  • 2,721
  • 2
  • 27
  • 36
8

You could try Ron's Editor - it will do what you want, is MUCH better than Excel for editing CSV files IMHO (that's why I wrote it), and I will let you decide if its light enough ;-)

akmozo
  • 9,829
  • 3
  • 28
  • 44
Aaron Stewart
  • 105
  • 1
  • 1
3

Beacuse I was unhappy with how Excel displays CSV files, I produced a small executable designed to display CSV files. I recently made it available at http://csvquickviewer.com/ It’s only available for Windows because its writing in .NET

It does not need configuration but allows filtering, searching etc.

jub0bs
  • 60,866
  • 25
  • 183
  • 186
  • 1
    are you talking about this link https://sourceforge.net/projects/csvquickviewer/ as your link is not working ? – vibs2006 Dec 15 '20 at 12:01
0

Finally find one can instantly open large files, and automatically detect the delimiter: The V File Viewer from http://www.fileviewer.com/ 20 days free trial. $20 to buy.

Another one, which is extremely fast and also automatically detect the delimiter is Delimit from http://delimitware.com 15 days free trail. $49 / year. Kind of expensive.

Feng Jiang
  • 1,776
  • 19
  • 25
-1

OKFN's DataPipes SaaS Tool is an option for using in-browser.
GitHub automagically renders CSV into tables, providing another in-browser option, along with more functionality.

albert
  • 8,112
  • 3
  • 47
  • 63
-1

I believe there are Free excel viewers out there on Microsoft's site. And I think the native wordpad/write can also open up CSV files.

Sivaram
  • 313
  • 3
  • 10
-1

If you just want to look at the file, why not use a text editor? The better ones will notice a refresh and prompt you if you want to reload the file. However, they won't separate the values out into different columns for you; they will only display the contents. Both UltraEdit and TextPad have been reliable for me in the past.

Ryan
  • 55
  • 3
  • 13
    Text editors won't format the columns nicely. It would also be nice to have some simple functions built-in like SUM(). – syvex May 26 '11 at 16:46