The useful answer

Quote a CSV field that contains a comma, quote or line break. Inside a quoted field, represent a literal double quote with two double quotes. Do not split CSV by every comma.

Before you start

CSV looks simple until a product description contains punctuation. A row such as Pens, blue is ambiguous unless the comma is enclosed as part of one field. A naive split turns one description into two cells and shifts every following value into the wrong column.

Our sample includes both an embedded comma and a quoted phrase. Table Tidy parses those fields as structured CSV, then serializes the cleaned result with appropriate quoting. The preview displays cell values without the surrounding CSV syntax, so inspect the source and the downloaded text when you want to understand the difference.

Your practice file

quoted-cells.csv · Original Deskcraft example · Reusable for practice

Download source ↓

The walkthrough

Open the punctuation sample

Load quoted-cells.csv with the Comma delimiter. The header has three fields: ID, Item and Note. Keep that expected width in mind; a shift to four fields indicates a quoting or delimiter problem.

Inspect the first description

The source represents Pens, blue inside double quotes. In the table preview, it should appear as one cell with a visible comma. The outer quotes are syntax and should not become part of the displayed value.

Check the literal quotation marks

The second note contains a quoted word. Its internal double quotes are doubled in CSV text. The preview should show the intended single pair around that word, not two pairs.

Run the edge cleanup

Turn Trim field edges on and clean the table. This sample includes a trailing space in one field so there is a real cleanup to observe. The parser should preserve the meaningful punctuation while the trim option removes that edge space.

Round-trip the download

Download the result and load it back into Table Tidy. Confirm two data rows and three columns. A successful round trip preserves the cell values even when the exact quoting style is rewritten.

Before & after, in practice

What we checkedStarting comparisonAfter the change
Data rows22
Columns33
ResultParsed successfullyParsed successfully

Recorded in Chrome 153.0.8010.54. These are measurements of this practice file, not guaranteed results for every file or browser.

Table Tidy: Starting comparison for Handle commas and quotation marks inside CSV cells
Starting comparison. Actual Table Tidy operation captured with the supplied practice file. Select the image to inspect the settings at full size.
Table Tidy: After the change for Handle commas and quotation marks inside CSV cells
After the change. Actual Table Tidy operation captured with the supplied practice file. Select the image to inspect the settings at full size.
Inspect the demonstrated result

Download the actual output recorded for this walkthrough.

Download result ↓

When it goes wrong

The tool reports too many fields

A comma inside a value may be unquoted. Fix that source field rather than selecting a delimiter that only appears to hide the problem.

The tool reports an unclosed quote

A field opened with a double quote but never closed. Check the whole record, including any embedded line breaks.

Quotes vanished in the preview

Outer CSV quotes are syntax. They are not part of the cell unless escaped as literal quotes inside a quoted field.

The final check

The first Item cell must read Pens, blue as a single value. The second Note must contain the intended quoted word. There should be two data rows and three columns after reloading the exported file.

Keep one clean original. The tools create a new copy. They do not overwrite your source. For important work, verify the downloaded result in the application that will actually use it.

Further reading & method

These links explain the underlying formats or browser behavior. The steps, examples, screenshots and measured results above come from the Deskcraft tools. Screenshots do not depict Excel, Photoshop or another commercial application.

See how these guides are made. Found an error? Send a correction with the guide title and the step you tried.