CSV Viewer

View, transform, escape, and export CSV data locally in your browser.

How the CSV viewer works

The viewer reads the first line as the column headers, then prints every following row with each value labelled by its header — header: value | header: value — so wide rows stay readable without scrolling sideways. Double-quoted fields are unwrapped, a doubled quote ("") inside them becomes one literal quote, and leading and trailing spaces on each cell are trimmed. The Operation menu switches the same input to CSV → JSON, XML, HTML, TSV, SQL INSERT statements, or an escape/unescape pass.

When to use it

Sanity-check a CSV export before importing it, spot a row with the wrong number of columns, or read a file whose columns are too numerous to line up in a plain text editor.

Worked example

Input:

sku,name,price
A100,Keyboard,49.99
A101,"Mouse, wireless",19.99

Output:

sku: A100 | name: Keyboard | price: 49.99
sku: A101 | name: Mouse, wireless | price: 19.99

Does it show the data as a grid?

It presents each row as labelled header: value pairs rather than an aligned grid, which stays readable for files with many columns. For an HTML <table>, switch the Operation menu to CSV to HTML.

How are quoted fields handled?

A field wrapped in double quotes can contain commas, and "" inside it is treated as a single quote character. Every cell is trimmed of surrounding spaces.

Can it convert as well as view?

Yes. The Operation dropdown runs CSV to JSON, XML, HTML, TSV or SQL on the same input, and can also generate a random CSV sample.

Is my file uploaded?

No. The file is read and rendered locally in your browser; nothing is sent to a server.

CSV to JSON CSV to HTML CSV to XML CSV to SQL Excel Viewer