View CSV data as a table

Preview CSV records as an aligned text table with column names and optional line numbers.

freeworks offlinenothing uploaded
ToolCSV Viewer
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Quoted CSV records are parsed, widths are measured over the displayed slice, and padded cells form a text table. The total row count remains complete even when only a limited prefix is rendered.

  • One hundred visible rows keeps previews manageable.
  • Line numbers help locate an import or spreadsheet error.

Worked example

View employee CSV as aligned table
Display a 2-row CSV with line numbers and padded column alignment
Input
											name,age,city
Alice,30,Portland
Bob,25,Seattle
										
Output
												   | name  | age | city    
---+-------+-----+---------
 1 | Alice | 30  | Portland
 2 | Bob   | 25  | Seattle 
											

When to use this

Developers preview generated exports, support inspects uploads, and code reviews check small fixture tables.

Edge cases

  • A quoted newline stays in one cell and can make a table row visually awkward.
  • A long token widens its column instead of being silently truncated.
  • Rows beyond the limit are summarized in a remaining-count notice.

References