A CSV record is not always one physical line
Counting newline characters works only for simple files. A valid CSV field can contain a line break when the value is enclosed in quotes. In that case, one logical record occupies multiple physical lines, and a basic line counter reports the wrong number.
This tool parses quote boundaries and escaped quotes while reading the file in chunks. It reports both logical CSV records and physical text lines so you can use the number that matches your import limit, audit, or data-quality check.
- Quoted line breaks stay inside a record
- CRLF and LF endings are recognized
- A likely header is separated from data records
- Trailing newlines do not invent an extra record