Quick answer

Empty lines in CSV are allowed by RFC 4180 but some parsers treat them as a row with one empty field or skip them.

CSV Empty Line

Empty lines in CSV are allowed by RFC 4180 but some parsers treat them as a row with one empty field or skip them. Trailing newlines can also cause an extra empty row.

Common causes

How to fix

Examples

Bad

a,b
1,2

3,4

Good

a,b
1,2
3,4

FAQ

Are empty lines valid in CSV?
RFC 4180 allows them; some parsers treat as empty row or skip.
Trailing newline?
Common; some parsers add empty row, others ignore.

Fix it now

Try in validator (prefill this example)

Related

All tools · Canonical