Empty CSV Cell to JSON – Why Blank Cells Become Empty Strings

Local only

CSV has no universal null type, so an empty cell is preserved as an empty JSON string rather than silently becoming null or disappearing.

14 chars · 2 lines

14 chars · 2 lines

2 rows2 columnsComma delimiter

CSV empty-cell conversion behavior

How empty CSV cells are represented in JSON

The sample has a role column but the data cell is blank. CSV does not tell the converter whether that means null, unknown, intentionally empty, or missing, so VetaTool preserves the cell as the empty string "". This tool is free to use. No account or payment is required.

Last updated

What you can do here

  • CSV to JSON behavior example
  • Header-to-key mapping
  • String-preserving cell conversion
  • .csv and .tsv file import
  • Browser-local processing

Steps

  1. Convert the CSV without guessing a null type.
  2. Identify columns where your application treats an empty string as null or missing.
  3. Apply that schema-specific transformation after conversion.

An empty CSV field does not specify null semantics

Different systems use blank cells differently. Preserving an empty string avoids silently choosing a meaning that the CSV file never declared.

Empty CSV Cell to JSON example

The output below is the actual JSON produced by the same CSV to JSON mode for the preloaded source.

CSV input

name,role
Ada,

Actual JSON output

[
  {
    "name": "Ada",
    "role": ""
  }
]

Common questions

Frequently asked questions

Does an empty CSV cell become null?

No. VetaTool emits an empty string.

Why not omit the property?

The source row still contains that column, so preserving the key keeps the table shape intact.

Can I convert empty strings to null later?

Yes. Do that as an explicit schema-aware transformation after CSV parsing.

Debugging a specific CSV issue? Browse CSV troubleshooting.